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 87e0365  Update fedora.pipeline
87e0365 is described below

commit 87e036553ab4ce0e454027adc81de6cbae70b336
Author: Evan Zelkowitz <[email protected]>
AuthorDate: Thu Sep 23 16:57:19 2021 -0600

    Update fedora.pipeline
---
 jenkins/github/fedora.pipeline | 44 ++++++++++++++++++++++++++++++++----------
 1 file changed, 34 insertions(+), 10 deletions(-)

diff --git a/jenkins/github/fedora.pipeline b/jenkins/github/fedora.pipeline
index 164fe11..81c86b8 100644
--- a/jenkins/github/fedora.pipeline
+++ b/jenkins/github/fedora.pipeline
@@ -1,24 +1,41 @@
 pipeline {
     agent {
         docker {
-            image 'ats/old_ci/fedora:30'
-            args '-v /home/rooter/ccache:/tmp/ccache:rw'
+            image 'ats/fedora:32'
+            //registryUrl 'https://controller.trafficserver.org/'
+            args '-v ${HOME}/ccache:/tmp/ccache:rw'
             label 'linux'
         }
     }
     environment {
         CCACHE_DIR = "/tmp/ccache"
+        CCACHE_BASEDIR = "${WORKSPACE}"        
     }
     stages {
         stage('Clone') {
             steps {
                 dir('src') {
-                    
                     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'
             }
@@ -27,12 +44,19 @@ pipeline {
             steps {
                 echo 'Starting build'
                 dir('src') {
-                    sh('autoreconf -fiv')
-                    sh('./configure --enable-experimental-plugins 
--enable-example-plugins --prefix=/tmp/ats/ --with-user=jenkins --enable-werror 
--enable-debug --enable-wccp --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 ci/jenkins/bin/environment.sh && source 
ci/jenkins/bin/build.sh && ~jenkins/bin/regression.sh
+                        autoreconf -fiv
+                        ./configure --enable-experimental-plugins 
--enable-example-plugins --prefix=/tmp/ats/ --enable-werror --enable-debug 
--enable-wccp --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