Details
-
Bug
-
Status: Open (View Workflow)
-
Major
-
Resolution: Unresolved
-
None
-
Jenkins 2.346.1, Pipeline Version 590.v6a_d052e5a_a_b_5
Description
We're using a shared pipeline library for quite a while now and never had issues with resuming the operation after a restart. Recently however, we observe issues with resuming after a restart:
07:57:23 Resuming build at Fri Jul 01 07:57:23 CEST 2022 after Jenkins restart 07:57:23 [Pipeline] End of Pipeline 07:57:23 Ready to run at Fri Jul 01 07:57:23 CEST 2022 07:57:23 hudson.remoting.ProxyException: an exception which occurred: 07:57:23 in field groovy.lang.Closure.delegate 07:57:23 in object org.jenkinsci.plugins.workflow.cps.CpsClosure2@1a8a6087 07:57:23 in object of type org.jenkinsci.plugins.workflow.cps.CpsClosure2 07:57:23 in field groovy.lang.Closure.delegate 07:57:23 in object org.jenkinsci.plugins.workflow.cps.CpsClosure2@4eeebe73 07:57:23 in object of type org.jenkinsci.plugins.workflow.cps.CpsClosure2 07:57:23 in object of type java.util.HashMap 07:57:23 in field org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.closures 07:57:23 in object org.jenkinsci.plugins.workflow.cps.CpsThreadGroup@70820277 07:57:23 in object of type org.jenkinsci.plugins.workflow.cps.CpsThreadGroup 07:57:23 Caused: hudson.remoting.ProxyException: org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed: 07:57:23 C:\Jenkins\jobs\Profinet\jobs\PSPNSV4 Test Certification Weekly\branches\trunk\builds\123\libs\67a1ae2aaca98c3dfa2c1cc54200831dbf891eef06727bc29d086ea6106b9018\vars\hilRunSPCTests.groovy: 36: unable to resolve class TestDeclarer.TestDefinition 07:57:23 @ line 36, column 21. 07:57:23 def make_test_flow (TestDeclarer.TestDefinition definition, List<String> enabled_test_groups) 07:57:23 ^
The correspondig files look like this:
// vars\hilRunSPCTests.groovy import com.hilscher.spc.dsl.TestDeclarer import com.hilscher.spc.BuildStatusCollector def call (TestDeclarer decl, BuildStatusCollector status_collector) { return this.call(decl, new ArrayList<String>(), status_collector) } def call (TestDeclarer decl, List<String> enabled_test_groups, BuildStatusCollector status_collector) { /* left out for convience */ return ... } def make_test_flow (TestDeclarer.TestDefinition definition, List<String> enabled_test_groups)
and
// src\com\hilscher\spc\dsl\TestDeclarer.groovy package com.hilscher.spc.dsl import com.cloudbees.groovy.cps.NonCPS class TestDeclarer implements Serializable { def Map testenv_defs = new LinkedHashMap() def Map test_defs = new LinkedHashMap() static class TestEnvDefinition implements Serializable { /* left out for convience */ } static class TestDefinition implements Serializable {
Sorry for formatting reworks, hopefully looks more readable now. Not sure if we're doing something wrong in groovy here.