Switched over to to dedicated NodeJS container build environment
All checks were successful
audioshowkit/pipeline/head This commit looks good
All checks were successful
audioshowkit/pipeline/head This commit looks good
This commit is contained in:
16
Jenkinsfile
vendored
16
Jenkinsfile
vendored
@@ -1,33 +1,33 @@
|
||||
pipeline {
|
||||
agent {
|
||||
kubernetes {
|
||||
cloud 'Reslate Systems'
|
||||
defaultContainer 'conda'
|
||||
cloud 'rsys-devel'
|
||||
defaultContainer 'nodejs'
|
||||
inheritFrom 'nodejs'
|
||||
}
|
||||
}
|
||||
|
||||
stages {
|
||||
stage("install") {
|
||||
steps {
|
||||
sh 'conda update conda -y -q'
|
||||
sh 'conda env update -n base --file environment.yml -q'
|
||||
sh 'conda run -n base npm install'
|
||||
sh 'npm install'
|
||||
}
|
||||
}
|
||||
stage("test") {
|
||||
steps {
|
||||
sh 'conda run -n base npm run test:junit'
|
||||
sh 'npm run test:junit'
|
||||
recordCoverage(tools: [[parser: 'JUNIT', pattern: 'junit/*.xml']])
|
||||
}
|
||||
}
|
||||
stage("build") {
|
||||
steps {
|
||||
sh 'conda run -n base npm run build:prod'
|
||||
sh 'npm run build:prod'
|
||||
archiveArtifacts artifacts: 'dist/audioshowkit.js', fingerprint: true, followSymlinks: false, onlyIfSuccessful: true
|
||||
}
|
||||
}
|
||||
stage("generate docs") {
|
||||
steps {
|
||||
sh 'conda run -n base npm run docs'
|
||||
sh 'npm run docs'
|
||||
publishHTML([allowMissing: false, alwaysLinkToLastBuild: true, keepAll: true, reportDir: './docs', reportFiles: 'index.html', reportName: 'Documentation', reportTitles: ''])
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user