Pipeline now operates in parallel.

This commit is contained in:
Harrison Deng 2022-04-17 20:47:16 -05:00
parent 1085789eb6
commit 3b4849a602

26
Jenkinsfile vendored
View File

@ -28,23 +28,43 @@ pipeline {
archiveArtifacts artifacts: 'dist/audioshowkit.js', followSymlinks: false archiveArtifacts artifacts: 'dist/audioshowkit.js', followSymlinks: false
} }
} }
stage("build showcase") { stage("publish") {
parallel {
stage("setup showcase") {
stages {
stage("install showcase") {
steps { steps {
dir('./showcase/') { dir('./showcase/') {
nodejs('NodeJS (17.4.0)') { nodejs('NodeJS (17.4.0)') {
sh "npm i" sh "npm i"
}
}
}
}
stage("build showcase") {
steps {
dir('./showcase/') {
nodejs('NodeJS (17.4.0)') {
sh "npm run build" sh "npm run build"
} }
} }
} }
} }
stage("publish docs") { stage("deploy showcase") {
steps {
publishHTML([allowMissing: false, alwaysLinkToLastBuild: false, keepAll: false, reportDir: 'showcase/dist', reportFiles: 'index.html', reportName: 'AudioShowKit Demo', reportTitles: ''])
}
}
}
}
stage("generate docs") {
steps { steps {
nodejs('NodeJS (17.4.0)') { nodejs('NodeJS (17.4.0)') {
sh "npm run docs" sh "npm run docs"
} }
publishHTML([allowMissing: false, alwaysLinkToLastBuild: false, keepAll: false, reportDir: 'docs', reportFiles: 'index.html', reportName: 'AudioShowKit JSDocs', reportTitles: '']) publishHTML([allowMissing: false, alwaysLinkToLastBuild: false, keepAll: false, reportDir: 'docs', reportFiles: 'index.html', reportName: 'AudioShowKit JSDocs', reportTitles: ''])
publishHTML([allowMissing: false, alwaysLinkToLastBuild: false, keepAll: false, reportDir: 'showcase/dist', reportFiles: 'index.html', reportName: 'AudioShowKit Demo', reportTitles: '']) }
}
} }
} }
} }