2022-04-17 01:37:34 -05:00
|
|
|
pipeline {
|
2024-07-22 02:48:20 +00:00
|
|
|
agent {
|
|
|
|
kubernetes {
|
2024-11-14 03:36:48 +00:00
|
|
|
cloud 'rsys-devel'
|
|
|
|
defaultContainer 'nodejs'
|
|
|
|
inheritFrom 'nodejs'
|
2024-07-22 02:48:20 +00:00
|
|
|
}
|
|
|
|
}
|
2024-11-14 03:36:48 +00:00
|
|
|
|
2022-04-17 01:37:34 -05:00
|
|
|
stages {
|
2022-04-16 03:22:01 -05:00
|
|
|
stage("install") {
|
|
|
|
steps {
|
2024-11-14 03:36:48 +00:00
|
|
|
sh 'npm install'
|
2022-04-16 03:22:01 -05:00
|
|
|
}
|
|
|
|
}
|
2022-11-28 05:17:50 +00:00
|
|
|
stage("test") {
|
2022-04-16 03:22:01 -05:00
|
|
|
steps {
|
2024-11-14 03:36:48 +00:00
|
|
|
sh 'npm run test:junit'
|
2024-07-22 02:48:20 +00:00
|
|
|
recordCoverage(tools: [[parser: 'JUNIT', pattern: 'junit/*.xml']])
|
2022-04-16 03:22:01 -05:00
|
|
|
}
|
|
|
|
}
|
2022-04-18 19:31:34 -05:00
|
|
|
stage("build") {
|
2022-04-16 03:36:22 -05:00
|
|
|
steps {
|
2024-11-14 03:36:48 +00:00
|
|
|
sh 'npm run build:prod'
|
2023-05-03 08:26:48 -05:00
|
|
|
archiveArtifacts artifacts: 'dist/audioshowkit.js', fingerprint: true, followSymlinks: false, onlyIfSuccessful: true
|
2022-04-17 22:25:54 -05:00
|
|
|
}
|
|
|
|
}
|
2022-04-18 07:39:59 -05:00
|
|
|
stage("generate docs") {
|
|
|
|
steps {
|
2024-11-14 03:36:48 +00:00
|
|
|
sh 'npm run docs'
|
2023-05-03 08:43:24 -05:00
|
|
|
publishHTML([allowMissing: false, alwaysLinkToLastBuild: true, keepAll: true, reportDir: './docs', reportFiles: 'index.html', reportName: 'Documentation', reportTitles: ''])
|
2022-04-16 03:22:01 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|