Updated pipeline to use latest build container image features
All checks were successful
ydeng/splitmsa/pipeline/head This commit looks good
All checks were successful
ydeng/splitmsa/pipeline/head This commit looks good
This commit is contained in:
parent
b047b6f8fc
commit
5d3ce699fa
11
Jenkinsfile
vendored
11
Jenkinsfile
vendored
@ -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 splitmsa" >> ~/.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") {
|
||||
|
@ -7,3 +7,4 @@ dependencies:
|
||||
- twine=4.0.2
|
||||
- biopython=1.81
|
||||
- python=3.9
|
||||
prefix: ./env
|
Loading…
Reference in New Issue
Block a user