SHARE
TWEET

Untitled

a guest Jun 26th, 2019 77 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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.   }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top