.
This commit is contained in:
parent
a3d5cab581
commit
389f5464a4
7
Jenkinsfile
vendored
7
Jenkinsfile
vendored
@ -9,6 +9,10 @@ pipeline {
|
|||||||
trim: false
|
trim: false
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
environment {
|
||||||
|
KAGGLE_KEY = ${params.key}
|
||||||
|
KAGGLE_USERNAME = ${params.username}
|
||||||
|
}
|
||||||
|
|
||||||
stages {
|
stages {
|
||||||
stage('checkout: Check out from version control') {
|
stage('checkout: Check out from version control') {
|
||||||
@ -18,13 +22,10 @@ pipeline {
|
|||||||
}
|
}
|
||||||
stage('sh: Shell Script') {
|
stage('sh: Shell Script') {
|
||||||
steps {
|
steps {
|
||||||
withEnv(['KAGGLE_USERNAME=$params.username',
|
|
||||||
'KAGGLE_KEY=$params.key' ]) {
|
|
||||||
sh 'echo KAGGLE_USERNAME: $KAGGLE_USERNAME'
|
sh 'echo KAGGLE_USERNAME: $KAGGLE_USERNAME'
|
||||||
sh 'chmod +x preparations.sh'
|
sh 'chmod +x preparations.sh'
|
||||||
sh './preparations.sh'
|
sh './preparations.sh'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user