Skip to content

Commit

Permalink
Fix test pipeline (remove deployment delete)
Browse files Browse the repository at this point in the history
  • Loading branch information
filippomc committed Oct 3, 2024
1 parent 373b611 commit f580dec
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 27 deletions.
14 changes: 1 addition & 13 deletions deployment-configuration/codefresh-template-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
error: '"${{FAILED}}" == "failed"'
16 changes: 2 additions & 14 deletions deployment/codefresh-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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"'
error: '"${{FAILED}}" == "failed"'

0 comments on commit f580dec

Please sign in to comment.