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

14
Jenkinsfile vendored
View File

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