Added a step to push the condapackage to git.reslate.systems conda repo
Some checks failed
autoBIGS.engine-bioconda/pipeline/head There was a failure building this commit

This commit is contained in:
Harrison Deng 2025-02-20 17:44:37 +00:00
parent 1ec6581e27
commit 810ec0ee6a

36
Jenkinsfile vendored
View File

@ -43,18 +43,36 @@ pipeline {
stage("build") {
steps {
dir('auto-updated-bioconda-recipes') {
sh 'conda build recipes/autobigs-engine'
sh 'conda build recipes/autobigs-engine --output-folder ./conda-dist'
}
}
}
stage("commit") {
environment {
TOKEN = credentials('github.com')
}
steps {
dir('auto-updated-bioconda-recipes') {
sh 'git commit -a -m "Automatically updated autobigs-engine bioconda recipe to $(python ../pypi_latest_ver.py autoBIGS.engine)."'
sh 'git push https://${TOKEN}@github.com/Syph-and-VPD-Lab/auto-updated-bioconda-recipes.git update-autobigs-engine'
stage('publish') {
parallel {
stage("archive") {
steps {
archiveArtifacts artifacts: './conda-dist/**/*.conda', followSymlinks: false
}
}
stage("commit") {
environment {
TOKEN = credentials('github.com')
}
steps {
dir('auto-updated-bioconda-recipes') {
sh 'git commit -a -m "Automatically updated autobigs-engine bioconda recipe to $(python ../pypi_latest_ver.py autoBIGS.engine)."'
sh 'git push https://${TOKEN}@github.com/Syph-and-VPD-Lab/auto-updated-bioconda-recipes.git update-autobigs-engine'
}
}
}
stage('git.reslate.systems') {
environment {
AUTH = credentials('git.reslate.systems')
}
steps {
sh
sh 'curl --user AUTH_USR:AUTH_PSW --upload-file ./conda-dist/**/*.conda https://git.reslate.systems/api/packages/${AUTH_USR}/conda/package-1.0.conda'
}
}
}
}