2022-04-17 01:37:34 -05:00
|
|
|
pipeline {
|
2022-04-16 03:22:01 -05:00
|
|
|
agent any
|
2022-11-28 05:17:50 +00:00
|
|
|
environment {
|
|
|
|
PATH = "/home/jenkins/.local/share/fnm:${PATH}"
|
|
|
|
}
|
2022-04-17 01:37:34 -05:00
|
|
|
stages {
|
2022-04-16 03:22:01 -05:00
|
|
|
stage("install") {
|
|
|
|
steps {
|
2022-11-28 23:54:28 +00:00
|
|
|
sh 'brew install node@16'
|
2022-11-28 06:48:00 +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 {
|
2022-11-28 07:29:43 +00:00
|
|
|
sh '''
|
|
|
|
npm run test:junit
|
|
|
|
'''
|
2022-04-18 07:39:59 -05:00
|
|
|
junit '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 {
|
2022-11-28 06:48:00 +00:00
|
|
|
sh 'npm run build:prod'
|
2022-04-20 00:02:17 -05:00
|
|
|
fingerprint "dist/**"
|
2022-04-18 07:40:23 -05:00
|
|
|
archiveArtifacts artifacts: 'dist/audioshowkit.js', followSymlinks: false
|
2022-04-17 22:25:54 -05:00
|
|
|
}
|
|
|
|
}
|
2022-04-18 07:39:59 -05:00
|
|
|
stage("generate docs") {
|
|
|
|
steps {
|
2022-11-28 06:48:00 +00:00
|
|
|
sh 'npm run docs'
|
2022-04-18 18:54:41 -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
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|