diff --git a/Jenkinsfile b/Jenkinsfile index 4596ee8..c2f8e63 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,27 +1,29 @@ #!/usr/bin/env groovy -def libInit =[ - remote: 'https://code.digital-me.nl/git/DEVops/DummyJnkLibInit.git', - branch: 'master', +// Load Jenkins shared libraries for all Hypeledger Indy project + +def libIndy =[ + remote: 'git@github.com:digital-me/indy-jenkins-lib.git', + branch: 'draft-01', credentialsId: null, ] -// Load libraries try { echo 'Trying to load shared libraries...' - library identifier: "libInit@${libInit.branch}", retriever: modernSCM( + library identifier: "libIndy@${libIndy.branch}", retriever: modernSCM( [$class: 'GitSCMSource', - remote: libInit.remote, - credentialsId: libInit.credentialsId] + remote: libIndy.remote, + credentialsId: libIndy.credentialsId] ) echo 'Shared library loaded' } catch (error) { echo "Could not load shared libraries: ${error.message}" - exit(1) + currentBuild.result = 'FAILURE' + return } // Initialize configuration -def config = initPipeline() +def config = initConfig() if (!config) { // Fail config is empty currentBuild.result = 'FAILURE'