Created
August 16, 2016 18:36
-
-
Save gmas/aa733b3d1abd2d1892a2898d1d578188 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
REPOS=['api-test','api-new-test'] | |
for (repo in REPOS) { | |
repoName = "${repo} PROD" | |
repoSshUrl = "[email protected]: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