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