File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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/**
You can’t perform that action at this time.
0 commit comments