rebuilt script structure #7

rebuilt script structure #7
This commit is contained in:
psycho 2020-11-09 15:22:04 +01:00
parent b5d4067a47
commit 8ad6f01b81

16
Jenkinsfile vendored
View File

@ -98,7 +98,6 @@ node('test')
}
catch (e)
{
printDebug(e)
handle_failure(e)
}
finally
@ -142,19 +141,12 @@ def build()
stage('build')
{
sh label: 'copy_config', script: 'cp ' + config_path + 'tl_wr841_config ' + git_folder + '/.config'
try
statusCode = sh label: 'build', script: 'cd ' + git_folder + '; make defconfig; make download; make -j$((`nproc` + 1))', returnStatus:true
printDebug(statusCode)
if(statusCode != 0)
{
statusCode = sh label: 'build', script: 'cd ' + git_folder + '; make defconfig; make download; make -j$((`nproc` + 1))', returnStatus:true
}
catch (e)
{
printDebug(e)
printDebug('multicore build failed -> trying to build verbosely on a single core')
//sh label: 'build', script: 'cd ' + git_folder + '; make defconfig; make download; make -j1 V=sc'
}
finally
{
//empty
//sh label: 'build_single_core', script: 'cd ' + git_folder + '; make defconfig; make download; make -j1 V=s'
}
}