ci: refs #6695 update Jenkinsfile remove unnecessary environment variables
gitea/salix-front/pipeline/pr-dev There was a failure building this commit
Details
gitea/salix-front/pipeline/pr-dev There was a failure building this commit
Details
This commit is contained in:
parent
f999304ea8
commit
47d53e9c87
|
@ -92,7 +92,6 @@ pipeline {
|
||||||
environment {
|
environment {
|
||||||
NODE_ENV = ""
|
NODE_ENV = ""
|
||||||
CREDENTIALS = credentials('docker-registry')
|
CREDENTIALS = credentials('docker-registry')
|
||||||
CYPRESS_CACHE = "${WORKSPACE}/.cypress-cache"
|
|
||||||
}
|
}
|
||||||
steps {
|
steps {
|
||||||
script {
|
script {
|
||||||
|
@ -108,8 +107,9 @@ pipeline {
|
||||||
-e TZ=Europe/Madrid
|
-e TZ=Europe/Madrid
|
||||||
-e DOCKER=true
|
-e DOCKER=true
|
||||||
-e CI=true
|
-e CI=true
|
||||||
-v $CYPRESS_CACHE:/home/node/.cache/Cypress \
|
-e CYPRESS_CACHE_FOLDER=/root/.cache/Cypress
|
||||||
""".stripIndent()) {
|
""".stripIndent()) {
|
||||||
|
sh 'ls -la /root/.cache/Cypress' // Verificar que el binario está disponible
|
||||||
sh 'pnpm exec cypress run --browser chromium'
|
sh 'pnpm exec cypress run --browser chromium'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,12 +3,16 @@ FROM alexmorenovn/vndev:latest
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY package.json pnpm-lock.yaml ./
|
COPY package.json pnpm-lock.yaml ./
|
||||||
|
|
||||||
# Instalamos dependencias y descargamos Cypress
|
# Instalamos las dependencias y descargamos Cypress
|
||||||
RUN pnpm install --frozen-lockfile \
|
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
|
# Movemos la caché de Cypress al directorio raíz para evitar problemas de permisos
|
||||||
ENV CYPRESS_CACHE_FOLDER=/home/node/.cache/Cypress
|
RUN mkdir -p /root/.cache/Cypress \
|
||||||
ENV PATH="${CYPRESS_CACHE_FOLDER}/13.17.0/Cypress:${PATH}"
|
&& 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
|
WORKDIR /app
|
||||||
|
|
Loading…
Reference in New Issue