add with env

This commit is contained in:
jakubknczny 2021-05-15 18:40:05 +02:00
parent 51dce06a37
commit 7e01379a11

View File

@ -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') {