diff --git a/Jenkinsfile b/Jenkinsfile index 4f6504f3a..80db9b344 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -29,7 +29,7 @@ node { variable: 'PROPS_FILE') ]) { def props = readProperties file: PROPS_FILE - props.each {key, value -> env.put(key, value) } + props.each {key, value -> env."${key}" = value } props.each {key, value -> echo "${key}: ${value}" } } @@ -39,7 +39,7 @@ node { variable: 'BRANCH_PROPS_FILE') ]) { def props = readProperties file: BRANCH_PROPS_FILE - props.each {key, value -> env.put(key, value) } + props.each {key, value -> env."${key}" = value } props.each {key, value -> echo "${key}: ${value}" } } }