Closed unknowIfGuestInDream closed 1 week ago
stage('Check value') { if ($VALUE1 == $VALUE2) { currentBuild.result = 'SUCCESS' return } // 继续执行剩余的构建步骤 }
if (!continueBuild) { currentBuild.result = 'ABORTED' error('Stopping early…') }
if (!continueBuild) { currentBuild.result = 'ABORTED' error('Stopping early…') }
script { currentBuild.getRawBuild().getExecutor().interrupt(Result.NOT_BUILT) sleep(1) // Interrupt is not blocking and does not take effect immediately. }
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue.
Checklist
Describe the feature
检查git最新commit,如果没有则停止 https://www.oomkill.com/2018/05/jenkins-checkcode/
Additional context
No response