Skip to content

Instantly share code, notes, and snippets.

@tyuki39
Created February 26, 2011 04:56
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tyuki39/844956 to your computer and use it in GitHub Desktop.
Save tyuki39/844956 to your computer and use it in GitHub Desktop.
Jenkinsのビルド中ジョブ または キューに入っているジョブを取得する
// Jenkinsのビルド中のジョブを取得する
def jobs = hudson.model.Hudson.instance.items.findAll { it.isBuilding() }
jobs.each { println it.name }
// Jenkinsのキューに入っているジョブを取得する
def jobs = hudson.model.Hudson.instance.items.findAll { it.isInQueue() }
jobs.each { println it.name }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment