Last active
August 4, 2017 15:17
-
-
Save abayer/79700ea922e523d2e82a28675b1181e6 to your computer and use it in GitHub Desktop.
This file contains 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 jenkins.triggers.ReverseBuildTrigger | |
Jenkins.instance.getAllItems().each { i -> | |
if (i instanceof Job) { | |
ReverseBuildTrigger t = i.getTriggers().values().find { it instanceof ReverseBuildTrigger } | |
if (t != null && t.upstreamProjects == null) { | |
println "${i.getFullName()} has null upstreamProjects" | |
} | |
} | |
} | |
return |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment