jenkins-job-builder/tests/builders/fixtures/conditional-step-or.yaml
Somay Jain 85494b34c5 Support for more conditions type in conditions-buildstep plugin
Support for the following conditions -
* Build cause
* Day of week
* Execution node
* Files match
* Numerical comparison
* Regular expression match
* Time
* And
* Or

Change-Id: Ib65de726abf1dd4798d7dd451cd786c61c53742c
2015-07-13 23:35:24 +05:30

21 lines
632 B
YAML

builders:
- conditional-step:
condition-kind: or
condition-operands:
- condition-kind: num-comp
lhs: "2 + 5"
rhs: "1 + 6"
comparator: equal
condition-basedir: "jenkins-home"
- condition-kind: files-match
include-pattern:
- "inc_pattern1"
- "inc_pattern2"
exclude-pattern:
- "exc_pattern1"
- "exc_pattern2"
condition-basedir: "jenkins-home"
steps:
- shell: "sl"