diff --git a/deployment-configuration/codefresh-template-test.yaml b/deployment-configuration/codefresh-template-test.yaml index 84284c0d..2486c981 100644 --- a/deployment-configuration/codefresh-template-test.yaml +++ b/deployment-configuration/codefresh-template-test.yaml @@ -132,16 +132,4 @@ steps: when: condition: all: - error: '"${{FAILED}}" == "failed"' - delete_deployment: - title: "Delete deployment" - description: The deployment is deleted at the end of the pipeline - image: codefresh/kubectl - stage: qa - commands: - - kubectl config use-context ${{CLUSTER_NAME}} - - kubectl delete ns test-${{NAMESPACE_BASENAME}} - when: - condition: - all: - delete: ${{DELETE_ON_SUCCESS}} == "true" \ No newline at end of file + error: '"${{FAILED}}" == "failed"' \ No newline at end of file diff --git a/deployment/codefresh-test.yaml b/deployment/codefresh-test.yaml index c20d94bc..3a144406 100644 --- a/deployment/codefresh-test.yaml +++ b/deployment/codefresh-test.yaml @@ -522,7 +522,7 @@ steps: approval: type: pending-approval stage: qa - title: Approve anyway and delete deployment + title: Approve anyway description: The pipeline will fail after ${{WAIT_ON_FAIL}} minutes timeout: timeUnit: minutes @@ -531,16 +531,4 @@ steps: when: condition: all: - error: '"${{FAILED}}" == "failed"' - delete_deployment: - title: Delete deployment - description: The deployment is deleted at the end of the pipeline - image: codefresh/kubectl - stage: qa - commands: - - kubectl config use-context ${{CLUSTER_NAME}} - - kubectl delete ns test-${{NAMESPACE_BASENAME}} - when: - condition: - all: - delete: '${{DELETE_ON_SUCCESS}} == "true"' \ No newline at end of file + error: '"${{FAILED}}" == "failed"' \ No newline at end of file