From f9f54bd0e08f7c0e274e6fd1588d8a94a89c85b4 Mon Sep 17 00:00:00 2001 From: Tim McCarthy Date: Mon, 2 Mar 2020 08:26:56 -0600 Subject: [PATCH] Added a delete for the ConfigMap before creating it --- deploy/aro/mobilemarketingapigw/azure-pipelines.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/deploy/aro/mobilemarketingapigw/azure-pipelines.yml b/deploy/aro/mobilemarketingapigw/azure-pipelines.yml index ff065193a..7dff9ed69 100644 --- a/deploy/aro/mobilemarketingapigw/azure-pipelines.yml +++ b/deploy/aro/mobilemarketingapigw/azure-pipelines.yml @@ -35,9 +35,12 @@ stages: - script: 'oc project $(OpenShiftProject)' failOnStderr: true displayName: 'Set OpenShift Project Context' + - script: 'oc delete configmap mobilemarketingapigw' + failOnStderr: true + displayName: 'Delete Envoy ConfigMap' - script: 'oc create configmap mobilemarketingapigw --from-file=./deploy/aro/mobilemarketingapigw/envoy.yml' failOnStderr: true - displayName: 'Add Envoy ConfigMap' + displayName: 'Create Envoy ConfigMap' - script: 'oc process -f ./deploy/aro/mobilemarketingapigw/mobilemarketingapigw-deploy-template.yml -p IMAGE_REGISTRY_PROJECT_NAME=$(SourceImageRegistryProjectName) | oc apply -f-' failOnStderr: true displayName: 'Ensure Mobile Marketing API Gateway OpenShift DeploymentConfig and Service' \ No newline at end of file