Skip to content

Instantly share code, notes, and snippets.

@ikikko
Created May 21, 2012 13:22
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 ikikko/2762287 to your computer and use it in GitHub Desktop.
Save ikikko/2762287 to your computer and use it in GitHub Desktop.
Jenkinsのジョブ失敗時にビルドを保存するスクリプト(Groovy Postbuild Plugin用)
if (manager.build.result.isWorseOrEqualTo(hudson.model.Result.UNSTABLE)) {
manager.listener.logger.println("ビルドを保存します")
manager.build.keepLog()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment