diff --git a/Jenkinsfile b/Jenkinsfile index eb1607b..8dc7a1a 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -54,7 +54,7 @@ // Initialize configuration lazyConfig( name: 'dummy-jenkins-pl', - env: [ DRYRUN: true, VERSION: '0.0.1' ], + env: [ DRYRUN: true, VERSION: '0.0.1', PUBLISH: false, ], inLabels: [ 'ubuntu-16', 'centos-7' ], onLabels: [ default: 'master', docker: 'docker', mac: 'mac', android: 'android', ], noPoll: '.+_.+', @@ -69,16 +69,16 @@ gitLog('27e440f290d8bf95a3908cad03a5588fc2f2fe73') lazyGitPass('bot-ci-dgm', { gitTag('test-0.0.1') - }) + }) */ echo "Creating repo with packages" - if (env.DRYRUN == 'true') { echo "DRYRUN is true = ${env.DRYRUN}" } - if (env.DRYRUN == 'false') { echo "DRYRUN is false = ${env.DRYRUN}" }*/ + if (lazyConfig.DRYRUN) { echo "DRYRUN is true = ${env.DRYRUN}" } + if (lazyConfig.DRYRUN) { echo "DRYRUN is false = ${env.DRYRUN}" } }, - ],/* + ], [ run: { echo "This is my second task" }, in: '*', on: 'docker' ], [ run: "third.sh", in: [ 'ubuntu-16', 'centos-7'], on: 'docker',], [ run: [ "fourth-a.sh", "fourth-b.sh"], on: 'mac' ], - [ run: [ "fourth-a.sh", "fourth-b.sh"], on: 'android' ],*/ + [ run: [ "fourth-a.sh", "fourth-b.sh"], on: 'android' ], ] } @@ -120,7 +120,7 @@ lazyStage { name = 'publish' - onlyif = ( env.LAZY_BRANCH == 'master' || config.env.PUBLISH ) + onlyif = ( env.LAZY_BRANCH == 'master' || lazyConfig.env.PUBLISH ) tasks = [ [ pre: { @@ -130,8 +130,8 @@ }, run: { echo "Creating repo with packages" - if (config.env.DRYRUN) { echo "DRYRUN is true = ${config.env.DRYRUN}" } - if (!config.env.DRYRUN) { echo "DRYRUN is false = ${config.env.DRYRUN}" } + if (lazyConfig.env.DRYRUN) { echo "DRYRUN is true = ${lazyConfig.env.DRYRUN}" } + if (!lazyConfig.env.DRYRUN) { echo "DRYRUN is false = ${lazyConfig.env.DRYRUN}" } }, in: [ 'ubuntu-16', 'centos-7', ], on: 'docker',