File tree 4 files changed +9
-12
lines changed
src/main/java/org/jenkinsci/plugins/workflow
4 files changed +9
-12
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,6 @@ https://github.com/jenkins-infra/pipeline-library/
6
6
*/
7
7
buildPlugin(
8
8
useContainerAgent : true , // Set to `false` if you need to use Docker for containerized tests
9
- forkCount : ' 1C' ,
10
9
configurations : [
11
10
[platform : ' linux' , jdk : 21 ],
12
11
[platform : ' windows' , jdk : 17 ],
Original file line number Diff line number Diff line change 28
28
<parent >
29
29
<groupId >org.jenkins-ci.plugins</groupId >
30
30
<artifactId >plugin</artifactId >
31
- <version >5.3 </version >
31
+ <version >5.5 </version >
32
32
<relativePath />
33
33
</parent >
34
34
<groupId >org.jenkins-ci.plugins.workflow</groupId >
66
66
</pluginRepositories >
67
67
<properties >
68
68
<changelist >999999-SNAPSHOT</changelist >
69
- <!-- TODO Until in plugin-pom -->
70
- <jenkins-test-harness .version>2357.vf2a_982b_b_910f</jenkins-test-harness .version>
71
69
<jenkins .baseline>2.479</jenkins .baseline>
72
70
<jenkins .version>${jenkins.baseline} .1</jenkins .version>
73
71
<useBeta >true</useBeta >
79
77
<dependency >
80
78
<groupId >io.jenkins.tools.bom</groupId >
81
79
<artifactId >bom-${jenkins.baseline}.x</artifactId >
82
- <version >3482.vc10d4f6da_28a_ </version >
80
+ <version >4023.va_eeb_b_4e45f07 </version >
83
81
<scope >import</scope >
84
82
<type >pom</type >
85
83
</dependency >
170
168
<dependency >
171
169
<groupId >org.jenkins-ci.plugins</groupId >
172
170
<artifactId >mock-slave</artifactId >
173
- <version >153.v9768799a_2294 </version >
171
+ <version >189.vca_72fb_1d2b_52 </version >
174
172
<scope >test</scope >
175
173
</dependency >
176
174
<dependency >
Original file line number Diff line number Diff line change @@ -526,6 +526,9 @@ private static final class NewlineSafeTaskListener extends OutputStreamTaskListe
526
526
}
527
527
528
528
@ Override public String getStatus () {
529
+ if (controller == null ) {
530
+ return "not yet started" ;
531
+ }
529
532
StringBuilder b = new StringBuilder ();
530
533
try (Timeout timeout = Timeout .limit (2 , TimeUnit .SECONDS )) { // CpsThreadDump applies a 3s timeout anyway
531
534
FilePath workspace = getWorkspace ();
@@ -759,12 +762,11 @@ private static class HandlerImpl extends Handler {
759
762
760
763
private void check (Computer c ) {
761
764
String name = c .getName ();
762
- StepExecution .applyAll (Execution .class , exec -> {
765
+ StepExecution .acceptAll (Execution .class , exec -> {
763
766
if (exec .watching && exec .node .equals (name )) {
764
767
LOGGER .fine (() -> "Online/offline event on " + name + ", checking current status of " + exec .remote + " soon" );
765
768
threadPool ().schedule (exec ::check , 15 , TimeUnit .SECONDS );
766
769
}
767
- return null ;
768
770
});
769
771
}
770
772
Original file line number Diff line number Diff line change @@ -331,7 +331,7 @@ public void stop(@NonNull Throwable cause) throws Exception {
331
331
}
332
332
Set <StepContext > newAnomalous = new HashSet <>();
333
333
Set <String > affectedNodes = new HashSet <>();
334
- StepExecution .applyAll (ExecutorStepExecution .class , exec -> {
334
+ StepExecution .acceptAll (ExecutorStepExecution .class , exec -> {
335
335
StepContext ctx = exec .getContext ();
336
336
if (!knownTasks .contains (ctx )) {
337
337
LOGGER .warning (() -> "do not know about " + ctx );
@@ -351,11 +351,10 @@ public void stop(@NonNull Throwable cause) throws Exception {
351
351
} else {
352
352
LOGGER .fine (() -> "know about " + ctx );
353
353
}
354
- return null ;
355
354
}).get ();
356
355
// Also abort any shell steps running on the same node(s):
357
356
if (!affectedNodes .isEmpty ()) {
358
- StepExecution .applyAll (DurableTaskStep .Execution .class , exec -> {
357
+ StepExecution .acceptAll (DurableTaskStep .Execution .class , exec -> {
359
358
if (affectedNodes .contains (exec .node )) {
360
359
StepContext ctx = exec .getContext ();
361
360
try {
@@ -365,7 +364,6 @@ public void stop(@NonNull Throwable cause) throws Exception {
365
364
}
366
365
ctx .onFailure (new FlowInterruptedException (Result .ABORTED , false , new RemovedNodeCause ()));
367
366
}
368
- return null ;
369
367
});
370
368
}
371
369
for (StepContext ctx : newAnomalous ) {
You can’t perform that action at this time.
0 commit comments