Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
[fixed JENKINS-14070] add limit to number of schedules
(also fix tests)
- Loading branch information
Showing
with
58 additions
and 13 deletions.
- +19 −9 src/main/java/com/chikli/hudson/plugin/naginator/NaginatorListener.java
- +17 −1 src/main/java/com/chikli/hudson/plugin/naginator/NaginatorPublisher.java
- +4 −0 src/main/resources/com/chikli/hudson/plugin/naginator/NaginatorPublisher/config.jelly
- +3 −0 src/main/resources/com/chikli/hudson/plugin/naginator/NaginatorPublisher/help-maxSchedule.html
- +3 −0 src/main/resources/com/chikli/hudson/plugin/naginator/NaginatorPublisher/help.html
- +9 −0 src/main/resources/com/chikli/hudson/plugin/naginator/ProgressiveDelay/help.html
- +1 −1 src/main/resources/index.jelly
- +2 −2 src/test/java/com/chikli/hudson/plugin/naginator/NaginatorListenerTest.java
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
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
@@ -0,0 +1,3 @@ | ||
<div> | ||
Limits the number of successive job schedules after a build failure. Set to 0 for no limit. | ||
</div> |
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
@@ -0,0 +1,3 @@ | ||
<div> | ||
This option allows to reschedule job upon failure. | ||
</div> |
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
@@ -0,0 +1,9 @@ | ||
<div xmlns="http://www.w3.org/1999/html"> | ||
if a build fails for a reason that cannot be immediately fixed, | ||
immediate rescheduling may cause a very tight loop. | ||
combined with publishers like e-mail, IM, this could flood the users. | ||
<p> | ||
So to avoid this problem, progressively introduce delay until the next build | ||
delay = the number of consective build problems * <em>increment</em> | ||
back off at most <em>max</em> | ||
</div> |
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
@@ -4,5 +4,5 @@ | ||
Since we don't really have anything dynamic here, let's just use static HTML. | ||
--> | ||
<div> | ||
This plugin allows you to reschedule job upon failure. | ||
</div> |
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