Skip to content

Commit

Permalink
debug tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Yonas Berhe authored and Yonas Berhe committed Dec 1, 2024
1 parent 32e8113 commit b2735ba
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion cypress/jenkins/cypress.config.jenkins.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export default defineConfig({
trashAssetsBeforeRuns: true,
chromeWebSecurity: false,
retries: {
runMode: 2,
runMode: 0,
openMode: 0
},
env: {
Expand Down
2 changes: 1 addition & 1 deletion cypress/jenkins/cypress.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ yarn add -W mocha cypress-mochawesome-reporter cypress-multi-reporters cypress-c

yarn add -W https://github.com/elaichenkov/cypress-delete-downloads-folder

NO_COLOR=1 CYPRESS_grepTags="CYPRESSTAGS" cypress run --browser chrome --config-file cypress/jenkins/cypress.config.jenkins.ts
NO_COLOR=1 CYPRESS_grepTags="CYPRESSTAGS" cypress run --browser chrome --headed --config-file cypress/jenkins/cypress.config.jenkins.ts

echo "CYPRESS EXIT CODE: $?"
8 changes: 5 additions & 3 deletions cypress/jenkins/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -213,9 +213,11 @@ fi

echo "Rancher type: ${RANCHER_TYPE}"

override_node=$(semver lt "${RANCHER_VERSION}" "2.9.99")
if [[ ${override_node} -eq 0 && "${RANCHER_IMAGE_TAG}" != "head" ]]; then NODEJS_VERSION="16.20.2"; fi

if semver lt "${RANCHER_VERSION}" "2.9.99" && [[ "${RANCHER_IMAGE_TAG}" != "head" ]]; then
NODEJS_VERSION="16.20.2"
else
NODEJS_VERSION="20.17.0"
fi
corral config vars set rancher_type "${RANCHER_TYPE}"
corral config vars set nodejs_version "${NODEJS_VERSION}"
corral config vars set dashboard_repo "${DASHBOARD_REPO}"
Expand Down

0 comments on commit b2735ba

Please sign in to comment.