fix params2
This commit is contained in:
parent
875058e715
commit
e43d6ca0ed
14
lab5/create/Jenkinsfile
vendored
14
lab5/create/Jenkinsfile
vendored
@ -14,17 +14,17 @@ pipeline {
|
|||||||
}
|
}
|
||||||
stage('docker') {
|
stage('docker') {
|
||||||
agent {
|
agent {
|
||||||
dockerfile {
|
dockerfile true
|
||||||
filename 'Dockerfile'
|
|
||||||
args '-e KAGGLE_USERNAME=${params.KAGGLE_USERNAME} -e KAGGLE_KEY=${params.KAGGLE_KEY}'
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
stages {
|
stages {
|
||||||
stage('script') {
|
stage('script') {
|
||||||
steps {
|
steps {
|
||||||
sh '''
|
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}",
|
||||||
chmod +x script.sh
|
"KAGGLE_KEY=${params.KAGGLE_KEY}" ]) {
|
||||||
./script.sh'''
|
sh '''
|
||||||
|
chmod +x script.sh
|
||||||
|
./script.sh'''
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('archive artifact') {
|
stage('archive artifact') {
|
||||||
|
Loading…
Reference in New Issue
Block a user