Hi,

I would in this case stop using Multijob at all. Replace it with a pipeline 
job that starts your sub-jobs and collects there results.
Then you can compute and set the result at the end.


Something  like:

node() {
stage('build') {
    parallel "job1":  { r1 = build ([job: 'Job1', propagate: false]) }, 
               "job2":  { r2 = build ([job: 'Job2', propagate: false]) },
               failFast : False                        
    }
}
stage ('evaluate'') {
  if (r1.result ==UNSTABLE) { // evaluate the results here....
  currentBuild.result = FAILED
}

 r1.result then contains the build result from job 1 etc..

Björn

Am Donnerstag, 22. März 2018 12:43:24 UTC+1 schrieb [email protected]:
>
> Can anyone suggest or kick me off with some tips for a Jenkins newbie on 
> the following topic?
>
> I would repeat the post here but am unsure of formatting options so 
> thought the original link was best:
>
>
> https://stackoverflow.com/questions/49259603/setting-jenkins-multijob-build-result-with-groovy-script-based-on-pass-fail-ch
>
> Thanks
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/f84090c3-3472-47aa-96e9-8eb90dfd1926%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to