diff --git a/jenkins/github/ghprb-toplevel.pipeline b/jenkins/github/ghprb-toplevel.pipeline index 45e036a..912ec2e 100644 --- a/jenkins/github/ghprb-toplevel.pipeline +++ b/jenkins/github/ghprb-toplevel.pipeline @@ -151,6 +151,23 @@ pipeline { } } + stage('CentOS Build') { + when { + anyOf { + environment name: 'ghprbCommentBody', value: '[approve ci]' + expression { ghprbCommentBody ==~ /.*centos.*/ } + } + } + steps { + script { + result = buildJob('CentOS', 'Github_Builds/centos') + if (result == 'FAILURE') { + error('CentOS build failed') + } + } + } + } + stage('Rocky Build') { when { anyOf { diff --git a/jenkins/github/toplevel.pipeline b/jenkins/github/toplevel.pipeline index 5d4952d..36fb8a8 100644 --- a/jenkins/github/toplevel.pipeline +++ b/jenkins/github/toplevel.pipeline @@ -136,6 +136,23 @@ pipeline { } } + stage('CentOS Build') { + when { + anyOf { + environment name: 'GITHUB_PR_COMMENT_BODY_MATCH', value: '' + expression { GITHUB_PR_COMMENT_BODY_MATCH ==~ /.*centos.*/ } + } + } + steps { + script { + result = buildJob('CentOS', 'Github_Builds/centos') + if (result == 'FAILURE') { + error('CentOS build failed') + } + } + } + } + stage('Rocky Build') { when { anyOf {