Using the Pipeline Syntax page to generate code for discoverReferenceBuild results in:
discoverReferenceBuild requiredResult: 'FAILURE'
This doesn't work as requiredResult doesn't expect a string. Instead it's expect:
discoverReferenceBuild requiredResult: hudson.model.Result.FAILURE
So either the code generator should be adjusted, or the parser that he also accepts a string.
- links to