mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-16 05:22:22 +00:00
[FIXED-HUDSON-7162]
Hudson ignores Maven pom.xml path when it is specified as absolute path. Provided utility methods for checking whether a path is absolute and absolutizing a given path (w.r.t. a base). Provided a unit test case for this scenario (@Bug 7261). git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@34004 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
1 parent
e31629b189
commit
b228c24db5
5 files changed
+100
-62
No files matched your search
@@ -26,30 +26,30 @@ package hudson.maven;
|
||||
import hudson.*;
|
||||
import hudson.model.*;
|
||||
import hudson.model.Descriptor.FormException;
|
||||
import static hudson.model.ItemGroupMixIn.loadChildren;
|
||||
import hudson.model.Queue;
|
||||
import hudson.model.Queue.Task;
|
||||
import hudson.search.CollectionSearchIndex;
|
||||
import hudson.search.SearchIndexBuilder;
|
||||
import hudson.tasks.Maven.MavenInstallation;
|
||||
import hudson.tasks.*;
|
||||
import hudson.tasks.Maven.MavenInstallation;
|
||||
import hudson.tasks.junit.JUnitResultArchiver;
|
||||
import static hudson.Util.fixEmpty;
|
||||
import hudson.util.CopyOnWriteMap;
|
||||
import hudson.util.DescribableList;
|
||||
import hudson.util.Function1;
|
||||
import hudson.util.FormValidation;
|
||||
import hudson.util.Function1;
|
||||
import net.sf.json.JSONObject;
|
||||
import org.kohsuke.stapler.QueryParameter;
|
||||
import org.kohsuke.stapler.StaplerRequest;
|
||||
import org.kohsuke.stapler.StaplerResponse;
|
||||
import org.kohsuke.stapler.QueryParameter;
|
||||
import org.kohsuke.stapler.export.Exported;
|
||||
|
||||
import javax.servlet.ServletException;
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
import java.util.*;
|
||||
|
||||
import net.sf.json.JSONObject;
|
||||
import org.kohsuke.stapler.export.Exported;
|
||||
import static hudson.Util.fixEmpty;
|
||||
import static hudson.model.ItemGroupMixIn.loadChildren;
|
||||
|
||||
/**
|
||||
* Group of {@link MavenModule}s.
|
||||
@@ -198,8 +198,10 @@ public final class MavenModuleSet extends AbstractMavenProject<MavenModuleSet,Ma
|
||||
protected void updateTransientActions() {
|
||||
super.updateTransientActions();
|
||||
// Fix for ISSUE-1149
|
||||
for (MavenModule module: modules.values()) {
|
||||
module.updateTransientActions();
|
||||
if (modules!=null) {
|
||||
for (MavenModule module: modules.values()) {
|
||||
module.updateTransientActions();
|
||||
}
|
||||
}
|
||||
if(publishers!=null) // this method can be loaded from within the onLoad method, where this might be null
|
||||
for (BuildStep step : publishers)
|
||||
|
||||
Reference in new issue
Block a user