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
602ffc589b
commit
61cccf5a63
|
@ -107,6 +107,7 @@ pipeline {
|
||||||
-e TZ=Europe/Madrid
|
-e TZ=Europe/Madrid
|
||||||
-e DOCKER=true
|
-e DOCKER=true
|
||||||
-e CI=true
|
-e CI=true
|
||||||
|
-e CYPRESS_CACHE_FOLDER=/home/node/.cache/Cypress
|
||||||
""".stripIndent()) {
|
""".stripIndent()) {
|
||||||
sh 'pnpm exec cypress run --browser chromium'
|
sh 'pnpm exec cypress run --browser chromium'
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,12 +3,12 @@ FROM alexmorenovn/vndev:latest
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY package.json pnpm-lock.yaml ./
|
COPY package.json pnpm-lock.yaml ./
|
||||||
|
|
||||||
# Instalamos las dependencias y Cypress
|
# Instalamos dependencias y descargamos Cypress
|
||||||
RUN pnpm install --frozen-lockfile \
|
RUN pnpm install --frozen-lockfile \
|
||||||
&& pnpm exec cypress install
|
&& CYPRESS_CACHE_FOLDER=/home/node/.cache/Cypress pnpm exec cypress install
|
||||||
|
|
||||||
# Establecemos la variable de caché para asegurar que Cypress se encuentre correctamente
|
# Nos aseguramos de que el binario esté en PATH
|
||||||
ENV CYPRESS_CACHE_FOLDER=/home/node/.cache/Cypress
|
ENV CYPRESS_CACHE_FOLDER=/home/node/.cache/Cypress
|
||||||
ENV PATH="/home/node/.cache/Cypress:${PATH}"
|
ENV PATH="${CYPRESS_CACHE_FOLDER}/13.17.0/Cypress:${PATH}"
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
Loading…
Reference in New Issue