diff --git a/Jenkinsfile b/Jenkinsfile index ef01082..ce3bf22 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -2,8 +2,8 @@ // Load Jenkins shared libraries common to all projects def libCmn = [ - remote: 'https://github.com/digital-me/indy-jenkins-lib.git', - branch: 'draft-01', + remote: 'https://code.in.digital-me.nl/git/DEVops/JenkinsLibLazy.git', + branch: env.BRANCH_NAME, credentialsId: null, ] @@ -18,17 +18,13 @@ // Initialize configuration def config = initConfig('dummy-jenkins-pl') - -// CI Pipeline - as long as the common library can be loaded -stValidate(config) -//stCompile(config) -stTest(config) -stPackage(config) -// CD Pipeline - only if extended library can be loaded -if (config.extended) { - stApprove(config) - stRelease(config) - stDeliver(config) - stNotify(config) -} \ No newline at end of file +lazyStage { + name = 'validate' + tasks = [ + [ exec: { echo "This is my first task" }, ], + [ exec: { echo "This is my second task" }, on: '*' ], + [ exec: "This is my third task", on: [ 'ubuntu-16', 'centos-7', ] ], + [ exec: [ "This and", "that are my last tasks"] ], + ] +}