Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWinston Prakash2014-01-10 22:11:51 -0500
committerWinston Prakash2014-01-10 22:23:21 -0500
commitb8c008b5fb7b7fe9ca7681e4497ae9170ac83617 (patch)
treede46577faf4acba8a1a08106961dd04658935663
parentdc921114715cd53bea0cffc61e3f1732c7345354 (diff)
downloadorg.eclipse.hudson.core-b8c008b5fb7b7fe9ca7681e4497ae9170ac83617.tar.gz
org.eclipse.hudson.core-b8c008b5fb7b7fe9ca7681e4497ae9170ac83617.tar.xz
org.eclipse.hudson.core-b8c008b5fb7b7fe9ca7681e4497ae9170ac83617.zip
Fix: 425459 - Saving job configuration fails when setting Maven 3 dependencies build property
-rw-r--r--hudson-core/src/main/java/hudson/triggers/Trigger.java8
1 files changed, 6 insertions, 2 deletions
diff --git a/hudson-core/src/main/java/hudson/triggers/Trigger.java b/hudson-core/src/main/java/hudson/triggers/Trigger.java
index 875ba587..a459ffcc 100644
--- a/hudson-core/src/main/java/hudson/triggers/Trigger.java
+++ b/hudson-core/src/main/java/hudson/triggers/Trigger.java
@@ -76,6 +76,7 @@ public abstract class Trigger<J extends Item> implements Describable<Trigger<?>>
if (!jobs.contains(job)){
jobs.add(job);
}
+ this.job = job;
}
/**
@@ -129,13 +130,16 @@ public abstract class Trigger<J extends Item> implements Describable<Trigger<?>>
protected final String spec;
protected transient CronTabList tabs;
+ /**
+ * @deprecated as of 3.1.2 use the list {@link #jobs} instead
+ */
+ protected transient J job;
+
// Theorectically each trigger should contain only one job. But in a cascading environment
// if the tigger is defined in the parent, then this list represent the parent job and the
// children jobs.
protected transient List<J> jobs = new ArrayList<J>();
-
-
/**
* Creates a new {@link Trigger} that gets {@link #run() run} periodically.
* This is useful when your trigger does some polling work.

Back to the top