Details
-
Bug
-
Status: Closed (View Workflow)
-
Minor
-
Resolution: Fixed
-
None
-
flexible-publish-0.14.1
Description
Following case:
Flexible Publish Conditional Action Run?: String match String1: ${Test1} String2: expected Action some action 1 some action 2
In this case, string matching is evaluated each for some action 1 and some action 2.
The condition should be evaluated only one for the configuration as:
- It can be a problem if there is a condition with side-effects.
- Users can expect the condition will be evaluated only once as they configured that only once in the configuration page.
- Users can configure like this if they really want the condition evaluated for each time:
Flexible Publish Conditional Action Run?: String match String1: ${Test1} String2: expected Action some action 1 Conditional Action Run?: String match String1: ${Test1} String2: expected Action some action 2
ikedam Consider declaring configuration incompatibility so users know their jobs may behave differently.
https://wiki.jenkins-ci.org/display/JENKINS/Marking+a+new+plugin+version+as+incompatible+with+older+versions
Examples:
https://github.com/jenkinsci/ldap-plugin/blob/master/pom.xml#L121
https://github.com/jenkinsci/build-flow-plugin/blob/master/pom.xml#L106