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