[Warning][jenkins/jenkins-agent-e9b3e42c-6920-44f4-9a38-caab96a520f8-148zq-rwg3b][Failed] Error: InvalidImageName
[Warning][jenkins/jenkins-agent-e9b3e42c-6920-44f4-9a38-caab96a520f8-148zq-rwg3b][InspectFailed] Failed to apply default image tag "${agentImage}": couldn't parse image reference "${agentImage}": invalid reference format: repository name must be lowercase
so the variable is clearly not expanded/resolved at all.
When I run the above println template I can see the variables are substituted as expected. But I get this error afterwards:
[Pipeline] End of Pipeline
an exception which occurred:
in field com.cloudbees.groovy.cps.impl.BlockScopeEnv.locals
in object com.cloudbees.groovy.cps.impl.BlockScopeEnv@61565295
in field com.cloudbees.groovy.cps.impl.CpsClosureDef.capture
in object com.cloudbees.groovy.cps.impl.CpsClosureDef@485faf50
in field com.cloudbees.groovy.cps.impl.CpsClosure.def
in object org.jenkinsci.plugins.workflow.cps.CpsClosure2@7f0be3af
in field org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.closures
in object org.jenkinsci.plugins.workflow.cps.CpsThreadGroup@1bb5c3c3
in object org.jenkinsci.plugins.workflow.cps.CpsThreadGroup@1bb5c3c3
Caused: java.io.NotSerializableException: groovy.text.GStringTemplateEngine
at org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:274)
at org.jboss.marshalling.river.BlockMarshaller.doWriteObject(BlockMarshaller.java:65)
I don’t need to be able to resume this pipeline after a reboot or similar so if its possible to disable that feature all together it would nice (I assume that is what is causing this error).