diff --git a/Jenkinsfile b/Jenkinsfile index 51d99dc..c9e2633 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -8,8 +8,7 @@ pipeline { } stage("install") { steps { - sh 'mamba env update --file environment.yml' - sh 'echo "mamba activate filterfasta" >> ~/.bashrc' + sh 'mamba env update --file environment.yml --prefix ./env || mamba env create --force --file environment.yml --prefix ./env' } } stage("build") { @@ -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") { diff --git a/environment.yml b/environment.yml index 9ababcb..05c76ca 100644 --- a/environment.yml +++ b/environment.yml @@ -7,3 +7,4 @@ dependencies: - twine=4 - biopython=1.81 - python=3.11 +prefix: ./env \ No newline at end of file