audioshowkit/Jenkinsfile

36 lines
1.1 KiB
Plaintext
Raw Normal View History

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 {
2023-05-03 13:26:48 +00:00
sh 'mamba env update --file environment.yml --prefix ./env || mamba env create --force --file environment.yml --prefix ./env'
sh 'node --version && npm --version'
2022-11-30 02:36:30 +00:00
sh 'npm install'
2022-04-16 08:22:01 +00:00
}
}
stage("test") {
2022-04-16 08:22:01 +00:00
steps {
sh '''
source ~/.bashrc
npm run test:junit
'''
junit 'junit/*.xml'
2022-04-16 08:22:01 +00:00
}
}
stage("build") {
2022-04-16 08:36:22 +00:00
steps {
2022-11-30 02:36:30 +00:00
sh 'npm run build:prod'
2023-05-03 13:26:48 +00:00
archiveArtifacts artifacts: 'dist/audioshowkit.js', fingerprint: true, followSymlinks: false, onlyIfSuccessful: true
2022-04-18 03:25:54 +00:00
}
}
stage("generate docs") {
steps {
sh '''
source ~/.bashrc
npm run docs
'''
publishHTML([allowMissing: false, alwaysLinkToLastBuild: true, keepAll: true, reportDir: './docs', reportFiles: 'index.html', reportName: 'AudioShowKit Docs', reportTitles: ''])
2022-04-16 08:22:01 +00:00
}
}
}
}