From cbc6b1c8231b1fb9fe72eea94ae4b20ce04fad05 Mon Sep 17 00:00:00 2001 From: Illia Silin <98187287+illsilin@users.noreply.github.com> Date: Tue, 6 Dec 2022 13:09:51 -0800 Subject: [PATCH] Fix CI error. (#530) * ignore .git folder when doing clang-format * fix syntax * add backslashes before quotes * add path filter for several extensions [ROCm/composable_kernel commit: d072790fe27a5915d12b9172020b6b74e485aadf] --- Jenkinsfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 37e77d29e7..7b2e57c140 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -618,9 +618,9 @@ pipeline { stage('Clang Format') { agent{ label rocmnode("nogpu") } environment{ - execute_cmd = "find .. -iname \'*.h\' \ - -o -iname \'*.hpp\' \ - -o -iname \'*.cpp\' \ + execute_cmd = "find .. -not -path \'*.git*\' -iname \'*.h\' \ + -o -not -path \'*.git*\' -iname \'*.hpp\' \ + -o -not -path \'*.git*\' -iname \'*.cpp\' \ -o -iname \'*.h.in\' \ -o -iname \'*.hpp.in\' \ -o -iname \'*.cpp.in\' \