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 f9dfc59  Add autest runs to quiche branch builds (#147)
f9dfc59 is described below

commit f9dfc59b78bc945e821ad71051da5263b3713f11
Author: Brian Neradt <[email protected]>
AuthorDate: Sat Apr 15 20:29:47 2023 -0500

    Add autest runs to quiche branch builds (#147)
---
 jenkins/branch/quiche.pipeline | 34 ++++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)

diff --git a/jenkins/branch/quiche.pipeline b/jenkins/branch/quiche.pipeline
index 301036d..febcada 100644
--- a/jenkins/branch/quiche.pipeline
+++ b/jenkins/branch/quiche.pipeline
@@ -101,9 +101,43 @@ pipeline {
                                }
                        }
                }
+
+               stage('AuTests') {
+                       steps {
+                               echo 'Starting Unit (Catch) and Regression 
Tests'
+                               dir('src/tests') {
+                                       sh '''#!/bin/bash
+                                               set -x
+                                               set +e
+
+                                               export PATH=/opt/bin:${PATH}
+
+                                               
export_dir="${WORKSPACE}/output/${GITHUB_PR_BRANCH}"
+                                               mkdir -p ${export_dir}
+
+                                               ./autest.sh --ats-bin 
/tmp/ats/bin/ --sandbox /tmp/sandbox || true
+
+                                               if [ -n "$(ls -A 
/tmp/sandbox/)" ]; then
+                                                       cp -rf /tmp/sandbox/ 
${export_dir}/
+                                                       sudo chmod -R 777 
${WORKSPACE}
+                                                       exit 1
+                                               else
+                                                       sudo touch 
${export_dir}/No_autest_failures
+                                                       sudo chmod -R 777 
${WORKSPACE}
+                                                       exit 0
+                                               fi
+                                               '''
+                               }
+                       }
+               }
        }
 
        post {
+               always {
+                       // We exclude socket files because archiveArtifacts 
doesn't deal well with
+                       // their file type.
+                       archiveArtifacts artifacts: 'output/**/*', fingerprint: 
false, allowEmptyArchive: true, excludes: '**/*.sock, **/cache.db'
+               }
                cleanup {
                        cleanWs()
                }

Reply via email to