diff --git a/Jenkinsfile b/Jenkinsfile index be37ed6..725e5da 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -3,34 +3,22 @@ package indyjenkinslib // Load Jenkins shared libraries for all Hypeledger Indy project - def libIndy = [ - remote: 'https://github.com/digital-me/indy-jenkins-lib2.git', - branch: 'draft-01', - credentialsId: null, + scmClass: 'GitSCMSource', + scmURL: 'https://github.com/digital-me/indy-jenkins-lib.git', + scmBranch: 'draft-01', + scmCredentialsId: null, ] -//try { -// echo 'Trying to load shared libraries...' - library identifier: "libIndy@${libIndy.branch}", retriever: modernSCM( - [$class: 'GitSCMSource', - remote: libIndy.remote, - credentialsId: libIndy.credentialsId] - ) -// echo 'Shared library loaded' -//} catch (error) { -// echo "Could not load shared libraries: ${error.message}" -// currentBuild.result = 'FAILURE' -// return -//} +library identifier: "libIndy@${libIndy.scmBranch}", retriever: modernSCM([ + $class: libIndy.scmClass, + remote: libIndy.scmURL, + credentialsId: libIndy.scmCredentialsId +]) // Initialize configuration -def config = initConfig() -//if (!config) { -// // Fail config is empty -// currentBuild.result = 'FAILURE' -// return -//} +def config = initConfig(env.JOB_NAME) + // CI Pipeline stageCompile(config)