Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not compatible with wrap pipeline step? #11

Open
jshields opened this issue Nov 9, 2020 · 0 comments
Open

Not compatible with wrap pipeline step? #11

jshields opened this issue Nov 9, 2020 · 0 comments

Comments

@jshields
Copy link

jshields commented Nov 9, 2020

These docs attempt to describe that plugins normally found in the Build Environment section of a freestyle project can be used in a pipeline:
https://www.jenkins.io/doc/pipeline/steps/workflow-basic-steps/#wrap-general-build-wrapper

I am not sure what dropdown they are talking about. I assume that this plugin is not compatible with pipelines, therefore this is a non-bug, but wanted to submit a feature request if possible for pipelines to be supported by TerraformBuildWrapper in the wrap step like so:

wrap([$class: 'TerraformBuildWrapper']) {
  ...
}

Currently I get:

java.lang.UnsupportedOperationException: no known implementation of class jenkins.tasks.SimpleBuildWrapper is named TerraformBuildWrapper
...
Caused: java.lang.IllegalArgumentException: Could not instantiate {delegate={$class=TerraformBuildWrapper}} for org.jenkinsci.plugins.workflow.steps.CoreWrapperStep
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

No branches or pull requests

1 participant