audioshowkit/Jenkinsfile
Harrison Deng cb844082e6
Some checks failed
RealYHD/audioshowkit/pipeline/head There was a failure building this commit
ydeng/audioshowkit/pipeline/head There was a failure building this commit
Merge branch 'develop'.
2022-11-30 03:56:06 +00:00

41 lines
1.2 KiB
Groovy

pipeline {
agent any
stages {
stage("install") {
steps {
sh 'mamba env update --file environment.yml'
sh 'echo "mamba activate webdev" >> ~/.bashrc'
sh 'node --version && npm --version'
sh 'npm install'
}
}
stage("test") {
steps {
sh '''
source ~/.bashrc
npm run test:junit
'''
junit 'junit/*.xml'
}
}
stage("build") {
steps {
sh '''
source ~/.bashrc
npm run build:prod
'''
fingerprint "dist/**"
archiveArtifacts artifacts: 'dist/audioshowkit.js', followSymlinks: false
}
}
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: ''])
}
}
}
}