File tree 3 files changed +19
-1
lines changed
java/org/jenkinsci/plugins/workflow/support/steps/build
resources/org/jenkinsci/plugins/workflow/support/steps/build
3 files changed +19
-1
lines changed Original file line number Diff line number Diff line change @@ -88,7 +88,11 @@ public boolean start() throws Exception {
88
88
final ParameterizedJobMixIn .ParameterizedJob project = (ParameterizedJobMixIn .ParameterizedJob ) item ;
89
89
getContext ().get (TaskListener .class ).getLogger ().println ("Scheduling project: " + ModelHyperlinkNote .encodeTo (project ));
90
90
91
- node .addAction (new LabelAction (Messages .BuildTriggerStepExecution_building_ (project .getFullDisplayName ())));
91
+ if (!step .getWait () || step .getWaitForStart ()) {
92
+ node .addAction (new LabelAction (Messages .BuildTriggerStepExecution_scheduling_ (project .getFullDisplayName ())));
93
+ } else {
94
+ node .addAction (new LabelAction (Messages .BuildTriggerStepExecution_building_ (project .getFullDisplayName ())));
95
+ }
92
96
93
97
if (step .getWait () || step .getWaitForStart ()) {
94
98
StepContext context = getContext ();
@@ -115,6 +119,12 @@ public boolean start() throws Exception {
115
119
Queue .Task task = (Queue .Task ) item ;
116
120
getContext ().get (TaskListener .class ).getLogger ().println ("Scheduling item: " + ModelHyperlinkNote .encodeTo (item ));
117
121
node .addAction (new LabelAction (Messages .BuildTriggerStepExecution_building_ (task .getFullDisplayName ())));
122
+ if (!step .getWait () || step .getWaitForStart ()) {
123
+ node .addAction (new LabelAction (Messages .BuildTriggerStepExecution_scheduling_ (task .getFullDisplayName ())));
124
+ } else {
125
+ node .addAction (new LabelAction (Messages .BuildTriggerStepExecution_building_ (task .getFullDisplayName ())));
126
+ }
127
+
118
128
if (step .getWait () || step .getWaitForStart ()) {
119
129
StepContext context = getContext ();
120
130
actions .add (new BuildTriggerAction (context , step .isPropagate (), step .getWaitForStart ()));
Original file line number Diff line number Diff line change 10
10
import hudson .model .Run ;
11
11
import hudson .model .TaskListener ;
12
12
import jenkins .model .Jenkins ;
13
+
14
+ import org .jenkinsci .plugins .workflow .actions .LabelAction ;
15
+ import org .jenkinsci .plugins .workflow .graph .FlowNode ;
13
16
import org .jenkinsci .plugins .workflow .steps .AbstractStepExecutionImpl ;
14
17
import org .jenkinsci .plugins .workflow .steps .FlowInterruptedException ;
15
18
import org .jenkinsci .plugins .workflow .steps .StepContext ;
@@ -39,6 +42,9 @@ public boolean start() throws Exception {
39
42
throw new AbortException ("No build exists with runId " + step .getRunId ());
40
43
}
41
44
45
+ FlowNode node = getContext ().get (FlowNode .class );
46
+ node .addAction (new LabelAction (Messages .WaitForBuildStepExecution_waitfor_ (step .getRunId ())));
47
+
42
48
String runHyperLink = ModelHyperlinkNote .encodeTo ("/" + run .getUrl (), run .getFullDisplayName ());
43
49
TaskListener taskListener = getContext ().get (TaskListener .class );
44
50
if (run .isBuilding ()) {
Original file line number Diff line number Diff line change @@ -28,7 +28,9 @@ BuildTriggerStep.no_job_configured=No job configured
28
28
BuildTriggerStep.cannot_find =No such job {0}
29
29
BuildTriggerStep.unsupported =Building a {0} is not supported
30
30
BuildTriggerStepExecution.building_ =Building {0}
31
+ BuildTriggerStepExecution.scheduling_ =Scheduling {0}
31
32
BuildTriggerStepExecution.convertedParameterDescription =\
32
33
{0} (Automatically converted to {1} because {2} passed the parameter using a different type)
33
34
WaitForBuildStep.cannot_find =No such run with externalizable id {0}
34
35
WaitForBuildStep.no_run_configured =No runId configured
36
+ WaitForBuildStepExecution.waitfor_ =Wait for {0} to complete
You can’t perform that action at this time.
0 commit comments