print"INFO: Build skipped due to trigger being Branch Indexing"
currentBuild.result='ABORTED'// optional, gives a better hint to the user that it's been skipped, rather than the default which shows it's successful
return
}
// if (currentBuild.rawBuild.getCauses().toString().contains('BranchIndexingCause')) {
// print "INFO: Build skipped due to trigger being Branch Indexing"
// currentBuild.result = 'ABORTED' // optional, gives a better hint to the user that it's been skipped, rather than the default which shows it's successful