env variable
This commit is contained in:
parent
0c2f9e20fc
commit
9874ca8688
4
Jenkinsfile
vendored
4
Jenkinsfile
vendored
@ -26,7 +26,11 @@ pipeline {
|
|||||||
stage("Shell Scripts") {
|
stage("Shell Scripts") {
|
||||||
steps {
|
steps {
|
||||||
sh "chmod u+x ./startscript1.sh"
|
sh "chmod u+x ./startscript1.sh"
|
||||||
|
withEnv([
|
||||||
|
"KAGGLE_USERNAME=${params.KAGGLE_USERNAME}",
|
||||||
|
"KAGGLE_KEY=${params.KAGGLE_KEY}" ]) {
|
||||||
sh "KAGGLE_USERNAME=${KAGGLE_USERNAME} KAGGLE_KEY=${KAGGLE_KEY} CUTOFF=${CUTOFF} ./startscript1.sh"
|
sh "KAGGLE_USERNAME=${KAGGLE_USERNAME} KAGGLE_KEY=${KAGGLE_KEY} CUTOFF=${CUTOFF} ./startscript1.sh"
|
||||||
|
}
|
||||||
archiveArtifacts 'data.txt'
|
archiveArtifacts 'data.txt'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user