Created
March 5, 2018 09:45
-
-
Save dketov/250fec905ce0ebee863308c0d90d8c17 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
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