Updating clang_patch to compare to origin/master instead of local master.

This commit is contained in:
mdlewisfb
2018-11-13 10:58:15 -08:00
parent e95a47e514
commit 9119a7582a
2 changed files with 2 additions and 4 deletions

View File

@@ -9,9 +9,7 @@ node {
try {
stage('Static Analysis') {
dir ("firmware") {
sh 'bash utilities/jenkins/clang_patch'
}
sh 'bash firmware/utilities/jenkins/clang_patch'
}
} catch (err) {
currentBuild.result = 'ERROR'

View File

@@ -1,7 +1,7 @@
#!/bin/bash
# Get all files that are different from master and only lint those.
fileList=`git --no-pager diff --name-only HEAD master ./firmware/ec | grep ".\.c$\|.\.h$"`
fileList=`git --no-pager diff --name-only HEAD origin/master ./firmware/ec | grep ".\.c$\|.\.h$"`
for f in $fileList; do
clang-format -style=file -i ${f}
done