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

eze 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 35d37a1  Update centos.pipeline
35d37a1 is described below

commit 35d37a1ef469fc3ae53d06144e16ff4da8d8dd6a
Author: Evan Zelkowitz <[email protected]>
AuthorDate: Thu Sep 23 16:55:25 2021 -0600

    Update centos.pipeline
---
 jenkins/github/centos.pipeline | 43 ++++++++++++++++++++++++++++++++++--------
 1 file changed, 35 insertions(+), 8 deletions(-)

diff --git a/jenkins/github/centos.pipeline b/jenkins/github/centos.pipeline
index a769cc3..dc4569b 100644
--- a/jenkins/github/centos.pipeline
+++ b/jenkins/github/centos.pipeline
@@ -4,8 +4,13 @@ pipeline {
             image 'controller.trafficserver.org/ats/centos:8'
             registryUrl 'https://controller.trafficserver.org/'
             label 'docker'
+            args '-v ${HOME}/ccache:/tmp/ccache:rw'
         }
     }
+    environment {
+        CCACHE_DIR = "/tmp/ccache"
+        CCACHE_BASEDIR = "${WORKSPACE}"
+    }
     stages {
         stage('Clone') {
             steps {
@@ -13,8 +18,24 @@ pipeline {
                     echo "${sha1}"
                     checkout([$class: 'GitSCM',
                         branches: [[name: sha1]],
-                        extensions: [],
+                        extensions: [
+                            // We have to set an idenity for the merge step 
because Git requires
+                            // the user.name and user.email to be set to do a 
merge.
+                            [$class: "UserIdentity",
+                                name: "ATS CI User",
+                                email: "[email protected]"
+                            ],
+                            [$class: "PreBuildMerge",
+                                options: [
+                                    mergeTarget: "${GITHUB_PR_TARGET_BRANCH}",
+                                    fastForwardMode: "NO_FF",
+                                    mergeRemote: "origin",
+                                    mergeStrategy: "DEFAULT"
+                                ]
+                            ],
+                        ],
                         userRemoteConfigs: [[url: github_url, refspec: 
'+refs/pull/*:refs/remotes/origin/pr/*']]])
+                    sh 'git show -n 10 --decorate --graph --oneline --no-patch'
                 }
                 echo 'Finished Cloning'
             }
@@ -23,13 +44,19 @@ pipeline {
             steps {
                 echo 'Starting build'
                 dir('src') {
-                    sh('source /opt/rh/gcc-toolset-9/enable')
-                    sh('autoreconf -fiv')
-                    sh('./configure --enable-experimental-plugins 
--enable-example-plugins --prefix=/tmp/ats/ --with-user=jenkins --enable-werror 
--enable-debug --enable-luajit')
-                    sh('make -j4 V=1 Q=')
-                    sh('make -j 2 check VERBOSE=Y V=1')
-                    sh('make install')
-                    sh('/tmp/ats/bin/traffic_server -K -k -R 1')
+                    // For Jenkins debugging. We comit to the top of README in 
our debug PRs.
+                    sh('head README')
+
+                    sh '''#!/bin/bash
+                        set -x
+                        source /opt/rh/gcc-toolset-9/enable
+                        autoreconf -fiv
+                        ./configure --with-openssl=/opt/openssl-quic 
--enable-experimental-plugins --enable-example-plugins --prefix=/tmp/ats/ 
--enable-werror --enable-debug --enable-luajit --enable-ccache
+                        make -j4 V=1 Q=
+                        make -j 2 check VERBOSE=Y V=1
+                        make install
+                        /tmp/ats/bin/traffic_server -K -k -R 1
+                        '''
                 }
             }
         }

Reply via email to