This commit is contained in:
Marcin Kostrzewski 2022-03-27 23:19:42 +02:00
commit fa95822a21

10
Jenkinsfile vendored
View File

@ -13,10 +13,6 @@ pipeline {
name: 'KAGGLE_KEY' name: 'KAGGLE_KEY'
) )
} }
environment {
KAGGLE_USERNAME="$params.KAGGLE_USERNAME"
KAGGLE_KEY="$params.KAGGLE_KEY"
}
stages { stages {
stage('Install dependencies') { stage('Install dependencies') {
steps { steps {
@ -25,16 +21,12 @@ pipeline {
} }
stage('Fetch and split dataset') { stage('Fetch and split dataset') {
steps { steps {
script {
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}", withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}",
"KAGGLE_KEY=${params.KAGGLE_KEY}" ]) { "KAGGLE_KEY=${params.KAGGLE_KEY}" ]) {
sh 'echo KAGGLE_USERNAME: $KAGGLE_USERNAME'
sh 'kaggle datasets list'
}
}
sh "chmod u+x ./download_dataset.sh" sh "chmod u+x ./download_dataset.sh"
sh "./download_dataset.sh" sh "./download_dataset.sh"
} }
} }
} }
} }
}