-
Bug
-
Resolution: Unresolved
-
Minor
-
None
-
blueocean: 1.22
jenkins: 2.204.2
Hey,
I'm using the new Matrix inside a stage of a declarative pipeline.
As requested, one of the stages inside is skipping 2/5 the axes combinations.
When I add a section of options to that stage that contains a "timeout" option, one of the two stages that were skipped is marked as "succeeded" with a green "V" on it.
Look at my hover on that stage, and the results down the page:
This is the code:
stage('Unit Tests') { when { beforeAgent true anyOf { environment name: 'PLATFORM', value: 'trusty' environment name: 'PLATFORM', value: 'xenial' environment name: 'PLATFORM', value: 'bionic' } } options { timeout(time:60, unit: 'MINUTES') } steps { sh "a build step..." } }
To avoid this kind of weird error, I can set the timeout at the step scope, but this is less "declarative" and best practice than what I wanted.
Thanks!