#!/usr/bin/env groovy​
// 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: "libCmn@${libCmn.branch}",
retriever: modernSCM([
$class: 'GitSCMSource',
remote: libCmn.remote,
credentialsId: libCmn.credentialsId
])
)
// 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)
}