add with env
This commit is contained in:
parent
51dce06a37
commit
7e01379a11
11
lab5/train/Jenkinsfile
vendored
11
lab5/train/Jenkinsfile
vendored
@ -30,12 +30,11 @@ pipeline {
|
|||||||
}
|
}
|
||||||
stage('ls') {
|
stage('ls') {
|
||||||
steps {
|
steps {
|
||||||
sh '''
|
sh 'chmod +x script.sh'
|
||||||
chmod +x script.sh
|
withEnv(["LEARNING_RATE=${params.LEARNING_RATE}"]) {
|
||||||
ls -lah
|
sh './script.sh $LEARNING_RATE'
|
||||||
./script.sh
|
}
|
||||||
ls -lah
|
sh 'ls -lah'
|
||||||
'''
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('archive artifact') {
|
stage('archive artifact') {
|
||||||
|
Loading…
Reference in New Issue
Block a user