abort pervious build
This commit is contained in:
parent
137405ba61
commit
4478f3496b
|
@ -24,13 +24,7 @@ def abortPreviousBuilds() {
|
||||||
build.doKill() //doTerm(),doKill(),doTerm()
|
build.doKill() //doTerm(),doKill(),doTerm()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//abort previous build
|
|
||||||
abortPreviousBuilds()
|
|
||||||
def abort_previous(){
|
|
||||||
def buildNumber = env.BUILD_NUMBER as int
|
|
||||||
if (buildNumber > 1) milestone(buildNumber - 1)
|
|
||||||
milestone(buildNumber)
|
|
||||||
}
|
|
||||||
def pre_test(){
|
def pre_test(){
|
||||||
catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') {
|
catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') {
|
||||||
sh '''
|
sh '''
|
||||||
|
|
Loading…
Reference in New Issue