Skip to content

Commit

Permalink
Merge branch 'master' into progressbar
Browse files Browse the repository at this point in the history
Conflicts:
	src/main/java/se/diabol/jenkins/pipeline/PipelineFactory.java
  • Loading branch information
patbos committed Mar 24, 2014
2 parents 5a10aba + 6fd46a7 commit f02ecca
Show file tree
Hide file tree
Showing 50 changed files with 2,536 additions and 1,979 deletions.
29 changes: 29 additions & 0 deletions examples/JENKINS-22211.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
- job:
name: 'A'
builders:
- trigger-builds:
- project: 'B'
- job:
name: 'B'
builders:
- trigger-builds:
- project: 'C,D'
- job:
name: 'C'
parameters:
- string:
name: BUILD_NUM

- job:
name: 'D'
parameters:
- string:
name: BUILD_NUM
builders:
- trigger-builds:
- project: 'E'
- job:
name: 'E'
parameters:
- string:
name: BUILD_NUM
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<groupId>se.diabol.jenkins.pipeline</groupId>
<artifactId>delivery-pipeline-plugin</artifactId>
<version>0.7.1-SNAPSHOT</version>
<version>0.7.3-SNAPSHOT</version>
<packaging>hpi</packaging>
<name>Delivery Pipeline Plugin</name>
<url>https://wiki.jenkins-ci.org/display/JENKINS/Delivery+Pipeline+Plugin</url>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
import hudson.util.ListBoxModel;
import org.kohsuke.stapler.*;
import org.kohsuke.stapler.export.Exported;
import se.diabol.jenkins.pipeline.model.Component;
import se.diabol.jenkins.pipeline.model.Pipeline;
import se.diabol.jenkins.pipeline.domain.Component;
import se.diabol.jenkins.pipeline.domain.Pipeline;
import se.diabol.jenkins.pipeline.sort.ComponentComparator;
import se.diabol.jenkins.pipeline.sort.ComponentComparatorDescriptor;
import se.diabol.jenkins.pipeline.util.PipelineUtils;
Expand Down Expand Up @@ -230,12 +230,12 @@ public List<Component> getPipelines() {
}

private Component getComponent(String name, AbstractProject firstJob, boolean showAggregatedPipeline) {
Pipeline prototype = PipelineFactory.extractPipeline(name, firstJob);
Pipeline pipeline = Pipeline.extractPipeline(name, firstJob);
List<Pipeline> pipelines = new ArrayList<Pipeline>();
if (showAggregatedPipeline) {
pipelines.add(PipelineFactory.createPipelineAggregated(prototype, getOwnerItemGroup()));
pipelines.add(pipeline.createPipelineAggregated(getOwnerItemGroup()));
}
pipelines.addAll(PipelineFactory.createPipelineLatest(prototype, noOfPipelines, getOwnerItemGroup()));
pipelines.addAll(pipeline.createPipelineLatest(noOfPipelines, getOwnerItemGroup()));
return new Component(name, pipelines);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
import hudson.model.Run;
import hudson.model.TaskListener;
import hudson.model.listeners.RunListener;
import se.diabol.jenkins.pipeline.util.BuildUtil;

@Extension
@SuppressWarnings("UnusedDeclaration")
Expand All @@ -31,7 +32,7 @@ public class PipelineEnvironmentContributor extends RunListener<Run> {
public void onStarted(Run run, TaskListener listener) {
if (run instanceof AbstractBuild) {
AbstractBuild build = (AbstractBuild) run;
AbstractBuild upstreamBuild = PipelineFactory.getUpstreamBuild(build);
AbstractBuild upstreamBuild = BuildUtil.getUpstreamBuild(build);
if (upstreamBuild != null) {
String version = PipelineVersionContributor.getVersion(upstreamBuild);
if (version != null) {
Expand Down

0 comments on commit f02ecca

Please sign in to comment.