mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-18 06:22:29 +00:00
pick up transient project actions from BuildSteps.
See http://www.nabble.com/Project-actions-and-matrix-build-%28%2BPublishers-and-MavenBuild%29-td15415391.html#a15415391 git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@7236 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
1 parent
620add3762
commit
c82672eb7f
1 file changed
+24
@@ -3,6 +3,7 @@ package hudson.matrix;
|
||||
import hudson.CopyOnWrite;
|
||||
import hudson.FilePath;
|
||||
import hudson.XmlFile;
|
||||
import hudson.triggers.Trigger;
|
||||
import hudson.model.AbstractProject;
|
||||
import hudson.model.DependencyGraph;
|
||||
import hudson.model.Descriptor;
|
||||
@@ -18,6 +19,7 @@ import hudson.model.Node;
|
||||
import hudson.model.SCMedItem;
|
||||
import hudson.model.TopLevelItem;
|
||||
import hudson.model.TopLevelItemDescriptor;
|
||||
import hudson.model.Action;
|
||||
import hudson.tasks.BuildStep;
|
||||
import hudson.tasks.BuildWrapper;
|
||||
import hudson.tasks.BuildWrappers;
|
||||
@@ -94,6 +96,28 @@ public class MatrixProject extends AbstractProject<MatrixProject,MatrixBuild> im
|
||||
return axes;
|
||||
}
|
||||
|
||||
protected void updateTransientActions() {
|
||||
synchronized(transientActions) {
|
||||
super.updateTransientActions();
|
||||
|
||||
for (BuildStep step : builders) {
|
||||
Action a = step.getProjectAction(this);
|
||||
if(a!=null)
|
||||
transientActions.add(a);
|
||||
}
|
||||
for (BuildStep step : publishers) {
|
||||
Action a = step.getProjectAction(this);
|
||||
if(a!=null)
|
||||
transientActions.add(a);
|
||||
}
|
||||
for (Trigger trigger : triggers) {
|
||||
Action a = trigger.getProjectAction();
|
||||
if(a!=null)
|
||||
transientActions.add(a);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the subset of {@link AxisList} that are not system axes.
|
||||
*/
|
||||
|
||||
Reference in new issue
Block a user