You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by bn...@apache.org on 2022/02/18 20:44:37 UTC

[trafficserver-ci] branch main updated: Stop Gap: Run CentOS until .asf.yaml merged in. (#74)

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 d9b9d41  Stop Gap: Run CentOS until .asf.yaml merged in. (#74)
d9b9d41 is described below

commit d9b9d41744c20f292375c77d7c2a917513c37141
Author: Brian Neradt <br...@gmail.com>
AuthorDate: Fri Feb 18 14:44:31 2022 -0600

    Stop Gap: Run CentOS until .asf.yaml merged in. (#74)
    
    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 {