Removed unecessary nesting in pipeline
All checks were successful
autoBIGS.cli-bioconda/pipeline/head This commit looks good

This commit is contained in:
Harrison Deng 2025-02-26 17:49:37 +00:00
parent 0bc1cb1c51
commit a6d7c71f69

34
Jenkinsfile vendored
View File

@ -45,26 +45,22 @@ pipeline {
sh 'conda build auto-updated-bioconda-recipes/recipes/autobigs-cli --output-folder ./conda-bld'
}
}
stage("publish to bioconda") {
stages {
stage('lint') {
steps {
dir('auto-updated-bioconda-recipes') {
sh 'bioconda-utils lint recipes/ --packages autobigs-cli'
}
}
stage('lint') {
steps {
dir('auto-updated-bioconda-recipes') {
sh 'bioconda-utils lint recipes/ --packages 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 ${TOOL_VER}."'
sh 'git push https://${TOKEN}@github.com/Syph-and-VPD-Lab/auto-updated-bioconda-recipes.git update-autobigs-cli-${TOOL_VER}'
sh 'git request-pull update-autobigs-cli-${TOOL_VER} https://github.com/bioconda/bioconda-recipes.git master'
}
}
}
}
stage('pull-request') {
environment {
TOKEN = credentials('github.com')
}
steps {
dir('auto-updated-bioconda-recipes') {
sh 'git commit -a -m "Automatically updated autobigs-cli bioconda recipe to ${TOOL_VER}."'
sh 'git push https://${TOKEN}@github.com/Syph-and-VPD-Lab/auto-updated-bioconda-recipes.git update-autobigs-cli-${TOOL_VER}'
sh 'git request-pull update-autobigs-cli-${TOOL_VER} https://github.com/bioconda/bioconda-recipes.git master'
}
}
}