This commit is contained in:
Maciej 2021-03-29 01:04:09 +02:00
parent a3d5cab581
commit 389f5464a4

13
Jenkinsfile vendored
View File

@ -9,6 +9,10 @@ pipeline {
trim: false
)
}
environment {
KAGGLE_KEY = ${params.key}
KAGGLE_USERNAME = ${params.username}
}
stages {
stage('checkout: Check out from version control') {
@ -18,12 +22,9 @@ pipeline {
}
stage('sh: Shell Script') {
steps {
withEnv(['KAGGLE_USERNAME=$params.username',
'KAGGLE_KEY=$params.key' ]) {
sh 'echo KAGGLE_USERNAME: $KAGGLE_USERNAME'
sh 'chmod +x preparations.sh'
sh './preparations.sh'
}
sh 'echo KAGGLE_USERNAME: $KAGGLE_USERNAME'
sh 'chmod +x preparations.sh'
sh './preparations.sh'
}
}
}