I see the PR is updating dependencies and a small code change for an API change in the newer dependency. The PR is failing unit tests with a missing WEB-INF error
Caused by: java.lang.Error: Unable to find D:\Users\hbl4218\Code\terraform-plugin\build\jenkins-for-test\WEB-INF\plugins
at org.jvnet.hudson.test.TestPluginManager.loadBundledPlugins(TestPluginManager.java:70)
at hudson.PluginManager$1$1.run(PluginManager.java:379)
at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:169)
at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:282)
at jenkins.model.Jenkins$7.runTask(Jenkins.java:1086)
at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:210)
at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117)
... 3 more
I assume this is part of the updated dependencies, I cloned the PR branch and was able to add the @Symbol annotation so that "terraform" is a usable tool name in Declarative Pipeline syntax. ie
tools {
terraform "terraform-0.8.8"
}
I could see it was installing the tool as expected but not adding it to my path. However it turns out I can use the current 1.0.9 release in a Declarative Pipeline job by putting my shell steps inside a withEnv().
withEnv(["PATH+TF=${tool 'terraform-0.8.8'}"]) {
sh "terraform --version"
}
|