diff --git a/Jenkinsfile b/Jenkinsfile index 06e2f48..eb1607b 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -120,7 +120,7 @@ lazyStage { name = 'publish' - onlyif = ( env.LAZY_BRANCH == 'master' || env.PUBLISH == 'true' ) + onlyif = ( env.LAZY_BRANCH == 'master' || config.env.PUBLISH ) tasks = [ [ pre: { @@ -129,11 +129,9 @@ sh("ls -lA target/packages") }, run: { - //withEnv(["DRYRUN=true"]) { echo "Creating repo with packages" - if (env.DRYRUN) { echo "DRYRUN is true = ${env.DRYRUN}" } - if (!env.DRYRUN) { echo "DRYRUN is false = ${env.DRYRUN}" } - //} + if (config.env.DRYRUN) { echo "DRYRUN is true = ${config.env.DRYRUN}" } + if (!config.env.DRYRUN) { echo "DRYRUN is false = ${config.env.DRYRUN}" } }, in: [ 'ubuntu-16', 'centos-7', ], on: 'docker',