Updated Jenkinsfile.

This commit is contained in:
Harrison Deng 2022-05-13 01:51:22 -05:00
parent 2fdb0fd98c
commit c71b170985

8
Jenkinsfile vendored
View File

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