diff --git a/Jenkinsfile b/Jenkinsfile index b8c8bee..a41da60 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -80,6 +80,7 @@ lazyStage { name = 'validate' + onlyif = ( lazyConfig['branch'] != releaseBranch) tasks = [ [ pre: { @@ -99,6 +100,7 @@ lazyStage { name = 'test' + onlyif = ( lazyConfig['branch'] != releaseBranch) tasks = [ [ run: { echo "This is my fith task" }, ], [ @@ -122,7 +124,7 @@ run: { echo "Building packages"; def currentVersion = readFile(encoding: 'UTF-8', file: 'version.txt') - sh "mkdir -p ${env.BUILD_DIR} && echo 'testpkg-${currentVersione}' > ${env.BUILD_DIR}/\${LAZY_LABEL}.pkg" + sh "mkdir -p ${env.BUILD_DIR} && echo 'testpkg-${currentVersion}' > ${env.BUILD_DIR}/\${LAZY_LABEL}.pkg" }, in: '*', on: 'docker',