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') {
steps {
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 'npm run build'
}
@ -52,7 +52,7 @@ pipeline {
stage('web/storagenode') {
steps {
dir('web/storagenode') {
sh 'npm ci --prefer-offline --no-audit'
sh 'npm install --prefer-offline --no-audit --loglevel timing'
sh 'npm run build'
}
}
@ -60,7 +60,7 @@ pipeline {
stage('web/multinode') {
steps {
dir('web/multinode') {
sh 'npm ci --prefer-offline --no-audit'
sh 'npm install --prefer-offline --no-audit --loglevel timing'
sh 'npm run build'
}
}
@ -68,7 +68,7 @@ pipeline {
stage('satellite/admin/ui') {
steps {
dir('satellite/admin/ui') {
sh 'npm ci --prefer-offline --no-audit'
sh 'npm install --prefer-offline --no-audit --loglevel timing'
sh 'npm run build'
}
}

View File

@ -99,7 +99,7 @@ pipeline {
}
steps {
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 'npm run build'
@ -122,7 +122,7 @@ pipeline {
}
steps {
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 lint-ci'
sh script: 'npm audit', returnStatus: true
@ -137,7 +137,7 @@ pipeline {
}
steps {
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 lint-ci'
sh script: 'npm audit', returnStatus: true
@ -152,7 +152,7 @@ pipeline {
}
steps {
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 script: 'npm audit', returnStatus: true
sh 'npm run check'