Switched Jenkins NodeJS environment name.

This commit is contained in:
Harrison Deng 2022-04-26 21:14:30 -05:00
parent 68c1d1d35d
commit 1b72ffa6b5

8
Jenkinsfile vendored
View File

@ -3,14 +3,14 @@ pipeline {
stages { stages {
stage("install") { stage("install") {
steps { steps {
nodejs('NodeJS (17.4.0)') { nodejs('System NodeJS') {
sh "npm install" sh "npm install"
} }
} }
} }
stage("tests") { stage("tests") {
steps { steps {
nodejs('NodeJS (17.4.0)') { nodejs('System NodeJS') {
sh "npm run test:junit" sh "npm run test:junit"
} }
junit 'junit/*.xml' junit 'junit/*.xml'
@ -18,7 +18,7 @@ pipeline {
} }
stage("build") { stage("build") {
steps { steps {
nodejs('NodeJS (17.4.0)') { nodejs('System NodeJS') {
sh "npm run build:prod" sh "npm run build:prod"
} }
fingerprint "dist/**" fingerprint "dist/**"
@ -28,7 +28,7 @@ pipeline {
stage("generate docs") { stage("generate docs") {
steps { steps {
sh "rm -r ./docs" sh "rm -r ./docs"
nodejs('NodeJS (17.4.0)') { nodejs('System NodeJS') {
sh "npm run docs" sh "npm run docs"
} }
publishHTML([allowMissing: false, alwaysLinkToLastBuild: true, keepAll: true, reportDir: './docs', reportFiles: 'index.html', reportName: 'AudioShowKit Docs', reportTitles: '']) publishHTML([allowMissing: false, alwaysLinkToLastBuild: true, keepAll: true, reportDir: './docs', reportFiles: 'index.html', reportName: 'AudioShowKit Docs', reportTitles: ''])