61 lines
2.4 KiB
Groovy

pipeline {
agent {
kubernetes {
cloud 'rsys-devel'
defaultContainer 'miniforge3'
inheritFrom 'miniforge'
}
}
stages {
stage("prepare") {
parallel {
stage("recipes repo") {
steps {
sh 'git clone https://github.com/RealYHD/bioconda-recipes.git'
dir('bioconda-recipes') {
sh 'git pull'
sh 'git pull origin update-autobigs-engine'
sh 'git pull origin update-autobigs-cli'
}
}
}
stage("conda") {
steps {
sh 'conda env update -n base --file environment.yml'
}
}
}
}
stage("update recipes") {
parallel {
stage("autoBIGS.cli") {
steps {
sh 'grayskull pypi autobigs.cli --maintainers "Harrison Deng"'
sh 'python scripts/adapt_names.py autobigs.cli'
}
}
stage("autoBIGS.engine") {
steps {
sh 'grayskull pypi autobigs.cli --maintainers "Harrison Deng"'
sh 'python scripts/adapt_names.py autobigs.engine'
}
}
}
stage("overwrite") {
steps {
dir('bioconda-recipes') {
sh 'git checkout -b update-autobigs-engine'
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 origin update-autobigs-engine'
sh 'git checkout -b update-autobigs-cli'
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.engine)."'
sh 'git push origin update-autobigs-cli'
}
}
}
}
}
}