From f580decce03a723325253a4b899e9d2ccc55c3ec Mon Sep 17 00:00:00 2001 From: Filippo Ledda Date: Thu, 3 Oct 2024 18:36:06 +0200 Subject: [PATCH] Fix test pipeline (remove deployment delete) --- .../codefresh-template-test.yaml | 14 +------------- deployment/codefresh-test.yaml | 16 ++-------------- 2 files changed, 3 insertions(+), 27 deletions(-) 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