Advertisement
Guest User

Untitled

a guest
Jun 26th, 2019
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. boolean isBranchIndexingCause() {
  2. def isBranchIndexing = false
  3. if (!currentBuild.rawBuild) {
  4. return true
  5. }
  6.  
  7. currentBuild.rawBuild.getCauses().each { cause ->
  8. if (cause instanceof jenkins.branch.BranchIndexingCause) {
  9. isBranchIndexing = true
  10. }
  11. }
  12. return isBranchIndexing
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement