Updated Jenkinsfile to use latest containerized build agent.
This commit is contained in:
15
Jenkinsfile
vendored
15
Jenkinsfile
vendored
@@ -1,33 +1,28 @@
|
||||
pipeline {
|
||||
agent any
|
||||
environment {
|
||||
PATH = "/home/jenkins/.local/share/fnm:${PATH}"
|
||||
}
|
||||
stages {
|
||||
stage("install") {
|
||||
steps {
|
||||
sh 'brew install node@16'
|
||||
sh 'npm install'
|
||||
sh 'conda env create -f environment.yml'
|
||||
sh 'conda activate webdev && npm install'
|
||||
}
|
||||
}
|
||||
stage("test") {
|
||||
steps {
|
||||
sh '''
|
||||
npm run test:junit
|
||||
'''
|
||||
sh 'conda activate webdev && npm run test:junit'
|
||||
junit 'junit/*.xml'
|
||||
}
|
||||
}
|
||||
stage("build") {
|
||||
steps {
|
||||
sh 'npm run build:prod'
|
||||
sh 'conda activate webdev && npm run build:prod'
|
||||
fingerprint "dist/**"
|
||||
archiveArtifacts artifacts: 'dist/audioshowkit.js', followSymlinks: false
|
||||
}
|
||||
}
|
||||
stage("generate docs") {
|
||||
steps {
|
||||
sh 'npm run docs'
|
||||
sh 'conda activate webdev && npm run docs'
|
||||
publishHTML([allowMissing: false, alwaysLinkToLastBuild: true, keepAll: true, reportDir: './docs', reportFiles: 'index.html', reportName: 'AudioShowKit Docs', reportTitles: ''])
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user