"torchvision/csrc/vscode:/vscode.git/clone" did not exist on "9fc6522d9a198f756b7d98a9f857d4398ce44449"
Unverified Commit d072790f authored by Illia Silin's avatar Illia Silin Committed by GitHub
Browse files

Fix CI error. (#530)

* ignore .git folder when doing clang-format

* fix syntax

* add backslashes before quotes

* add path filter for several extensions
parent d1567094
...@@ -618,9 +618,9 @@ pipeline { ...@@ -618,9 +618,9 @@ pipeline {
stage('Clang Format') { stage('Clang Format') {
agent{ label rocmnode("nogpu") } agent{ label rocmnode("nogpu") }
environment{ environment{
execute_cmd = "find .. -iname \'*.h\' \ execute_cmd = "find .. -not -path \'*.git*\' -iname \'*.h\' \
-o -iname \'*.hpp\' \ -o -not -path \'*.git*\' -iname \'*.hpp\' \
-o -iname \'*.cpp\' \ -o -not -path \'*.git*\' -iname \'*.cpp\' \
-o -iname \'*.h.in\' \ -o -iname \'*.h.in\' \
-o -iname \'*.hpp.in\' \ -o -iname \'*.hpp.in\' \
-o -iname \'*.cpp.in\' \ -o -iname \'*.cpp.in\' \
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment