public JoinAction( JoinTrigger joinTrigger, BuildTrigger buildTrigger, ArrayList<String> otherDownstream) { this.pendingDownstreamProjects = new LinkedList<String>(); if (buildTrigger != null) { for (AbstractProject project : buildTrigger.getChildProjects()) { if (!project.isDisabled()) { this.pendingDownstreamProjects.add(project.getName()); } } } for (String proj : otherDownstream) { this.pendingDownstreamProjects.add(proj.trim()); } this.joinProjects = joinTrigger.getJoinProjectsValue(); this.joinPublishers = joinTrigger.getJoinPublishers(); this.evenIfDownstreamUnstable = joinTrigger.getEvenIfDownstreamUnstable(); this.completedDownstreamProjects = new LinkedList<String>(); this.consideredBuilds = new LinkedList<String>(); this.overallResult = Result.SUCCESS; }
public void cleanUp(BuildListener listener) throws Exception { BuildTrigger.execute(AbstractBuild.this, listener); buildEnvironments = null; }