From b928ed42a96f4659e834c1104a0e65cf67994064 Mon Sep 17 00:00:00 2001 From: Olivier Albertini Date: Wed, 22 Nov 2023 10:58:20 -0500 Subject: [PATCH] chore: fix jenkins build where watcher need python Signed-off-by: Olivier Albertini --- Dockerfile | 6 +++--- Jenkinsfile | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 8f68f159..9b1c4b85 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM node:16-alpine +FROM node:16.14-alpine LABEL MAINTAINER="VdMtl" # Create app directory @@ -10,10 +10,10 @@ WORKDIR /usr/src/lib COPY --chown=node:node . /usr/src/lib # Install deps -RUN npm i +RUN npm ci --ignore-scripts # Build library -RUN npm run build +RUN npm run build-storybook # Publish the library CMD ["npm", "publish", "dist/angular-ui", "--tag", "latest", "--unsafe-perm"] diff --git a/Jenkinsfile b/Jenkinsfile index f5fd0571..64714e29 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -35,7 +35,7 @@ sbCtx = pipeline.createContext([ // ], [ name: "nodejs", - image: "node:16.13.2-alpine", + image: "node:16.14-alpine", ttyEnabled: true, command: "cat", ], @@ -131,7 +131,7 @@ pipeline.start(sbCtx) { pipeline.buildStage(sbCtx) { // first, regen the static web assets used by the Hugo site container("nodejs") { - sh "npm ci" + sh "npm ci --ignore-scripts" sh "npm run build-storybook" } // finally, build the image