Hi, I have such jenkins file, looks like the catchError behavior isn’t
expected when set build propagate: true
catchError(stageResult: 'UNSTABLE', buildResult: null) {
def buildResult = build propagate: true, job: 'test', parameters: [xxx]
def buildNumber = buildResult.getNumber()
env.testBuildNumber = buildNumber
}
when the "test" job is FAILTURE, the currentBuild.currentResult still is
FAILTURE, and I can't get env.testBuildNumber too.
--
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/d54cd459-4509-4da6-954e-881006f9b5c6n%40googlegroups.com.