Fixed a print statement typo
Change-Id: I4d25de3c8343a3b0f2caa09972587bd6c5a0ac92
diff --git a/jjb/pipeline/voltha/master/bbsim-tests.groovy b/jjb/pipeline/voltha/master/bbsim-tests.groovy
index b6b99f8..c056614 100644
--- a/jjb/pipeline/voltha/master/bbsim-tests.groovy
+++ b/jjb/pipeline/voltha/master/bbsim-tests.groovy
@@ -26,7 +26,13 @@
//---] GLOBAL [---//
//------------------//
def clusterName = "kind-ci"
-String branch_name = 'master'
+
+// -----------------------------------------------------------------------
+// -----------------------------------------------------------------------
+String getBranchName() {
+ String name = 'master'
+ return(name)
+}
// -----------------------------------------------------------------------
// Intent: Due to lack of a reliable stack trace, construct a literal.
@@ -34,6 +40,7 @@
// -----------------------------------------------------------------------
def getIam(String func)
{
+ String branch_name = getBranchName()
String src = [
'ci-management',
'jjb',
@@ -107,6 +114,7 @@
def volthaNamespace = "voltha"
def logsDir = "$WORKSPACE/${testTarget}"
+ /*
stage('IAM')
{
script
@@ -117,8 +125,10 @@
println("${iam}: LEAVE")
}
}
-
- stage('Cleanup') {
+ */
+
+ stage('Cleanup')
+ {
if (teardown) {
timeout(15) {
script {
@@ -153,6 +163,7 @@
{
steps
{
+ String branch_name = getBranchName()
install_kind(branch_name)
}
}
@@ -192,8 +203,14 @@
) {
localCharts = true
}
+ String branch_name = getBranchName()
Boolean is_release = isReleaseBranch(branch)
- println(" ** localCharts=${localCharts}, branch_name=${branch_name}, isReleaseBranch=${is_release}")
+ println([
+ " ** localCharts=${localCharts}",
+ "branch_name=${branch_name}",
+ "branch=${branch}",
+ "branch=isReleaseBranch=${is_release}",
+ ].join(', '))
// NOTE temporary workaround expose ONOS node ports
def localHelmFlags = extraHelmFlags.trim()
@@ -405,21 +422,21 @@
stage('Create K8s Cluster')
{
- steps
+ steps
+ {
+ script
{
- script
- {
- def clusterExists = sh(
- returnStdout: true,
- script: """kind get clusters | grep "${clusterName}" | wc -l""")
+ def clusterExists = sh(
+ returnStdout: true,
+ script: """kind get clusters | grep "${clusterName}" | wc -l""")
- if (clusterExists.trim() == "0")
- {
- createKubernetesCluster([nodes: 3, name: clusterName])
- }
- } // script
- } // steps
- } // stage('Create K8s Cluster')
+ if (clusterExists.trim() == "0")
+ {
+ createKubernetesCluster([nodes: 3, name: clusterName])
+ }
+ } // script
+ } // steps
+ } // stage('Create K8s Cluster')
stage('Replace voltctl')
{
diff --git a/vars/showCommands.groovy b/vars/showCommands.groovy
index afb5edf..58108ea 100644
--- a/vars/showCommands.groovy
+++ b/vars/showCommands.groovy
@@ -45,6 +45,7 @@
'Ran to completion',
]
}
+ /*
catch (Exception err)
{
// Note the exception w/o failing
@@ -53,9 +54,10 @@
"${iam}: EXCEPTION ${err}",
].join('\n')
}
+ */
finally
{
- println("** ${iam}: $buffer")
+ println("** ${iam}: " + buffer.join(' '))
println("** ${iam}: Running ${command} LEAVE")
}
return