mirror of https://github.com/milvus-io/milvus.git
update isTimeTriggeredBuild funtion in ci/jenkins/Jenkinsfile
Former-commit-id: a4bf86ced62c3191dfdc73b87251477eddf347c4pull/191/head
parent
66cfb2d527
commit
a0c938bc01
|
@ -161,8 +161,8 @@ pipeline {
|
|||
}
|
||||
|
||||
boolean isTimeTriggeredBuild() {
|
||||
for (Object currentBuildCause : script.currentBuild.rawBuild.getCauses()) {
|
||||
return currentBuildCause.class.getName().contains('TimerTriggerCause')
|
||||
if (currentBuild.getBuildCauses('hudson.triggers.TimerTrigger$TimerTriggerCause').size() != 0) {
|
||||
return true
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue