Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Merge pull request #39 from ikedam/feature/JENKINS-11655_NewestUpstream
[JENKINS-11655] Use the newest upstream
- Loading branch information
Showing
8 changed files
with
897 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
42 changes: 42 additions & 0 deletions
42
src/main/resources/hudson/plugins/copyartifact/TriggeredBuildSelector/global.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,42 @@ | ||
<!-- | ||
The MIT License | ||
Copyright (c) 2014 IKEDA Yasuyuki | ||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
The above copyright notice and this permission notice shall be included in | ||
all copies or substantial portions of the Software. | ||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||
THE SOFTWARE. | ||
--> | ||
<?jelly escape-by-default='true'?> | ||
<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:section title="Copyartifact: ${descriptor.displayName}"> | ||
<f:entry field="globalUpstreamFilterStrategy" title="${%Which for multiple upstream}"> | ||
<j:scope> | ||
<j:set var="field" value="globalUpstreamFilterStrategy" /> | ||
<select class="setting-input" name="${field}"> | ||
<j:forEach var="it" items="${descriptor.getPropertyType(instance,field).enumConstants}"> | ||
<j:if test="${it.forGlobalSetting}"> | ||
<f:option value="${it.name()}" selected="${it==instance[field]}"> | ||
${it.getDisplayName()} | ||
</f:option> | ||
</j:if> | ||
</j:forEach> | ||
</select> | ||
</j:scope> | ||
</f:entry> | ||
</f:section> | ||
</j:jelly> |
6 changes: 6 additions & 0 deletions
6
...hudson/plugins/copyartifact/TriggeredBuildSelector/help-globalUpstreamFilterStrategy.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,6 @@ | ||
<div> | ||
"Upstream build that triggered this job", a build selector in Copyartifact can specify | ||
which upstream build to use when a build is triggered by multiple upstream builds. | ||
This field specifies the default value for that configuration, | ||
which is used when "Use global setting" is specified in project configurations. | ||
</div> |
7 changes: 7 additions & 0 deletions
7
...urces/hudson/plugins/copyartifact/TriggeredBuildSelector/help-upstreamFilterStrategy.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,7 @@ | ||
<div> | ||
Jenkins launches only one build when multiple upstreams triggered the same project at the same time. | ||
This field specifies from which upstream build to copy artifacts in those cases. | ||
"Use the oldest" copies artifacts from the upstream build with the smallest build number (that is, oldest). | ||
"Use the newest" copies artifacts from the upstream build with the largest build number (that is, newest). | ||
The default value is "Use global setting", which behaves as configured in "Manage Jenkins" > "Configure System". | ||
</div> |
Oops, something went wrong.