From 40c8afe68cbb01cc5a52655866d5d81157d78a78 Mon Sep 17 00:00:00 2001 From: Harrison Date: Wed, 3 May 2023 08:13:18 -0500 Subject: [PATCH] Updated 'Jenkinsfile' to conform to new build container usage --- Jenkinsfile | 4 ++-- environment.yml | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index c516826..c18f212 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -3,7 +3,7 @@ pipeline { stages { stage("install") { steps { - sh 'mamba env update --file environment.yml || mamba env create --force --file environment.yml' + sh 'mamba env update --file environment.yml --prefix ./env || mamba env create --force --file environment.yml --prefix ./env' sh 'echo "mamba activate bmlsa" >> ~/.bashrc' } } @@ -19,7 +19,7 @@ pipeline { sh 'rm -rf ./docs/build/*' sh "python -m build" sh 'sphinx-apidoc -o docs/source/autodoc/bmlsa src/bmlsa --force' - sh 'make -C docs html' + sh 'sphinx-build -M html ./docs/source ./docs/build' publishHTML([allowMissing: false, alwaysLinkToLastBuild: false, keepAll: false, reportDir: 'docs/build/html', reportFiles: 'index.html', reportName: 'Documentation', reportTitles: '']) } } diff --git a/environment.yml b/environment.yml index b14e79d..3979b38 100644 --- a/environment.yml +++ b/environment.yml @@ -8,4 +8,5 @@ dependencies: - twine=4 - python-build=0.10.0 - setuptools=67.6 - - sphinx=6.2 \ No newline at end of file + - sphinx=6.2 +prefix: ./env \ No newline at end of file