Skip to content

Instantly share code, notes, and snippets.

@dketov
Created March 5, 2018 09:45
Show Gist options
  • Save dketov/250fec905ce0ebee863308c0d90d8c17 to your computer and use it in GitHub Desktop.
Save dketov/250fec905ce0ebee863308c0d90d8c17 to your computer and use it in GitHub Desktop.
node {
TARGETS = TARGETS.split()
TARGETS.collect { this ->
(name, label) = this.split(':').plus([null])
stage name, {
try {
println name, label
} catch(e) {
throw e
}
}
return label
}.unique().each { this ->
println this
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment