Renamed project to "SplitMSA" and added pipeline file
Some checks failed
ydeng/splitmsa/pipeline/head There was a failure building this commit
Some checks failed
ydeng/splitmsa/pipeline/head There was a failure building this commit
This commit is contained in:
26
Jenkinsfile
vendored
Normal file
26
Jenkinsfile
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
pipeline {
|
||||
agent any
|
||||
stages {
|
||||
stage("install") {
|
||||
steps {
|
||||
sh 'conda env update --file environment.yml'
|
||||
sh 'echo "conda 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/*"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user