Static check: Avoid static check vote to fail
The cpp check and check patch may fail for current checking policy, or
fail by the TF-M coding not align with Linux style completely.
This change will ignore the fail vote from static check and leave the
vote result decides by the build and test job.
Signed-off-by: Karl Zhang <karl.zhang@arm.com>
Change-Id: I52bc1d38ad7ccf7b7535791d915eab3247825896
diff --git a/jenkins/static.jpl b/jenkins/static.jpl
index dccdd09..b3a5784 100644
--- a/jenkins/static.jpl
+++ b/jenkins/static.jpl
@@ -37,8 +37,10 @@
}
stage("Trigger Build") {
parallel(["build":trigger("tf-m-build-and-test")])
- // If previously failed at static checks, mark this as a failure
+ // If previously failed at static checks, ignore the failure at this moment
+ // The cpp check and check patch may fail for current checking policy, or
+ // fail by the TF-M coding not align with Linux style completely.
if (status < 0 ) {
- error("Failing due to failed static checks.")
+ echo "Ignore the static checks failure."
}
}