Skip to content

Instantly share code, notes, and snippets.

@jrich523
Created July 31, 2019 19:06
Show Gist options
  • Save jrich523/02e2e403662b72cc3e310cef484c574d to your computer and use it in GitHub Desktop.
Save jrich523/02e2e403662b72cc3e310cef484c574d to your computer and use it in GitHub Desktop.
List folders = [
'twelve-factor/Jenkinsfile',
'build-and-publish/Jenkinsfile',
'deploy-and-test/Jenkinsfile',
'deploy-with-redis/Jenkinsfile',
'locust-perf-test/Jenkinsfile',
'deploy-selenium-grid/Jenkinsfile',
'ami/Jenkinsfile'
]
Map subJobs = [:] // name:closure
node {
checkout scm
for(folder in folders) {
subJobs[folder] = {
stage (folder) {
(load(folder)).go()
}
}
}
parallel subJobs
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment