jobs/buildAll: fixed small typo and enhanced stage status
Signed-off-by: Marc Mattmüller <marc.mattmueller@netmodule.com>
This commit is contained in:
parent
27afb7e2ef
commit
74ef65ec33
|
|
@ -76,14 +76,22 @@ pipeline {
|
|||
steps {
|
||||
script {
|
||||
def listOfTargets = getTargetsFromList()
|
||||
|
||||
def isBuildSuccess = true
|
||||
def firstMachineFailing = ""
|
||||
catchError(buildResult: 'FAILURE', stageResult: 'FAILURE') {
|
||||
for (machine in listOfTargets) {
|
||||
if(isMachineSane(machine)) {
|
||||
println "BUILDING ${machine}"
|
||||
runBuildJob(common, machine, "${params.BUILD_BRANCH}")
|
||||
}
|
||||
def buildjob = runBuildJob(common, machine, "${params.BUILD_BRANCH}")
|
||||
if((buildJob.getResult() != 'SUCCESS') && isBuildSuccess) {
|
||||
isBuildSuccess = false
|
||||
firstMachineFailing = machine
|
||||
}
|
||||
} // end isMachineSane
|
||||
} // end for
|
||||
if(!isBuildSuccess) {
|
||||
error("Build error, first machine failing = ${firstMachineFailing}")
|
||||
}
|
||||
} // end catchError
|
||||
}
|
||||
}
|
||||
|
|
@ -115,8 +123,8 @@ def checkJobParameters(commonHelpers) {
|
|||
//---------------------------------------------------------------------------------------------------------------------
|
||||
def setDisplayName(commonHelpers) {
|
||||
def buildName = "#${env.BUILD_NUMBER}"
|
||||
def postfix = icommonHelpers.sJobTriggeredByTimer() ? "-nightly" : ""
|
||||
currentBuild.displayName = "${buildName}-${env.TARGET}${postfix}"
|
||||
def postfix = commonHelpers.isJobTriggeredByTimer() ? "-nightly" : ""
|
||||
currentBuild.displayName = "${buildName}${postfix}"
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -125,7 +133,7 @@ def setupEnvironment(commonHelpers) {
|
|||
def nwlBranch = "${params.BUILD_BRANCH}"
|
||||
def nwlRepoDir = "${env.YOCTO_REPO_DIR}"
|
||||
commonHelpers.gitCheckout("${env.YOCTO_REPO_URL}", nwlBranch, nwlRepoDir, true)
|
||||
env.BUILD_IMG_JOB = "/build-target/${env.BRANCH_NAME}"
|
||||
env.BUILD_IMG_JOB = "/build-yocto-target-pipeline/${env.BRANCH_NAME}"
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
|
|
|||
Loading…
Reference in New Issue