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 8baa33f  Ignore lib/systemtap for various formatting scripts (#347)
8baa33f is described below

commit 8baa33fd6fe13b3127529df63b12724ed8c81e1c
Author: Brian Neradt <[email protected]>
AuthorDate: Wed May 8 11:05:47 2024 -0600

    Ignore lib/systemtap for various formatting scripts (#347)
---
 jenkins/bin/format.sh            | 2 ++
 jenkins/branch/coverage.pipeline | 1 +
 jenkins/github/format.pipeline   | 4 ++--
 3 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/jenkins/bin/format.sh b/jenkins/bin/format.sh
index 6f148bd..7055597 100755
--- a/jenkins/bin/format.sh
+++ b/jenkins/bin/format.sh
@@ -22,6 +22,7 @@ cd "${WORKSPACE}/src"
 # First, make sure there are no trailing WS!!!
 git grep -IE ' +$' | \
     fgrep -v 'lib/yamlcpp' | \
+    fgrep -v 'lib/systemtap' | \
     fgrep -v '.gold:' | \
     fgrep -v '.test_input'
 if [ "1" != "$?" ]; then
@@ -34,6 +35,7 @@ echo "Success! No trailing whitespace"
 # Unix format please!
 git grep -IE $'\r$' | \
     fgrep -v 'lib/yamlcpp' | \
+    fgrep -v 'lib/systemtap' | \
     fgrep -v '.test_input'
 if [ "1" != "$?" ]; then
     echo "Error: Please make sure to run dos2unix on the above file(s)"
diff --git a/jenkins/branch/coverage.pipeline b/jenkins/branch/coverage.pipeline
index e51afbb..1c76c39 100644
--- a/jenkins/branch/coverage.pipeline
+++ b/jenkins/branch/coverage.pipeline
@@ -225,6 +225,7 @@ pipeline {
                                                                '/usr/*' \
                                                                '*/TestBox.h' \
                                                                
'*/lib/yamlcpp/*' \
+                                                               
'*/lib/systemtap/*' \
                                                                '*/test/*' \
                                                                '*/test_*' \
                                                                '*/tests/*' \
diff --git a/jenkins/github/format.pipeline b/jenkins/github/format.pipeline
index 0569e4b..cc86c04 100644
--- a/jenkins/github/format.pipeline
+++ b/jenkins/github/format.pipeline
@@ -59,14 +59,14 @@ pipeline {
                 dir('src') {
                     sh '''#!/bin/bash
                             set -x
-                            git grep -IE ' +$' | fgrep -v 'lib/yamlcpp' | 
fgrep -v '.gold:' | fgrep -v '.test_input'
+                            git grep -IE ' +$' | fgrep -v 'lib/yamlcpp' | 
fgrep -v 'lib/systemtap' | fgrep -v '.gold:' | fgrep -v '.test_input'
                             if [ "1" != "$?" ]; then
                                 echo "Error: Trailing whitespaces are not 
allowed!"
                                 echo "Error: Please run: git grep -IE ' +$'"
                                 exit 1
                             fi
                             echo "Success! No trailing whitespace"
-                            git grep -IE $'\r$' | fgrep -v 'lib/yamlcpp' | 
fgrep -v '.test_input'
+                            git grep -IE $'\r$' | fgrep -v 'lib/yamlcpp' | 
fgrep -v 'lib/systemtap' | fgrep -v '.test_input'
                             if [ "1" != "$?" ]; then
                                 echo "Error: Please make sure to run dos2unix 
on the above file(s)"
                                 exit 1

Reply via email to