File tree 2 files changed +5
-2
lines changed
src/main/java/com/cloudbees/plugins/flow
2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 32
32
33
33
<groupId >com.cloudbees.plugins</groupId >
34
34
<artifactId >build-flow-plugin</artifactId >
35
- <version >0.16 -SNAPSHOT</version >
35
+ <version >0.17 -SNAPSHOT</version >
36
36
<packaging >hpi</packaging >
37
37
<name >CloudBees Build Flow plugin</name >
38
38
<description >Manages job orchestration as a build flow</description >
Original file line number Diff line number Diff line change 31
31
/**
32
32
* @author: <a hef="mailto:[email protected] ">Nicolas De Loof</a>
33
33
*/
34
- public class FlowCause extends Cause {
34
+ public class FlowCause extends Cause . UpstreamCause {
35
35
36
36
private transient FlowRun flowRun ;
37
37
@@ -40,12 +40,15 @@ public class FlowCause extends Cause {
40
40
private final String cause ;
41
41
42
42
public FlowCause (FlowRun flowRun , JobInvocation associatedJob ) {
43
+ super (flowRun );
43
44
this .flowRun = flowRun ;
44
45
this .cause = flowRun .getParent ().getFullName () + "#" + flowRun .getNumber ();
45
46
this .associatedJob = associatedJob ;
46
47
}
47
48
48
49
public FlowRun getFlowRun () {
50
+ // TODO(mattmoor): If we upgrade to 1.505+ we can replace usage
51
+ // of this with UpstreamCause#getUpstreamRun().
49
52
if (this .flowRun == null ) {
50
53
int i = cause .lastIndexOf ('#' );
51
54
BuildFlow flow = Jenkins .getInstance ().getItemByFullName (cause .substring (0 ,i ), BuildFlow .class );
You can’t perform that action at this time.
0 commit comments