Skip to content

Commit 0a5f492

Browse files
Andrea BarbassoFrancescoMolinaro
authored andcommitted
Merged in task/dspace-cris-2025_02_x/DSC-2825 (pull request DSpace#4512)
[DSC-2825] kill e2e runners after successful testing Approved-by: Francesco Molinaro
2 parents ff588b5 + 94d6f90 commit 0a5f492

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
@@ -150,6 +150,23 @@ definitions:
150150
- echo "Running Cypress tests..."
151151
- npm run cypress:run --env chromeFlags="$CHROME_FLAGS"
152152
- echo "Test execution completed"
153+
- echo "Cleaning up e2e runner configuration for commit $HASH_COMMIT"
154+
- git config --global user.email "${BB_USER}"
155+
- git config --global user.name "${BB_EMAIL}"
156+
- git clone https://${BB_USER}:${BB_USER_TOKEN}@${E2E_VALUES_REPO}
157+
- cd e2erunners-values
158+
- rm -f ${HASH_COMMIT}
159+
- git add -A
160+
- git commit -m "Remove configuration for e2e-${HASH_COMMIT}" || echo "No changes to commit"
161+
- git push
162+
- cd ..
163+
- git clone https://${BB_USER}:${BB_USER_TOKEN}@${HELM_CHARTS_REPO}
164+
- cd helm-charts
165+
- 'sed -i "/^ - name: e2e-${HASH_COMMIT}$/d" ${E2E_VALUES}'
166+
- git add e2e-ingress/values.yaml
167+
- git commit -m "Remove ${HASH_COMMIT} from e2e-ingress values" || echo "No changes to commit"
168+
- git push
169+
- cd ..
153170
artifacts:
154171
- cypress/screenshots/**
155172
- cypress/videos/**

0 commit comments

Comments
 (0)