Skip to content

Conversation

@kmanning
Copy link
Collaborator

@kmanning kmanning commented Feb 9, 2021

hudson.remoting.ProxyException: groovy.lang.MissingPropertyException: No such property: docker for class: WorkflowScript
	at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:53)
	at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.getProperty(ScriptBytecodeAdapter.java:458)
	at com.cloudbees.groovy.cps.sandbox.DefaultInvoker.getProperty(DefaultInvoker.java:39)
	at com.cloudbees.groovy.cps.impl.PropertyAccessBlock.rawGet(PropertyAccessBlock.java:20)
	at Jenkinsfile.init(Jenkinsfile.groovy:59)
	at Jenkinsfile.init(Jenkinsfile.groovy)
  • Jenkinsfile constructor captures the WorkflowScript's docker value. This value only exists if the DockerPipeline is not installed. If it's not installed, terraform-pipeline cannot function (even if you're not using docker features), because Jenkinsfile.init(this) fails.
  • The docker reference in Jenkinsfile is actually dead code - remove it. This fixes the failing Jenkinsfile.init(this) if DockerPIpeline plugin is not installed.

@kmanning kmanning added this to the v5.15 milestone Feb 9, 2021
@kmanning kmanning merged commit 7eea959 into manheim:master Feb 10, 2021
@kmanning kmanning deleted the issue_331 branch April 20, 2021 13:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Defect: If Docker Pipeline plugin is not installed, terraform-pipeline cannot load

1 participant