Jenkinsfile now uses base environment.
This commit is contained in:
parent
ad833b75c5
commit
84b44c7f39
10
Jenkinsfile
vendored
10
Jenkinsfile
vendored
@ -3,26 +3,26 @@ pipeline {
|
|||||||
stages {
|
stages {
|
||||||
stage("install") {
|
stage("install") {
|
||||||
steps {
|
steps {
|
||||||
sh 'mamba env create -f environment.yml'
|
sh 'mamba update -y -q --file environment.yml --prune'
|
||||||
sh 'mamba activate webdev && npm install'
|
sh 'npm install'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage("test") {
|
stage("test") {
|
||||||
steps {
|
steps {
|
||||||
sh 'mamba activate webdev && npm run test:junit'
|
sh 'npm run test:junit'
|
||||||
junit 'junit/*.xml'
|
junit 'junit/*.xml'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage("build") {
|
stage("build") {
|
||||||
steps {
|
steps {
|
||||||
sh 'mamba activate webdev && npm run build:prod'
|
sh 'npm run build:prod'
|
||||||
fingerprint "dist/**"
|
fingerprint "dist/**"
|
||||||
archiveArtifacts artifacts: 'dist/audioshowkit.js', followSymlinks: false
|
archiveArtifacts artifacts: 'dist/audioshowkit.js', followSymlinks: false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage("generate docs") {
|
stage("generate docs") {
|
||||||
steps {
|
steps {
|
||||||
sh 'mamba activate webdev && npm run docs'
|
sh 'npm run docs'
|
||||||
publishHTML([allowMissing: false, alwaysLinkToLastBuild: true, keepAll: true, reportDir: './docs', reportFiles: 'index.html', reportName: 'AudioShowKit Docs', reportTitles: ''])
|
publishHTML([allowMissing: false, alwaysLinkToLastBuild: true, keepAll: true, reportDir: './docs', reportFiles: 'index.html', reportName: 'AudioShowKit Docs', reportTitles: ''])
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user