Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- boolean isBranchIndexingCause() {
- def isBranchIndexing = false
- if (!currentBuild.rawBuild) {
- return true
- }
- currentBuild.rawBuild.getCauses().each { cause ->
- if (cause instanceof jenkins.branch.BranchIndexingCause) {
- isBranchIndexing = true
- }
- }
- return isBranchIndexing
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement