Created
February 26, 2011 04:56
-
-
Save tyuki39/844956 to your computer and use it in GitHub Desktop.
Jenkinsのビルド中ジョブ または キューに入っているジョブを取得する
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
// Jenkinsのビルド中のジョブを取得する | |
def jobs = hudson.model.Hudson.instance.items.findAll { it.isBuilding() } | |
jobs.each { println it.name } |
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
// 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