Some checks reported errors
autoBIGS.cli-bioconda/pipeline/head Something is wrong with the build of this commit
71 lines
2.5 KiB
Groovy
71 lines
2.5 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/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'
|
|
}
|
|
}
|
|
}
|
|
stage("conda") {
|
|
steps {
|
|
sh 'conda env update -n base --file environment.yml'
|
|
}
|
|
}
|
|
stage("generate recipe") {
|
|
steps {
|
|
sh 'grayskull pypi autoBIGS.cli --maintainers "Harrison Deng"'
|
|
sh 'python patch_recipe.py'
|
|
}
|
|
}
|
|
}
|
|
}
|
|
stage("update repo") {
|
|
steps {
|
|
sh 'cp -r autobigs-cli/* auto-updated-bioconda-recipes/recipes/autobigs-cli/.'
|
|
sh 'cat auto-updated-bioconda-recipes/recipes/autobigs-cli/meta.yaml'
|
|
}
|
|
}
|
|
stage("lint") {
|
|
steps {
|
|
container(miniforge3) {
|
|
dir('auto-updated-bioconda-recipes') {
|
|
sh 'conda -n install python=3.10 bioconda-utils'
|
|
sh 'bioconda-utils lint recipes/ --packages autobigs-cli'
|
|
}
|
|
}
|
|
}
|
|
}
|
|
stage("build") {
|
|
steps {
|
|
dir('auto-updated-bioconda-recipes') {
|
|
sh 'conda install autobigs-engine=$(python ../pypi_latest_ver.py autoBIGS.engine)'
|
|
sh 'conda build recipes/autobigs-cli'
|
|
}
|
|
}
|
|
}
|
|
stage("commit") {
|
|
environment {
|
|
TOKEN = credentials('github.com')
|
|
}
|
|
steps {
|
|
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'
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} |