53 lines
1.8 KiB
Plaintext
53 lines
1.8 KiB
Plaintext
|
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/bioconda-recipes.git'
|
||
|
dir('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 scripts/adapt_names.py autobigs.cli'
|
||
|
}
|
||
|
}
|
||
|
stage("build") {
|
||
|
steps {
|
||
|
sh 'conda build autobigs-cli'
|
||
|
}
|
||
|
}
|
||
|
stage("commit") {
|
||
|
environment {
|
||
|
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'
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|