Skip to content

Instantly share code, notes, and snippets.

@tyuki39
Created March 9, 2011 13: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 tyuki39/862188 to your computer and use it in GitHub Desktop.
Save tyuki39/862188 to your computer and use it in GitHub Desktop.
Jenkinsで動作中のプロジェクト自身を取得する方法
// 動作中のプロジェクト自身を取得する方法
// 以下は groovy plugin の Execute system Groovy script の中で使用して
// groovy plugin自体を実行しているプロジェクトを取得する例
def currentJob = Thread.currentThread().executable.project
println currentJob.name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment