Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add behaviour options for counter factory in case of invalid options.
[FIXED JENKINS-13872] Add the possibility of skipping the triggering, or ignoring the parameters when the to, from and step elements do not form a contained set. Corrected an issue in the BuildTriggerConfig class where if a factory returned no parameters meant that no projects would be triggered in certain cases.
- Loading branch information
c3johnso
committed
Jul 30, 2012
1 parent
f8f0998
commit 89a1d23
Showing
6 changed files
with
118 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
...hudson/plugins/parameterizedtrigger/CounterBuildParameterFactory/help-validationFail.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<div> | ||
This option determines the behaviour to take if the from,to and step values do not form a valid combination. One that gives a finite number of combinations.<br/> | ||
The actions that can be taken are: | ||
<ul> | ||
<li><b>Fail the build step</b> This will fail the buildstep with an RuntimeException. (This is the default, and occured in older versions)</li> | ||
<li><b>Don't trigger these projects</b> This will cause the projects not to be triggered at all for this configuration.</li> | ||
<li><b>Skip these parameters</b> This will allow the projects to be triggered without these parameters.</li> | ||
</ul> | ||
</div> |
5 changes: 4 additions & 1 deletion
5
src/main/resources/hudson/plugins/parameterizedtrigger/Messages.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
CounterBuildParameterFactory.CounterBuildParameterFactory=Counter Parameter Factory | ||
CounterBuildParameterFactory.CountingWillNotTerminate=Counting with step size 0 will not terminate! | ||
CounterBuildParameterFactory.CountingWillNotTerminate=To, from and step form a infinite set, counting will not terminate! | ||
CounterBuildParameterFactory.CountingWillNotTerminateSkipping=To, from and step form a infinite set, counting will not terminate! Triggering Skipped. | ||
CounterBuildParameterFactory.CountingWillNotTerminateIgnore=To, from and step form a infinite set, counting will not terminate! Parameters Ignored. | ||
|
||
FileBuildParameterFactory.FileBuildParameterFactory=File Parameter Factory |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters