mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-27 10:22:08 +00:00
Updating clang_patch to compare to origin/master instead of local master.
This commit is contained in:
4
firmware/ec/Jenkinsfile
vendored
4
firmware/ec/Jenkinsfile
vendored
@@ -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'
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user