8714-devToTest #1547

Merged
alexm merged 712 commits from 8714-devToTest into test 2025-03-04 14:08:01 +00:00
2 changed files with 11 additions and 7 deletions
Showing only changes of commit 47d53e9c87 - Show all commits

4
Jenkinsfile vendored
View File

@ -92,7 +92,6 @@ pipeline {
environment {
NODE_ENV = ""
CREDENTIALS = credentials('docker-registry')
CYPRESS_CACHE = "${WORKSPACE}/.cypress-cache"
}
steps {
script {
@ -108,8 +107,9 @@ pipeline {
-e TZ=Europe/Madrid
-e DOCKER=true
-e CI=true
-v $CYPRESS_CACHE:/home/node/.cache/Cypress \
-e CYPRESS_CACHE_FOLDER=/root/.cache/Cypress
""".stripIndent()) {
sh 'ls -la /root/.cache/Cypress' // Verificar que el binario está disponible
sh 'pnpm exec cypress run --browser chromium'
}
}

View File

@ -3,12 +3,16 @@ FROM alexmorenovn/vndev:latest
WORKDIR /app
COPY package.json pnpm-lock.yaml ./
# Instalamos dependencias y descargamos Cypress
# Instalamos las dependencias y descargamos Cypress
RUN pnpm install --frozen-lockfile \
&& CYPRESS_CACHE_FOLDER=/home/node/.cache/Cypress pnpm exec cypress install
&& CYPRESS_CACHE_FOLDER=/root/.cache/Cypress pnpm exec cypress install
# Nos aseguramos de que el binario esté en PATH
ENV CYPRESS_CACHE_FOLDER=/home/node/.cache/Cypress
ENV PATH="${CYPRESS_CACHE_FOLDER}/13.17.0/Cypress:${PATH}"
# Movemos la caché de Cypress al directorio raíz para evitar problemas de permisos
RUN mkdir -p /root/.cache/Cypress \
&& cp -r /home/node/.cache/Cypress/* /root/.cache/Cypress/
# Configuramos variables de entorno
ENV CYPRESS_CACHE_FOLDER=/root/.cache/Cypress
ENV PATH="/root/.cache/Cypress/${CYPRESS_VERSION}/Cypress:${PATH}"
WORKDIR /app