This is an automated email from the ASF dual-hosted git repository.

bneradt pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/trafficserver-ci.git


The following commit(s) were added to refs/heads/main by this push:
     new 8b29044  Add CentOS to the PR CI jobs (#166)
8b29044 is described below

commit 8b290442a0e3ea8bac94b3e7c8bb9a9a282afba0
Author: Brian Neradt <[email protected]>
AuthorDate: Thu May 18 17:09:22 2023 -0500

    Add CentOS to the PR CI jobs (#166)
---
 jenkins/github/ghprb-toplevel.pipeline | 19 ++++++++++++++++++-
 jenkins/github/toplevel.pipeline       | 19 ++++++++++++++++++-
 2 files changed, 36 insertions(+), 2 deletions(-)

diff --git a/jenkins/github/ghprb-toplevel.pipeline 
b/jenkins/github/ghprb-toplevel.pipeline
index f8ad4a8..483345e 100644
--- a/jenkins/github/ghprb-toplevel.pipeline
+++ b/jenkins/github/ghprb-toplevel.pipeline
@@ -167,7 +167,24 @@ 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('CMake Build') {
                     when {
                         anyOf {
diff --git a/jenkins/github/toplevel.pipeline b/jenkins/github/toplevel.pipeline
index ac6ac6f..d95ada5 100644
--- a/jenkins/github/toplevel.pipeline
+++ b/jenkins/github/toplevel.pipeline
@@ -164,7 +164,24 @@ 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('CMake Build') {
                                        when {
                                                anyOf {

Reply via email to