diff --git a/experiment-pipeline.yml b/experiment-pipeline.yml index ff475ac0..555ec80a 100644 --- a/experiment-pipeline.yml +++ b/experiment-pipeline.yml @@ -19,7 +19,7 @@ stages: pool: vmImage: ubuntu-latest jobs: - - job: terraform + - job: "Plan" variables: - name: OTHER_SOURCE value: $[variables['System.PullRequest.SourceBranch']] @@ -30,8 +30,6 @@ stages: - name: TARGET value: $[variables['System.PullRequest.TargetBranch']] steps: - - bash: | - echo $(IS_TAG) # set the workspace variable at runtime (rather than build time) so that all the necessary variables are available, and we can use Python # https://learn.microsoft.com/en-us/azure/devops/pipelines/process/set-variables-scripts?view=azure-devops&tabs=bash#about-tasksetvariable - bash: | @@ -93,6 +91,8 @@ stages: script: echo "terraform plan" # the plan is done as part of the apply (below), so don't bother doing it twice condition: notIn(variables['Build.SourceBranchName'], 'dev', 'test', 'prod') + - job: "ManualApproval" + steps: # - task: TerraformTaskV3@ - task: ManualValidation@0 timeoutInMinutes: "1440" # task times out in 1 day @@ -101,6 +101,8 @@ stages: angela@compiler.la instructions: "Please review the output of Terraform plan before approving." onTimeout: "reject" + - job: "Apply" + steps: - task: Bash@3 displayName: Terraform apply inputs: