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

ConditionalApplyPlugin - disable to allow apply on any branch, not just master #329

Closed
kmanning opened this issue Jan 8, 2021 · 1 comment · Fixed by #342
Closed

ConditionalApplyPlugin - disable to allow apply on any branch, not just master #329

kmanning opened this issue Jan 8, 2021 · 1 comment · Fixed by #342
Labels
enhancement New feature or request
Milestone

Comments

@kmanning
Copy link
Collaborator

kmanning commented Jan 8, 2021

@kmanning
Copy link
Collaborator Author

Expected behavior: When disabled, plans can be applied on any branch or PR - not just master.

@Library(['terraform-pipeline@v5.1']) _

Jenkinsfile.init(this)
ConditionalApplyPlugin.disable()

def validate = new TerraformValidateStage()
def deployQa = new TerraformEnvironmentStage('qa')
def deployUat = new TerraformEnvironmentStage('uat')
def deployProd = new TerraformEnvironmentStage('prod')

validate.then(deployQa)
        .then(deployUat)
        .then(deployProd)
        .build()

@kmanning kmanning changed the title ConditionalApplyPlugin - allow disable ConditionalApplyPlugin - disable to allow apply on any branch, not just master Feb 12, 2021
@kmanning kmanning added the enhancement New feature or request label Feb 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant