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 2023/03/31 20:38:10 UTC

[trafficserver-ci] branch main updated: Add cmake to the toplevel GitHub job. (#137)

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 24dc76d  Add cmake to the toplevel GitHub job. (#137)
24dc76d is described below

commit 24dc76db70dd62795b771b8e320776c8a263f09f
Author: Brian Neradt <br...@gmail.com>
AuthorDate: Fri Mar 31 15:38:06 2023 -0500

    Add cmake to the toplevel GitHub job. (#137)
---
 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..f8ad4a8 100644
--- a/jenkins/github/ghprb-toplevel.pipeline
+++ b/jenkins/github/ghprb-toplevel.pipeline
@@ -167,6 +167,23 @@ pipeline {
                         }
                     }
                 }
+                
+                stage('CMake Build') {
+                    when {
+                        anyOf {
+                            environment name: 'ghprbCommentBody', value: '[approve ci]'
+                            expression { ghprbCommentBody ==~ /.*cmake.*/ }
+                        }
+                    }                    
+                    steps {
+                        script {
+                            result = buildJob('CMake', 'Github_Builds/cmake')
+                            if (result == 'FAILURE') {
+                                error('CMake build failed')
+                            }
+                        }
+                    }
+                }
 
                 //stage('FreeBSD Build') {
                 //    when {
diff --git a/jenkins/github/toplevel.pipeline b/jenkins/github/toplevel.pipeline
index 7d3f895..ac6ac6f 100644
--- a/jenkins/github/toplevel.pipeline
+++ b/jenkins/github/toplevel.pipeline
@@ -165,6 +165,23 @@ pipeline {
 					}
 				}
 				
+				stage('CMake Build') {
+					when {
+						anyOf {
+							environment name: 'GITHUB_PR_COMMENT_BODY_MATCH', value: ''
+							expression { GITHUB_PR_COMMENT_BODY_MATCH ==~ /.*cmake.*/ }
+						}
+					}                    
+					steps {
+						script {
+							result = buildJob('CMake', 'Github_Builds/cmake')
+							if (result == 'FAILURE') {
+								error('CMake build failed')
+							}
+						}
+					}
+				}
+				
 				stage('OSX Build') {
 					when {
 						anyOf {