Skip to content

Instantly share code, notes, and snippets.

View aryak007's full-sized avatar

Aryak Sengupta aryak007

View GitHub Profile
@aryak007
aryak007 / jenkins-job-dsl.groovy
Created December 21, 2015 12:09 — forked from stuartstevenson/jenkins-job-dsl.groovy
Jenkins job dsl with distributed job config files. The seed.groovy file scans stash repo branches for jenkins-job-dsl.groovy files and runs them centrally.
Closure job = {
// Job Name
name "${stashProjectKey}-${projectName}-${branchSimpleName}"
// Where should jenkins run the job
label ('master')
// Where should Jenkins get the source code from
scm {
git {