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') {
|
||||
steps {
|
||||
sh '''
|
||||
chmod +x script.sh
|
||||
ls -lah
|
||||
./script.sh
|
||||
ls -lah
|
||||
'''
|
||||
sh 'chmod +x script.sh'
|
||||
withEnv(["LEARNING_RATE=${params.LEARNING_RATE}"]) {
|
||||
sh './script.sh $LEARNING_RATE'
|
||||
}
|
||||
sh 'ls -lah'
|
||||
}
|
||||
}
|
||||
stage('archive artifact') {
|
||||
|
Loading…
Reference in New Issue
Block a user