splitmsa/Jenkinsfile
Harrison 43758c45f8
All checks were successful
ydeng/splitmsa/pipeline/head This commit looks good
Changed Jenkins pipeline to use mamba
2023-04-11 13:00:04 -05:00

26 lines
858 B
Groovy

pipeline {
agent any
stages {
stage("install") {
steps {
sh 'mamba env update --file environment.yml'
sh 'echo "mamba activate splitmsa" >> ~/.bashrc'
}
}
stage("build") {
steps {
sh "python -m build"
}
}
stage("publish") {
when {
branch '**/master'
}
steps {
withCredentials([usernamePassword(credentialsId: 'rs-git-package-registry-ydeng', passwordVariable: 'PASS', usernameVariable: 'USER')]) {
sh "python -m twine upload --repository-url https://git.reslate.systems/api/packages/${USER}/pypi -u ${USER} -p ${PASS} --non-interactive --disable-progress-bar --verbose dist/*"
}
}
}
}
}