From ff420b9e6a7e9f0d1e6a36a4cd11a45bc7f7da19 Mon Sep 17 00:00:00 2001 From: Harrison Deng Date: Mon, 17 Feb 2025 19:53:05 +0000 Subject: [PATCH] Added linting stage to bioconda package publishing --- Jenkinsfile | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 9577c1b..9f21d1a 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -30,11 +30,19 @@ pipeline { steps { sh 'grayskull pypi autobigs.engine --maintainers "Harrison Deng"' sh 'python scripts/adapt_names.py autobigs.engine' + sh 'cp -r autobigs-engine/* bioconda-recipes/recipes/autobigs-engine/.' + } + } + stage("lint") { + steps { + dir('bioconda-recipes') { + sh 'bioconda-utils lint recipes/ --packages autobigs-engine' + } } } stage("build") { steps { - sh 'conda build autobigs-engine' + sh 'conda build bioconda-utils/recipes/autobigs-engine' } } stage("commit") { @@ -43,7 +51,6 @@ pipeline { } steps { dir('bioconda-recipes') { - sh 'cp -r ../autobigs-engine/* recipes/autobigs-engine/.' sh 'git commit -a -m "Automatically updated autobigs-engine bioconda recipe to $(python ../scripts/package_latest_version.py autoBIGS.engine)."' sh 'git push https://${TOKEN}@github.com/Syph-and-VPD-Lab/bioconda-recipes.git update-autobigs-engine' }