2022-04-16 08:22:01 +00:00
|
|
|
pipeline{
|
|
|
|
agent any
|
|
|
|
stages{
|
|
|
|
stage("install") {
|
|
|
|
steps {
|
|
|
|
nodejs('NodeJS (17.4.0)') {
|
|
|
|
sh "npm install"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
stage("build") {
|
|
|
|
steps {
|
|
|
|
nodejs('NodeJS (17.4.0)') {
|
|
|
|
sh "npm run build"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
stage("test") {
|
|
|
|
steps {
|
|
|
|
nodejs('NodeJS (17.4.0)') {
|
|
|
|
sh "npm run test"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2022-04-16 08:36:22 +00:00
|
|
|
stage("archive product") {
|
|
|
|
steps {
|
|
|
|
archiveArtifacts artifacts: 'dist/audioshowkit.js', followSymlinks: false
|
|
|
|
}
|
|
|
|
}
|
2022-04-16 08:22:01 +00:00
|
|
|
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: ''])
|
2022-04-17 06:26:26 +00:00
|
|
|
publishHTML([allowMissing: false, alwaysLinkToLastBuild: false, keepAll: false, reportDir: 'dist', reportFiles: 'index.html', reportName: 'AudioShowKit Demo', reportTitles: ''])
|
2022-04-16 08:22:01 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|