From be4d6653010e87204cfafc568bc9d69e3078aae0 Mon Sep 17 00:00:00 2001 From: Harrison Date: Wed, 3 May 2023 08:32:04 -0500 Subject: [PATCH] Updated pipeline to take advantage of latest build container image --- Jenkinsfile | 7 +++---- environment.yml | 1 + 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 1e76380..fdb5179 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -8,8 +8,7 @@ pipeline { } stage("install") { steps { - sh 'mamba env update --file environment.yml' - sh 'echo "mamba activate csvbyname" >> ~/.bashrc' + sh 'mamba env update --file environment.yml --prefix ./env || mamba env create --force --file environment.yml --prefix ./env' } } stage("build") { @@ -17,7 +16,7 @@ pipeline { sh "python -m build" } } - stage("test") { + stage("test installation") { steps { sh "pip install dist/*.whl" sh "csvbyname -h" @@ -25,7 +24,7 @@ pipeline { } stage("archive") { steps { - archiveArtifacts artifacts: 'dist/*.tar.gz, dist/*.whl' + archiveArtifacts artifacts: 'dist/*.tar.gz, dist/*.whl', fingerprint: true, followSymlinks: false, onlyIfSuccessful: true } } stage("publish package") { diff --git a/environment.yml b/environment.yml index b1a3b7a..bff8cbc 100644 --- a/environment.yml +++ b/environment.yml @@ -6,3 +6,4 @@ dependencies: - pytest=7.2.2 - twine=4.0.2 - python=3.11 +prefix: ./env \ No newline at end of file