From e9389a00fd7fea857d71f7ab2226f00a012647e8 Mon Sep 17 00:00:00 2001 From: alexm Date: Thu, 13 Feb 2025 10:19:36 +0100 Subject: [PATCH] feat: refs #6695 update cypress command in Jenkinsfile and docker-compose.e2e.yml --- Jenkinsfile | 1 - docker-compose.e2e.yml | 5 +---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 89b14e3b0..c0f4964fd 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -102,7 +102,6 @@ pipeline { env.NETWORK = "${PROJECT_NAME}-${env.BRANCH_NAME}-${env.BUILD_ID}" cleanDockerE2E() sh "pnpm exec cypress install" - sh "pnpx exec cypress cache path" // sh "docker network create ${env.NETWORK} || true" } diff --git a/docker-compose.e2e.yml b/docker-compose.e2e.yml index cd932a610..438ca0bfa 100644 --- a/docker-compose.e2e.yml +++ b/docker-compose.e2e.yml @@ -23,10 +23,9 @@ services: e2e: image: alexmorenovn/vndev:latest # command: pnpm exec cypress run --browser chromium - command: pnpm exec cypress run --headed + command: sh -c "pnpm exec cypress install && pnpm exec cypress run --headed --spec ${CYPRESS_SPEC:?}" environment: - TZ=Europe/Madrid - - CYPRESS_CACHE_FOLDER=/.cache/Cypress volumes: - .:/app working_dir: /app @@ -34,8 +33,6 @@ services: image: alexmorenovn/vn_db:latest # ports: # - '3306:3306' -volumes: - cypress-cache: # e2e: # command: npx cypress run --browser chromium