-
Notifications
You must be signed in to change notification settings - Fork 52
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
Declarative Pipeline - Support CustomPipelineTemplate #219
Comments
Per the README.md, |
I tried this but it didnt work. The pipeline gives an error saying |
Talked with sujikann, and confirmed the problem.
Expected: you get a declarative pipeline using the code provided by your template |
WORKAROUND: Looks like there's a defect in the README itself. For some reason, naming your variable Example:
The docs should be fixed, so that if you copy/paste the example code, it works. |
Yes, renaming stages resolved the issue. Thanks @kmanning |
Gonna reopen the issue, only because the documentation is incorrect and should be fixed, to prevent this problem/confusion in the future. |
Overview
The terraform-pipeline supports setting up a Declarative pipeline. Declarative pipelines give us the advantage of restarting pipeline from a stage from a previous run. "Restart from Stage" requires the stash artifact to be available to use in a subsequent stage.
This issue can be resolved by using a CustomPipelineTemplate. However, Jenkins throws an error when we use a CustomPipelineTemplate.
Version
Pipeline 2.6 version on Jenkins
terraform-pipeline 5.6
Error
groovy.lang.MissingPropertyException: No such property: none for class: CustomPipelineTemplate
@Library(['terraform-pipeline@v5.6', 'terraform-pipeline-customizations']) _
vars/CustomPipelineTemplate.groovy
The text was updated successfully, but these errors were encountered: