audioshowkit/Jenkinsfile

40 lines
1.1 KiB
Plaintext
Raw Normal View History

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