2022-04-17 06:37:34 +00:00
|
|
|
pipeline {
|
2022-04-16 08:22:01 +00:00
|
|
|
agent any
|
2022-04-17 06:37:34 +00:00
|
|
|
stages {
|
2022-04-16 08:22:01 +00:00
|
|
|
stage("install") {
|
|
|
|
steps {
|
2022-04-18 12:39:59 +00:00
|
|
|
nodejs('NodeJS (17.4.0)') {
|
|
|
|
sh "npm install"
|
2022-04-16 08:22:01 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
stage("build") {
|
|
|
|
steps {
|
2022-04-18 12:39:59 +00:00
|
|
|
nodejs('NodeJS (17.4.0)') {
|
|
|
|
sh "npm run build:dev"
|
2022-04-16 08:22:01 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2022-04-18 21:13:23 +00:00
|
|
|
stage("tests") {
|
2022-04-16 08:22:01 +00:00
|
|
|
steps {
|
2022-04-18 12:39:59 +00:00
|
|
|
nodejs('NodeJS (17.4.0)') {
|
|
|
|
sh "npm run test:junit"
|
2022-04-16 08:22:01 +00:00
|
|
|
}
|
2022-04-18 12:39:59 +00:00
|
|
|
junit 'junit/*.xml'
|
2022-04-16 08:22:01 +00:00
|
|
|
}
|
|
|
|
}
|
2022-04-18 03:35:25 +00:00
|
|
|
stage("archive product") {
|
2022-04-16 08:36:22 +00:00
|
|
|
steps {
|
2022-04-18 12:40:23 +00:00
|
|
|
archiveArtifacts artifacts: 'dist/audioshowkit.js', followSymlinks: false
|
2022-04-18 03:25:54 +00:00
|
|
|
}
|
|
|
|
}
|
2022-04-18 12:39:59 +00:00
|
|
|
stage("generate docs") {
|
|
|
|
steps {
|
|
|
|
nodejs('NodeJS (17.4.0)') {
|
|
|
|
sh "npm run docs"
|
2022-04-16 08:22:01 +00:00
|
|
|
}
|
2022-04-18 21:07:26 +00:00
|
|
|
publishHTML([allowMissing: false, alwaysLinkToLastBuild: false, keepAll: false, reportDir: './docs', reportFiles: 'index.html', reportName: 'AudioShowKit JSDocs', reportTitles: ''])
|
2022-04-16 08:22:01 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|