diff --git a/Jenkinsfile b/Jenkinsfile index f3a8293..e0af0bc 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,34 +1,33 @@ #!/usr/bin/env groovy​ -package indyjenkinslib - -// Load Jenkins shared libraries for all Hypeledger Indy project -def libIndy = [ +// Load Jenkins shared libraries common to all projects +def libCmn = [ remote: 'https://github.com/digital-me/indy-jenkins-lib.git', branch: 'draft-01', credentialsId: null, ] library( - identifier: "libIndy@${libIndy.branch}", + identifier: "libCmn@${libCmn.branch}", retriever: modernSCM([ $class: 'GitSCMSource', - remote: libIndy.remote, - credentialsId: libIndy.credentialsId + remote: libCmn.remote, + credentialsId: libCmn.credentialsId ]) ) // Initialize configuration def config = initConfig('dummy-jenkins-pl') -// CI Pipeline +// CI Pipeline - as long as the common library can be loaded stValidate(config) stCompile(config) stTest(config) stPackage(config) -// CD Pipeline +// CD Pipeline - only if extended library can be loaded if (config.extended) { + stApprove(config) stRelease(config) stDeliver(config) stNotify(config)