jenkins-job-builder/tests/builders/fixtures/conditional-step-multiple-steps-and.yaml
Jef Mallal ad5ae3e2d6 Builders: conditional-step fix
When multiple steps are used, the condition has the wrong kind of
conditional and is always "Always".

Add test that exercise multiple steps with a And condition.
Also add a dummy test when multiple steps are listed.

Fix https://storyboard.openstack.org/#!/story/2000594

Change-Id: I4802bec9db407a09b23eea7e31235136d8bb72c2
2017-06-05 22:04:56 +02:00

17 lines
489 B
YAML

builders:
- conditional-step:
condition-kind: and
condition-operands:
- condition-kind: regex-match
regex: "*abc*"
label: "dabcddabc"
- condition-kind: time
earliest-hour: "2"
earliest-min: "0"
latest-hour: "23"
latest-min: "40"
use-build-time: true
steps:
- shell: "sl"
- shell: "ls"