From 810ec0ee6a4b12def7e76aa554912eb461273b08 Mon Sep 17 00:00:00 2001 From: Harrison Deng Date: Thu, 20 Feb 2025 17:44:37 +0000 Subject: [PATCH] Added a step to push the condapackage to git.reslate.systems conda repo --- Jenkinsfile | 36 +++++++++++++++++++++++++++--------- 1 file changed, 27 insertions(+), 9 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index b7f3442..307fe82 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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' + } } } }