Moved steps and removed 'clean' stage
All checks were successful
ydeng/bmlsa/pipeline/head This commit looks good

This commit is contained in:
Harrison Deng 2023-04-28 14:11:24 -05:00
parent f0da142377
commit 7bfe49445a

8
Jenkinsfile vendored
View File

@ -1,12 +1,6 @@
pipeline { pipeline {
agent any agent any
stages { stages {
stage("clean") {
steps {
sh 'rm -rf ./dist/*'
sh 'rm -rf ./docs/build/*'
}
}
stage("install") { stage("install") {
steps { steps {
sh 'mamba env update --file environment.yml || mamba env create --force --file environment.yml' sh 'mamba env update --file environment.yml || mamba env create --force --file environment.yml'
@ -21,6 +15,8 @@ pipeline {
} }
stage("build") { stage("build") {
steps { steps {
sh 'rm -rf ./dist/*'
sh 'rm -rf ./docs/build/*'
sh "python -m build" sh "python -m build"
sh 'sphinx-apidoc -o docs/source/ src/bmlsa --force' sh 'sphinx-apidoc -o docs/source/ src/bmlsa --force'
sh 'make -C docs html' sh 'make -C docs html'