test
This commit is contained in:
parent
5d23d6d8cc
commit
6fa509712e
41
Jenkinsfile
vendored
41
Jenkinsfile
vendored
@ -1,42 +1,27 @@
|
|||||||
pipeline {
|
node {
|
||||||
agent any
|
stage('Preparation') {
|
||||||
parameters {
|
properties([
|
||||||
|
parameters([
|
||||||
string(
|
string(
|
||||||
defaultValue: 'nbrt10',
|
defaultValue: 'nbrt10',
|
||||||
description: 'Kaggle username',
|
description: 'Kaggle username',
|
||||||
name: 'KAGGLE_USERNAME',
|
name: 'KAGGLE_USERNAME',
|
||||||
trim: false
|
trim: false
|
||||||
)
|
),
|
||||||
password(
|
password(
|
||||||
defaultValue: '',
|
defaultValue: '',
|
||||||
description: 'Kaggle token taken from kaggle.json file, as described in https://github.com/Kaggle/kaggle-api#api-credentials',
|
description: 'Kaggle token taken from kaggle.json file, as described in https://github.com/Kaggle/kaggle-api#api-credentials',
|
||||||
name: 'KAGGLE_KEY'
|
name: 'KAGGLE_KEY'
|
||||||
)
|
)
|
||||||
|
])
|
||||||
|
])
|
||||||
}
|
}
|
||||||
stages {
|
stage('Build') {
|
||||||
stage('Preparation') {
|
// Run the maven build
|
||||||
steps {
|
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}",
|
||||||
script {
|
"KAGGLE_KEY=${params.KAGGLE_KEY}" ]) {
|
||||||
withCredentials([string(credentialsId: '', variable: 'KAGGLE_USERNAME'), string(credentialsId: '', variable: 'KAGGLE_KEY')]) {
|
sh 'echo KAGGLE_USERNAME: $KAGGLE_USERNAME'
|
||||||
sh 'export KAGGLE_USERNAME=$KAGGLE_USERNAME && export KAGGLE_KEY=$KAGGLE_KEY'
|
sh 'kaggle datasets list'
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
stage('checkout') {
|
|
||||||
steps {
|
|
||||||
git branch: 'master', url: 'https://git.wmi.amu.edu.pl/s487175/ium_z487175.git'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
stage('script') {
|
|
||||||
steps {
|
|
||||||
sh './s487175-create-dataset-scriptsh.py > output.txt'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
post {
|
|
||||||
always {
|
|
||||||
archiveArtifacts artifacts: 'output.txt', onlyIfSuccessful: true
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user