From 8ad6f01b81215624943b2119c370fc5b4adfef9b Mon Sep 17 00:00:00 2001 From: psycho Date: Mon, 9 Nov 2020 15:22:04 +0100 Subject: [PATCH] rebuilt script structure #7 rebuilt script structure #7 --- Jenkinsfile | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 06ae494..a362e8e 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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' } }