Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[JENKINS-30269] Add step configuration page + limit waiting builds
- Loading branch information
Showing
9 changed files
with
196 additions
and
10 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
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
src/main/resources/org/jenkins/plugins/lockableresources/LockStep/config.jelly
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 @@ | ||
<j:jelly xmlns:j="jelly:core" xmlns:st="jelly:stapler" xmlns:d="jelly:define" | ||
xmlns:l="/lib/layout" xmlns:t="/lib/hudson" xmlns:f="/lib/form"> | ||
<f:entry title="${%Resource}" field="resource"> | ||
<f:textbox/> | ||
</f:entry> | ||
<f:entry title="${%Limit waiting builds}" field="maxWaiting"> | ||
<f:number clazz="positive-number"/> | ||
</f:entry> | ||
</j:jelly> |
11 changes: 11 additions & 0 deletions
11
src/main/resources/org/jenkins/plugins/lockableresources/LockStep/help-maxWaiting.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,11 @@ | ||
<div> | ||
<p> | ||
By default builds a queued without any restriction on waiting to lock a common resource | ||
Setting this parameter a limit is forced in the number of waiting builds. Any build trying to lock after | ||
the limit is reached will trigger a cancel round trip which will abort the older waiting build. | ||
</p> | ||
<p> | ||
For example, if builds #3 and #4 are waiting to lock the resource and build #5 reaches the lock step, | ||
then build #3 will be cancelled in favor of #5 which is newer. | ||
</p> | ||
</div> |
5 changes: 5 additions & 0 deletions
5
src/main/resources/org/jenkins/plugins/lockableresources/LockStep/help-resource.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,5 @@ | ||
<div> | ||
<p> | ||
The resource name to lock as defined in Global settings. | ||
</p> | ||
</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