build: use npm install

`npm ci` deletes the node_modules directory, which also removes go.mod
from that folder.

Add --loglevel timing, so we can debug install slowness, whenever it
happens.

Change-Id: Ide613c4124bfdca9ae978876b2deed8abf86f987
This commit is contained in:
Egon Elbre 2022-07-01 16:33:40 +03:00
parent 53bddbdd0a
commit d162788489
2 changed files with 8 additions and 8 deletions

View File

@ -43,7 +43,7 @@ pipeline {
stage('web/satellite') { stage('web/satellite') {
steps { steps {
dir('web/satellite') { dir('web/satellite') {
sh 'npm ci --prefer-offline --no-audit' sh 'npm install --prefer-offline --no-audit --loglevel timing'
sh './scripts/build-wasm.sh' sh './scripts/build-wasm.sh'
sh 'npm run build' sh 'npm run build'
} }
@ -52,7 +52,7 @@ pipeline {
stage('web/storagenode') { stage('web/storagenode') {
steps { steps {
dir('web/storagenode') { dir('web/storagenode') {
sh 'npm ci --prefer-offline --no-audit' sh 'npm install --prefer-offline --no-audit --loglevel timing'
sh 'npm run build' sh 'npm run build'
} }
} }
@ -60,7 +60,7 @@ pipeline {
stage('web/multinode') { stage('web/multinode') {
steps { steps {
dir('web/multinode') { dir('web/multinode') {
sh 'npm ci --prefer-offline --no-audit' sh 'npm install --prefer-offline --no-audit --loglevel timing'
sh 'npm run build' sh 'npm run build'
} }
} }
@ -68,7 +68,7 @@ pipeline {
stage('satellite/admin/ui') { stage('satellite/admin/ui') {
steps { steps {
dir('satellite/admin/ui') { dir('satellite/admin/ui') {
sh 'npm ci --prefer-offline --no-audit' sh 'npm install --prefer-offline --no-audit --loglevel timing'
sh 'npm run build' sh 'npm run build'
} }
} }

View File

@ -99,7 +99,7 @@ pipeline {
} }
steps { steps {
dir('web/satellite') { dir('web/satellite') {
sh 'npm ci --prefer-offline --no-audit' sh 'npm install --prefer-offline --no-audit --loglevel timing'
sh './scripts/build-wasm.sh' sh './scripts/build-wasm.sh'
sh 'npm run build' sh 'npm run build'
@ -122,7 +122,7 @@ pipeline {
} }
steps { steps {
dir("web/storagenode") { dir("web/storagenode") {
sh 'npm ci --prefer-offline --no-audit' sh 'npm install --prefer-offline --no-audit --loglevel timing'
sh 'npm run build' sh 'npm run build'
sh 'npm run lint-ci' sh 'npm run lint-ci'
sh script: 'npm audit', returnStatus: true sh script: 'npm audit', returnStatus: true
@ -137,7 +137,7 @@ pipeline {
} }
steps { steps {
dir("web/multinode") { dir("web/multinode") {
sh 'npm ci --prefer-offline --no-audit' sh 'npm install --prefer-offline --no-audit --loglevel timing'
sh 'npm run build' sh 'npm run build'
sh 'npm run lint-ci' sh 'npm run lint-ci'
sh script: 'npm audit', returnStatus: true sh script: 'npm audit', returnStatus: true
@ -152,7 +152,7 @@ pipeline {
} }
steps { steps {
dir("satellite/admin/ui") { dir("satellite/admin/ui") {
sh 'npm ci --prefer-offline --no-audit' sh 'npm install --prefer-offline --no-audit --loglevel timing'
sh 'npm run build' sh 'npm run build'
sh script: 'npm audit', returnStatus: true sh script: 'npm audit', returnStatus: true
sh 'npm run check' sh 'npm run check'