Created
September 4, 2018 09:05
-
-
Save namuan/6e6892bb695c5368f9c7ad83acd47506 to your computer and use it in GitHub Desktop.
[Find queued items in Jenkins] #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
import hudson.model.* | |
def q = Jenkins.instance.queue | |
def blocked = q.items.find { it.task.name.startsWith("<SEARCH STRING>") } | |
q.cancel(blocked.task) | |
println "" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment