Skip to content

Instantly share code, notes, and snippets.

@yoshikaw
Last active September 13, 2016 11:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yoshikaw/e548d76f41650a884f5fdf39d50db075 to your computer and use it in GitHub Desktop.
Save yoshikaw/e548d76f41650a884f5fdf39d50db075 to your computer and use it in GitHub Desktop.
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