build: add timeout to npm install
Add timeout to npm install and increase logging level. npm install is still taking sometimes too long and it's not clear why, verbose logging is not sufficient. Change-Id: Ib72f9823f30c9744562e279c2a5481f096e38128
This commit is contained in:
parent
5c5e6f75e3
commit
96c3816313
@ -49,12 +49,16 @@ pipeline {
|
||||
}
|
||||
}
|
||||
stage('Build Web') {
|
||||
options {
|
||||
timeout(time: 6, unit: "MINUTES")
|
||||
}
|
||||
|
||||
// The build code depends on the following assets being loaded.
|
||||
parallel {
|
||||
stage('web/satellite') {
|
||||
steps {
|
||||
dir('web/satellite') {
|
||||
sh 'npm install --prefer-offline --no-audit --loglevel verbose'
|
||||
sh 'npm install --prefer-offline --no-audit --loglevel silly'
|
||||
sh './scripts/build-wasm.sh'
|
||||
sh 'npm run build'
|
||||
}
|
||||
@ -63,7 +67,7 @@ pipeline {
|
||||
stage('web/storagenode') {
|
||||
steps {
|
||||
dir('web/storagenode') {
|
||||
sh 'npm install --prefer-offline --no-audit --loglevel verbose'
|
||||
sh 'npm install --prefer-offline --no-audit --loglevel silly'
|
||||
sh 'npm run build'
|
||||
}
|
||||
}
|
||||
@ -71,7 +75,7 @@ pipeline {
|
||||
stage('web/multinode') {
|
||||
steps {
|
||||
dir('web/multinode') {
|
||||
sh 'npm install --prefer-offline --no-audit --loglevel verbose'
|
||||
sh 'npm install --prefer-offline --no-audit --loglevel silly'
|
||||
sh 'npm run build'
|
||||
}
|
||||
}
|
||||
@ -79,7 +83,7 @@ pipeline {
|
||||
stage('satellite/admin/ui') {
|
||||
steps {
|
||||
dir('satellite/admin/ui') {
|
||||
sh 'npm install --prefer-offline --no-audit --loglevel verbose'
|
||||
sh 'npm install --prefer-offline --no-audit --loglevel silly'
|
||||
sh 'npm run build'
|
||||
}
|
||||
}
|
||||
|
@ -91,6 +91,10 @@ pipeline {
|
||||
}
|
||||
|
||||
stage('Build and Lint Web') {
|
||||
options {
|
||||
timeout(time: 6, unit: "MINUTES")
|
||||
}
|
||||
|
||||
// The build code depends on the following assets being loaded.
|
||||
parallel {
|
||||
stage('web/satellite') {
|
||||
@ -99,7 +103,7 @@ pipeline {
|
||||
}
|
||||
steps {
|
||||
dir('web/satellite') {
|
||||
sh 'npm install --prefer-offline --no-audit --loglevel verbose'
|
||||
sh 'npm install --prefer-offline --no-audit --loglevel silly'
|
||||
sh './scripts/build-wasm.sh'
|
||||
sh 'npm run build'
|
||||
|
||||
@ -122,7 +126,7 @@ pipeline {
|
||||
}
|
||||
steps {
|
||||
dir("web/storagenode") {
|
||||
sh 'npm install --prefer-offline --no-audit --loglevel verbose'
|
||||
sh 'npm install --prefer-offline --no-audit --loglevel silly'
|
||||
sh 'npm run build'
|
||||
sh 'npm run lint-ci'
|
||||
sh script: 'npm audit', returnStatus: true
|
||||
@ -137,7 +141,7 @@ pipeline {
|
||||
}
|
||||
steps {
|
||||
dir("web/multinode") {
|
||||
sh 'npm install --prefer-offline --no-audit --loglevel verbose'
|
||||
sh 'npm install --prefer-offline --no-audit --loglevel silly'
|
||||
sh 'npm run build'
|
||||
sh 'npm run lint-ci'
|
||||
sh script: 'npm audit', returnStatus: true
|
||||
@ -152,7 +156,7 @@ pipeline {
|
||||
}
|
||||
steps {
|
||||
dir("satellite/admin/ui") {
|
||||
sh 'npm install --prefer-offline --no-audit --loglevel verbose'
|
||||
sh 'npm install --prefer-offline --no-audit --loglevel silly'
|
||||
sh 'npm run build'
|
||||
sh script: 'npm audit', returnStatus: true
|
||||
sh 'npm run check'
|
||||
|
Loading…
Reference in New Issue
Block a user