Skip to content

Instantly share code, notes, and snippets.

@gmas
Created August 16, 2016 18:36
Show Gist options
  • Save gmas/aa733b3d1abd2d1892a2898d1d578188 to your computer and use it in GitHub Desktop.
Save gmas/aa733b3d1abd2d1892a2898d1d578188 to your computer and use it in GitHub Desktop.
REPOS=['api-test','api-new-test']
for (repo in REPOS) {
repoName = "${repo} PROD"
repoSshUrl = "git@github.com:blah/${repo}.git"
// Create the job
job {
name "${repoName}"
scm {
git {
remote {
url("${repoSshUrl}")
branch("master")
}
}
}
steps {
shell("echo ${repoName}")
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment