Newer
Older
DummyJnkPL / Jenkinsfile
@Benoit Donneaux Benoit Donneaux on 9 Mar 2018 760 bytes Switch the lazy lib to test lazy stage
#!/usr/bin/env groovy​

// Load Jenkins shared libraries common to all projects
def libCmn = [
	remote:		'https://code.in.digital-me.nl/git/DEVops/JenkinsLibLazy.git',
	branch:		env.BRANCH_NAME,
	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')

lazyStage {
    name = 'validate'
    tasks = [
    	[ exec: { echo "This is my first task" }, ],
    	[ exec: { echo "This is my second task" }, on: '*' ],
    	[ exec: "This is my third task", on: [ 'ubuntu-16', 'centos-7', ] ],
    	[ exec: [ "This and", "that are my last tasks"] ],
    ] 
}