Last active
September 13, 2016 11:33
-
-
Save yoshikaw/e548d76f41650a884f5fdf39d50db075 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
def map = [:] | |
for (int i = 1; i <= 5; i++) { | |
map["p00${i}"] = { | |
node { | |
sh "echo ${i}; date +'%Y/%m/%d %H:%M:%S'" | |
} | |
} | |
} | |
map.failFast = true | |
timestamps { | |
parallel map | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment