Skip to content

Commit f580dec

Browse files
committed
Fix test pipeline (remove deployment delete)
1 parent 373b611 commit f580dec

2 files changed

Lines changed: 3 additions & 27 deletions

File tree

deployment-configuration/codefresh-template-test.yaml

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -132,16 +132,4 @@ steps:
132132
when:
133133
condition:
134134
all:
135-
error: '"${{FAILED}}" == "failed"'
136-
delete_deployment:
137-
title: "Delete deployment"
138-
description: The deployment is deleted at the end of the pipeline
139-
image: codefresh/kubectl
140-
stage: qa
141-
commands:
142-
- kubectl config use-context ${{CLUSTER_NAME}}
143-
- kubectl delete ns test-${{NAMESPACE_BASENAME}}
144-
when:
145-
condition:
146-
all:
147-
delete: ${{DELETE_ON_SUCCESS}} == "true"
135+
error: '"${{FAILED}}" == "failed"'

deployment/codefresh-test.yaml

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -522,7 +522,7 @@ steps:
522522
approval:
523523
type: pending-approval
524524
stage: qa
525-
title: Approve anyway and delete deployment
525+
title: Approve anyway
526526
description: The pipeline will fail after ${{WAIT_ON_FAIL}} minutes
527527
timeout:
528528
timeUnit: minutes
@@ -531,16 +531,4 @@ steps:
531531
when:
532532
condition:
533533
all:
534-
error: '"${{FAILED}}" == "failed"'
535-
delete_deployment:
536-
title: Delete deployment
537-
description: The deployment is deleted at the end of the pipeline
538-
image: codefresh/kubectl
539-
stage: qa
540-
commands:
541-
- kubectl config use-context ${{CLUSTER_NAME}}
542-
- kubectl delete ns test-${{NAMESPACE_BASENAME}}
543-
when:
544-
condition:
545-
all:
546-
delete: '${{DELETE_ON_SUCCESS}} == "true"'
534+
error: '"${{FAILED}}" == "failed"'

0 commit comments

Comments
 (0)