Skip to content

Commit

Permalink
Fix external event tigger bug. Simplify UserCause. File commit before…
Browse files Browse the repository at this point in the history
… tag.
  • Loading branch information
jmetcalf committed Mar 19, 2009
1 parent 2500d2e commit af3db7f
Show file tree
Hide file tree
Showing 9 changed files with 114 additions and 131 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<groupId>org.jvnet.hudson.plugins</groupId>
<artifactId>plugin</artifactId>
<version>1.292</version>
<version>1.291</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand Down
213 changes: 102 additions & 111 deletions src/main/java/hudson/ivy/IvyBuildTrigger.java

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
-->
<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">
<p>${%started_by_user(it.moduleRevisionId,it.userName,rootURL)}</p>
<p>${%started_by_user(it.ivylabel,it.userName,rootURL)}</p>
</j:jelly>
7 changes: 0 additions & 7 deletions src/main/resources/hudson/ivy/IvyBuildTrigger/config.jelly
Original file line number Diff line number Diff line change
@@ -1,11 +1,4 @@
<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">
<j:if test="${!descriptor.globalExtendedVersionMatching}">
<f:entry title="${%revision_matching_title}" field="revisionMatching">
<f:checkbox name="ivy_version_matching" checked="${instance.extendedVersionMatching}"
/>
<label class="attach-previous">${%revision_matching_checkbox}</label>
</f:entry>
</j:if>
<j:if test="${!empty(descriptor.configurations)}">
<f:entry title="${%ivy_configuration_title}" field="settingsName">
<select class="setting-input" name="ivy_conf_name">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
# THE SOFTWARE.

revision_matching_title=Ivy Revision Matching
revision_matching_checkbox=Use extended revision matching to filter upstream project dependencies
ivy_configuration_title=Ivy Settings
ivy_configuration_default=(Default)
ivy_file_title=Ivy File
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/hudson/ivy/IvyBuildTrigger/global.jelly
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<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="Ivy">
<f:entry title="${%revision_matching_title}" field="revisionMatching">
<f:checkbox name="ivy_global_version_matching" checked="${descriptor.globalExtendedVersionMatching}"
<f:checkbox name="ivy_version_matching" checked="${descriptor.extendedVersionMatching}"
/>
<label>${%revision_matching_checkbox}</label>
</f:entry>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
# THE SOFTWARE.

revision_matching_title=Ivy Revision Matching
revision_matching_checkbox=Use extended revision matching to filter upstream project dependencies globally
revision_matching_checkbox=Use extended revision matching to filter the project dependency graph
ivy_configuration_title=Ivy Settings
ivy_configuration_description=List of Ivy Settings
ivy_configuration_name_title=name
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
<div>
Select this checkbox if you want to allow the optional <i>trunk</i> and <i>revision</i> attributes
of the ivy.xml module descriptor to help identify upstream project dependencies within Hudson.
of the ivy.xml module descriptor to help calculate and filter the Hudson project dependency graph.
Leaving this option unchecked means that only the mandatory <i>organisation</i> and <i>module</i>
attributes will be used when matching against project module descriptors. However it also means
attributes will be used when matching against the project ivy module descriptors. However it also means
that if you have two or more projects configured in Hudson using the same mandatory attribute
values in their module descriptors, and this project defines a dynamic revision dependency on one of the
modules, then all those projects will match and will be considered upstream dependencies. This is usually
values in their module descriptors, and another project defines a dynamic revision dependency on one of the
modules, then all of the projects will match and will be considered upstream dependencies. This is usually
<b>not</b> what you want if you are using Hudson CI to build different versions (or different
source code branches) of the same module at the same time.
</div>
source code branches) of the same module at the same time, and selecting this checkbox can help
avoid this problem.
</div>
2 changes: 1 addition & 1 deletion src/main/resources/hudson/ivy/IvyBuildTrigger/help.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div>
If configured, Hudson will use the information in Ivy module descriptors (project-level ivy.xml files)
when building its internal lists of upstream and downstream project dependencies.
when building its internal project dependency graph.
</div>

0 comments on commit af3db7f

Please sign in to comment.