Skip to content

Commit 54e1d1a

Browse files
author
Andrea Barbasso
committed
[DSC-2825] kill e2e runners after successful testing
1 parent c200dda commit 54e1d1a

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

bitbucket-pipelines.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,23 @@ definitions:
151151
- echo "Running Cypress tests..."
152152
- yarn cypress:run --env chromeFlags="$CHROME_FLAGS"
153153
- echo "Test execution completed"
154+
- echo "Cleaning up e2e runner configuration for commit $HASH_COMMIT"
155+
- git config --global user.email "${BB_USER}"
156+
- git config --global user.name "${BB_EMAIL}"
157+
- git clone https://${BB_USER}:${BB_USER_TOKEN}@${E2E_VALUES_REPO}
158+
- cd e2erunners-values
159+
- rm -f ${HASH_COMMIT}
160+
- git add -A
161+
- git commit -m "Remove configuration for e2e-${HASH_COMMIT}" || echo "No changes to commit"
162+
- git push
163+
- cd ..
164+
- git clone https://${BB_USER}:${BB_USER_TOKEN}@${HELM_CHARTS_REPO}
165+
- cd helm-charts
166+
- 'sed -i "/^ - name: e2e-${HASH_COMMIT}$/d" ${E2E_VALUES}'
167+
- git add e2e-ingress/values.yaml
168+
- git commit -m "Remove ${HASH_COMMIT} from e2e-ingress values" || echo "No changes to commit"
169+
- git push
170+
- cd ..
154171
artifacts:
155172
- cypress/screenshots/**
156173
- cypress/videos/**

0 commit comments

Comments
 (0)