From 2538cf2687b63dd1f7cd8570f414180fce71b557 Mon Sep 17 00:00:00 2001 From: Harrison Deng Date: Thu, 20 Feb 2025 17:59:02 +0000 Subject: [PATCH] Moved linting stage to bioconda specific publishing stages --- Jenkinsfile | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 3111ab4..2b5d388 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -31,13 +31,6 @@ pipeline { sh 'cp -r autobigs-engine/* auto-updated-bioconda-recipes/recipes/autobigs-engine/.' } } - stage("lint") { - steps { - dir('auto-updated-bioconda-recipes') { - sh 'bioconda-utils lint recipes/ --packages autobigs-engine' - } - } - } stage("build") { steps { dir('auto-updated-bioconda-recipes') { @@ -52,14 +45,21 @@ pipeline { 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("bioconda") { + stages { + stage('lint') { + sh 'bioconda-utils lint recipes/ --packages autobigs-engine' + } + 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' + } + } } } }