Jenkins: Add timestamps wrapper
Signed-off-by: Xinyu Zhang <xinyu.zhang@arm.com>
Change-Id: Idfbf9ea149d664b5451b3a938fcc4e5d4e601485
diff --git a/jenkins/static.jpl b/jenkins/static.jpl
index 95537a3..a7fe36d 100644
--- a/jenkins/static.jpl
+++ b/jenkins/static.jpl
@@ -23,22 +23,24 @@
def status = 1
-stage("Static Checks") {
- def checks = [:]
- checks["cppcheck"] = trigger("tf-m-cppcheck")
- checks["checkpatch"] = trigger("tf-m-checkpatch")
- checks["static-checks"] = trigger("tf-m-static-checks")
- try {
- parallel(checks)
- } catch (Exception e) {
- status = -1
- echo "Failed static checks, continuing with build."
+timestamps {
+ stage("Static Checks") {
+ def checks = [:]
+ checks["cppcheck"] = trigger("tf-m-cppcheck")
+ checks["checkpatch"] = trigger("tf-m-checkpatch")
+ checks["static-checks"] = trigger("tf-m-static-checks")
+ try {
+ parallel(checks)
+ } catch (Exception e) {
+ status = -1
+ echo "Failed static checks, continuing with build."
+ }
}
-}
-stage("Trigger Build") {
- parallel(["build":trigger("tf-m-build-and-test")])
- // If previously failed at static checks, mark this as a failure
- if (status < 0 ) {
- error("Failing due to failed static checks.")
+ stage("Trigger Build") {
+ parallel(["build":trigger("tf-m-build-and-test")])
+ // If previously failed at static checks, mark this as a failure
+ if (status < 0 ) {
+ error("Failing due to failed static checks.")
+ }
}
}