Updated pipeline to use latest build container image features
All checks were successful
ydeng/renamebycsv/pipeline/head This commit looks good

This commit is contained in:
Harrison Deng 2023-05-03 08:37:35 -05:00
parent 83639a10e2
commit d98801dd66
2 changed files with 5 additions and 9 deletions

11
Jenkinsfile vendored
View File

@ -1,19 +1,14 @@
pipeline {
agent any
stages {
stage("clean") {
steps {
sh 'rm -rf ./dist/*'
}
}
stage("install") {
steps {
sh 'mamba env update --file environment.yml'
sh 'echo "mamba activate renamebycsv" >> ~/.bashrc'
sh 'mamba env update --file environment.yml --prefix ./env || mamba env create --force --file environment.yml --prefix ./env'
}
}
stage("build") {
steps {
sh 'rm -rf ./dist/*'
sh "python -m build"
}
}
@ -25,7 +20,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") {

View File

@ -8,4 +8,5 @@ dependencies:
- python=3.11
- setuptools=67.6
- twine=4.0
- cryptography=38.0.4
- cryptography=38.0.4
prefix: ./env