rebuilt script structure#8

rebuilt script structure#8
This commit is contained in:
psycho 2020-11-09 16:00:39 +01:00
parent 8ad6f01b81
commit e9f04ec4d6

10
Jenkinsfile vendored
View File

@ -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