parent
b5d4067a47
commit
8ad6f01b81
14
Jenkinsfile
vendored
14
Jenkinsfile
vendored
@ -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
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user