audioshowkit/Jenkinsfile
Harrison 97a01656a1
All checks were successful
ydeng/audioshowkit/pipeline/head This commit looks good
Updated pipeline to latest system
2023-05-03 08:26:48 -05:00

30 lines
1.0 KiB
Groovy

pipeline {
agent any
stages {
stage("install") {
steps {
sh 'mamba env update --file environment.yml --prefix ./env || mamba env create --force --file environment.yml --prefix ./env'
sh 'node --version && npm --version'
sh 'npm install'
}
}
stage("test") {
steps {
sh 'npm run test:junit'
junit 'junit/*.xml'
}
}
stage("build") {
steps {
sh 'npm run build:prod'
archiveArtifacts artifacts: 'dist/audioshowkit.js', fingerprint: true, followSymlinks: false, onlyIfSuccessful: true
}
}
stage("generate docs") {
steps {
sh 'npm run docs'
publishHTML([allowMissing: false, alwaysLinkToLastBuild: true, keepAll: true, reportDir: './docs', reportFiles: 'index.html', reportName: 'AudioShowKit Docs', reportTitles: ''])
}
}
}
}