Browse Source

pipeline: Work around Groovy CPS choking on inner class type

Importing PipelineStage into PipelineBuilder was causing an unknown
class `ExecutionContext.NodeContext` exception but only when importing
within a Jenkins CPS context. Instead of pulling out my hair trying to
debug anything related to CPS, I opted to remove the explicit type on
the PipelineStage.context property instead.

Change-Id: If33cb029b9d585bf2c6ac9754d46f64ac14143a9
Dan Duvall 4 months ago
parent
commit
8a5fa9d79f
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/org/wikimedia/integration/PipelineStage.groovy

+ 1
- 1
src/org/wikimedia/integration/PipelineStage.groovy View File

@@ -18,7 +18,7 @@ class PipelineStage implements Serializable {
18 18
   String name
19 19
   Map config
20 20
 
21
-  private ExecutionContext.NodeContext context
21
+  private def context
22 22
 
23 23
   /**
24 24
    * Returns an config based on the given one but with default values

Loading…
Cancel
Save