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

RegressionStage #99

Closed
kmanning opened this issue Sep 3, 2019 · 0 comments
Closed

RegressionStage #99

kmanning opened this issue Sep 3, 2019 · 0 comments

Comments

@kmanning
Copy link
Collaborator

kmanning commented Sep 3, 2019

Feature Request:
When working with a terraform pipeline that is deploying application code, I would like to be able to have a regression stage that ran any automation tests after applying. The stage would need to check out the automation suite code, and execute a shell script to run the tests.

Planned Implementation:
To keep things simpler, this stage for now will only work with ParameterStoreExecPlugin. The RegressionStage will check out the automation suite, specified in the stage definition in a Jenkinsfile. It will be hard coded to execute a test.sh shell script that will run the test.

def validate = new TerraformValidateStage()
def build = new BuildStage()
def qa = new TerraformEnvironmentStage('qa')
def testQa = new RegressionStage().withScm('AUTOMATION_GIT_REPO_URL')
def uat = new TerraformEnvironmentStage('uat')
def prod = new TerraformEnvironmentStage('prod')

validate
    .then(build)
    .then(qa)
    .then(testQa)
    .then(uat)
    .then(prod)
    .build()
@kmanning kmanning closed this as completed Sep 3, 2019
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