Add missing quote, added func banner()
Change-Id: I7d9f0df308ce858ed659bffa8ce985cfdc8f1c10
diff --git a/jjb/pipeline/voltha/bbsim-tests.groovy b/jjb/pipeline/voltha/bbsim-tests.groovy
index 5fc14d4..9983ee9 100644
--- a/jjb/pipeline/voltha/bbsim-tests.groovy
+++ b/jjb/pipeline/voltha/bbsim-tests.groovy
@@ -88,6 +88,22 @@
}
// -----------------------------------------------------------------------
+// Intent: Display a message with visibility for logging
+// -----------------------------------------------------------------------
+String banner(String message) {
+ String iam = getIam('banner')
+
+ println("""
+
+** -----------------------------------------------------------------------
+** IAM: $iam
+** ${message}
+** -----------------------------------------------------------------------
+""")
+ return
+}
+
+// -----------------------------------------------------------------------
// Intent: Determine if working on a release branch.
// Note: Conditional is legacy, should also check for *-dev or *-pre
// -----------------------------------------------------------------------
@@ -472,18 +488,10 @@
// -----------------------------------------------------------------------
void collectArtifacts(exitStatus) {
script {
- String iam = getIam('collectArtifacts')
enter("exitStatus=${exitStatus}")
-
- println("""
-
-** -----------------------------------------------------------------------
-** IAM: $iam
-** collectArtifacts
-** -----------------------------------------------------------------------
-""")
+ banner('collectArtifacts')
}
-
+
dotkube(['debug':false])
getPodsInfo("$WORKSPACE/${exitStatus}")