-
Improvement
-
Resolution: Unresolved
-
Minor
-
None
When using the conditional buildstep plugin to build an if-else structure, you have to configure the same condition two times.
Example: execute step x if strings match, execute step y else
You will have to wrap step x into a strings-match-condition and wrap step y into a not(string-match)-condition.
It would be much nicer to be able to add an else-block to do something like this:
Run if strings match: string1, string2
--> step x
else
--> step y
- is duplicated by
-
JENKINS-25918 Conditional Build Step - Add support for else clause
-
- Closed
-
I absolutely agreed, some of my conditions are so much messier due to the repetition - that I've fallen back to edit the config.xml via API.
, it would make this less painful.)
(BTW, if there was a way to copy/paste buildsteps between outside and insider the condition (and in general in Jenkins
I'm considering working on this - unless experts owners disagree or think it's really tricky to do.