Pipeline now operates in parallel.
This commit is contained in:
parent
1085789eb6
commit
3b4849a602
50
Jenkinsfile
vendored
50
Jenkinsfile
vendored
@ -28,24 +28,44 @@ pipeline {
|
|||||||
archiveArtifacts artifacts: 'dist/audioshowkit.js', followSymlinks: false
|
archiveArtifacts artifacts: 'dist/audioshowkit.js', followSymlinks: false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage("build showcase") {
|
stage("publish") {
|
||||||
steps {
|
parallel {
|
||||||
dir('./showcase/') {
|
stage("setup showcase") {
|
||||||
nodejs('NodeJS (17.4.0)') {
|
stages {
|
||||||
sh "npm i"
|
stage("install showcase") {
|
||||||
sh "npm run build"
|
steps {
|
||||||
|
dir('./showcase/') {
|
||||||
|
nodejs('NodeJS (17.4.0)') {
|
||||||
|
sh "npm i"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
stage("build showcase") {
|
||||||
|
steps {
|
||||||
|
dir('./showcase/') {
|
||||||
|
nodejs('NodeJS (17.4.0)') {
|
||||||
|
sh "npm run build"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
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 {
|
||||||
|
nodejs('NodeJS (17.4.0)') {
|
||||||
|
sh "npm run docs"
|
||||||
|
}
|
||||||
|
publishHTML([allowMissing: false, alwaysLinkToLastBuild: false, keepAll: false, reportDir: 'docs', reportFiles: 'index.html', reportName: 'AudioShowKit JSDocs', reportTitles: ''])
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage("publish docs") {
|
|
||||||
steps {
|
|
||||||
nodejs('NodeJS (17.4.0)') {
|
|
||||||
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: 'showcase/dist', reportFiles: 'index.html', reportName: 'AudioShowKit Demo', reportTitles: ''])
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user