35 lines
1.1 KiB
Plaintext
35 lines
1.1 KiB
Plaintext
|
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"
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
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: 'docs', reportFiles: 'index.html', reportName: 'AudioShowKit Demo', reportTitles: ''])
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|