Newer
Older
DummyJnkPL / Jenkinsfile
@Benoit Donneaux Benoit Donneaux on 11 Dec 2017 702 bytes Add name to config options and improve readability
#!/usr/bin/env groovy​

package indyjenkinslib

// Load Jenkins shared libraries for all Hypeledger Indy project
def libIndy = [
	scmClass:			'GitSCMSource',
	scmURL:				'https://github.com/digital-me/indy-jenkins-lib.git',
	scmBranch:			'draft-01',
	scmCredentialsId:	null,
]

library identifier: "libIndy@${libIndy.scmBranch}", retriever: modernSCM([
	$class: libIndy.scmClass,
	remote: libIndy.scmURL,
	credentialsId: libIndy.scmCredentialsId
])

// Initialize configuration
def config = initConfig(env.JOB_NAME)

 
// CI Pipeline
stageCompile(config)
stageTest(config)
stagePackage(config)

// CD Pipeline
if (config.extended) {
	stageRelease(config)
	stageDelivery(config)
	stageNotify(config)
}