rebuilt script structure#8
rebuilt script structure#8
This commit is contained in:
parent
8ad6f01b81
commit
e9f04ec4d6
10
Jenkinsfile
vendored
10
Jenkinsfile
vendored
@ -98,7 +98,8 @@ node('test')
|
||||
}
|
||||
catch (e)
|
||||
{
|
||||
handle_failure(e)
|
||||
printDebug(e)
|
||||
handle_failure()
|
||||
}
|
||||
finally
|
||||
{
|
||||
@ -146,7 +147,7 @@ def build()
|
||||
if(statusCode != 0)
|
||||
{
|
||||
printDebug('multicore build failed -> trying to build verbosely on a single core')
|
||||
//sh label: 'build_single_core', script: 'cd ' + git_folder + '; make defconfig; make download; make -j1 V=s'
|
||||
sh label: 'build_single_core', script: 'cd ' + git_folder + '; make defconfig; make download; make -j1 V=s'
|
||||
}
|
||||
}
|
||||
|
||||
@ -167,9 +168,10 @@ def post_build()
|
||||
{
|
||||
//if no build is needed, then the last build is deleted and the next build number is set to previous build number
|
||||
|
||||
def jobName = JOB_NAME
|
||||
def job = Jenkins.instance.getItem(jobName)
|
||||
//def jobName = JOB_NAME
|
||||
def job = Jenkins.instance.getItem(JOB_NAME)
|
||||
job.getLastBuild().delete()
|
||||
//Jenkins.instance.getItem(JOB_NAME).getLastBuild().delete()
|
||||
//printDebug('NUMBER:' + job.nextBuildNumber)
|
||||
//logger.printInfo('job is getting deleted ' + currentBuild.id.toString())//job.nextBuildNumber)
|
||||
//job.nextBuildNumber -= 1 //updateNextBuildNumber(job.getNextBuildNumber() - 1) //resetting next build number does not work. if done, the next build start will do nothing
|
||||
|
Loading…
Reference in New Issue
Block a user