testing_37
37
This commit is contained in:
parent
492aad1356
commit
1419864356
4
Jenkinsfile
vendored
4
Jenkinsfile
vendored
@ -140,9 +140,9 @@ node('test')
|
||||
|
||||
def jobName = JOB_NAME
|
||||
def job = Jenkins.instance.getItem(jobName)
|
||||
logger.printInfo('job is getting deleted ' + currentBuild.id.toString())//job.nextBuildNumber)
|
||||
//logger.printInfo('job is getting deleted ' + currentBuild.id.toString())//job.nextBuildNumber)
|
||||
job.getLastBuild().delete()
|
||||
//job.nextBuildNumber -= 1 //updateNextBuildNumber(job.getNextBuildNumber() - 1) //resetting next build number does not work. if done, the next build start will do nothing
|
||||
job.nextBuildNumber -= 1 //updateNextBuildNumber(job.getNextBuildNumber() - 1) //resetting next build number does not work. if done, the next build start will do nothing
|
||||
job.save()
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user