From 468fc2530c8343ad0889d32984de27e2e24d0f99 Mon Sep 17 00:00:00 2001 From: bneradt Date: Fri, 18 Feb 2022 14:41:39 -0600 Subject: [PATCH] Stop Gap: Run CentOS until .asf.yaml merged in. We can't merge in PRs without CentOS running until we merge in .asf.yaml. --- jenkins/github/ghprb-toplevel.pipeline | 17 +++++++++++++++++ jenkins/github/toplevel.pipeline | 17 +++++++++++++++++ 2 files changed, 34 insertions(+) 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 {