Parity automation with engine

This commit is contained in:
2025-02-18 14:49:07 +00:00
parent 93ddf66a54
commit 65e80db556
8 changed files with 129 additions and 138 deletions

25
Jenkinsfile vendored
View File

@@ -11,8 +11,8 @@ pipeline {
parallel {
stage("recipes repo") {
steps {
sh 'git clone https://github.com/Syph-and-VPD-Lab/bioconda-recipes.git'
dir('bioconda-recipes') {
sh 'git clone https://github.com/Syph-and-VPD-Lab/auto-updated-bioconda-recipes.git'
dir('auto-updated-bioconda-recipes') {
sh 'git pull'
sh 'git pull origin update-autobigs-cli'
sh 'git checkout update-autobigs-cli'
@@ -28,13 +28,21 @@ pipeline {
}
stage("generate recipe") {
steps {
sh 'grayskull pypi autobigs.cli --maintainers "Harrison Deng"'
sh 'python scripts/adapt_names.py autobigs.cli'
sh 'grayskull pypi autoBIGS.cli --maintainers "Harrison Deng"'
sh 'python patch_recipe.py'
sh 'cp -r autobigs-cli/* auto-updated-bioconda-recipes/recipes/autobigs-cli/.'
}
}
stage("lint") {
steps {
dir('auto-updated-bioconda-recipes') {
sh 'bioconda-utils lint recipes/ --packages autobigs-cli'
}
}
}
stage("build") {
steps {
sh 'conda build autobigs-cli'
sh 'conda build bioconda-utils/recipes/autobigs-cli'
}
}
stage("commit") {
@@ -42,10 +50,9 @@ pipeline {
TOKEN = credentials('github.com')
}
steps {
dir('bioconda-recipes') {
sh 'cp -r ../autobigs-cli/* recipes/autobigs-cli/.'
sh 'git commit -a -m "Automatically updated autobigs-cli bioconda recipe to $(python ../scripts/package_latest_version.py autoBIGS.cli)."'
sh 'git push https://${TOKEN}@github.com/Syph-and-VPD-Lab/bioconda-recipes.git update-autobigs-cli'
dir('auto-updated-bioconda-recipes') {
sh 'git commit -a -m "Automatically updated autobigs-cli bioconda recipe to $(python ../pypi_latest_ver.py autoBIGS.cli)."'
sh 'git push https://${TOKEN}@github.com/Syph-and-VPD-Lab/auto-updated-bioconda-recipes.git update-autobigs-cli'
}
}
}