summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorakozak2011-11-25 05:21:40 (EST)
committer Winston Prakash2011-12-01 20:47:36 (EST)
commite698b19b5c4a63a321be7618425fc9dfbacda86e (patch)
tree771dad226c22cccd2356ca0aa09ebec9752fd3a7
parent144e1baca5729d3f069a42435fab86c7ae42c020 (diff)
downloadorg.eclipse.hudson.core-e698b19b5c4a63a321be7618425fc9dfbacda86e.zip
org.eclipse.hudson.core-e698b19b5c4a63a321be7618425fc9dfbacda86e.tar.gz
org.eclipse.hudson.core-e698b19b5c4a63a321be7618425fc9dfbacda86e.tar.bz2
setCascadingProjectName method should be called from Job class during submit
Signed-off-by: Winston Prakash <winston.prakash@gmail.com>
-rw-r--r--hudson-core/src/main/java/hudson/model/AbstractProject.java1
-rw-r--r--hudson-core/src/main/java/hudson/model/Job.java1
2 files changed, 1 insertions, 1 deletions
diff --git a/hudson-core/src/main/java/hudson/model/AbstractProject.java b/hudson-core/src/main/java/hudson/model/AbstractProject.java
index 13f8163..812f71e 100644
--- a/hudson-core/src/main/java/hudson/model/AbstractProject.java
+++ b/hudson-core/src/main/java/hudson/model/AbstractProject.java
@@ -1939,7 +1939,6 @@ public abstract class AbstractProject<P extends AbstractProject<P,R>,R extends A
super.submit(req,rsp);
makeDisabled(null != req.getParameter("disable"));
- setCascadingProjectName(StringUtils.trimToNull(req.getParameter("cascadingProjectName")));
setJDK(req.getParameter("jdk"));
setQuietPeriod(null != req.getParameter(HAS_QUIET_PERIOD_PROPERTY_NAME)
? req.getParameter("quiet_period") : null);
diff --git a/hudson-core/src/main/java/hudson/model/Job.java b/hudson-core/src/main/java/hudson/model/Job.java
index eef18db..e560700 100644
--- a/hudson-core/src/main/java/hudson/model/Job.java
+++ b/hudson-core/src/main/java/hudson/model/Job.java
@@ -1476,6 +1476,7 @@ public abstract class Job<JobT extends Job<JobT, RunT>, RunT extends Run<JobT, R
description = req.getParameter("description");
keepDependencies = req.getParameter("keepDependencies") != null;
properties.clear();
+ setCascadingProjectName(StringUtils.trimToNull(req.getParameter("cascadingProjectName")));
CopyOnWriteList parameterDefinitionProperties = new CopyOnWriteList();
int i = 0;
for (JobPropertyDescriptor d : JobPropertyDescriptor.getPropertyDescriptors(Job.this.getClass())) {