VOL-4857 - add debugging
vars/installVoltctl.groovy
--------------------------
o Display release vars in a single statement to avoid jenkins inserting 'echo' between each.
vars/setOnosLogLevels.groovy
vars/volthaDeploy.groovy
vars/volthaInfraDeploy.groovy
vars/volthaStackDeploy.groovy
-----------------------------
o Added an ENTER/LEAVE printf to identify running script.
o Consistent use of a shebang path.
o Use pgrep to display port forwarding prior to termination
+ command pipeline can be shorted, let pgrep/pkill do heavy lifting.
o Inlined temporary debugging to view output pipelines are acting on.
+ Debugging etcd:port=null and a few other anomolies.
Change-Id: I40d6b87519cd0fc84406a8a8a76f244da0096496
diff --git a/vars/installVoltctl.groovy b/vars/installVoltctl.groovy
index 6236217..cacf6e8 100644
--- a/vars/installVoltctl.groovy
+++ b/vars/installVoltctl.groovy
@@ -2,7 +2,7 @@
def call(String branch) {
- String iam = 'vars/installVoltha.groovy'
+ String iam = 'vars/installVoltctl.groovy'
println("** ${iam}: ENTER")
// This logic seems odd given we branch & tag repositories
@@ -19,8 +19,10 @@
boolean has_binding = binding.hasVariable('WORKSPACE')
// WIP: Probe to find out what is available
- print(" ** have_released: ${have_released}")
- print(" ** has_binding: ${has_binding}")
+ print("""
+** have_released: ${have_released}
+** has_binding: ${has_binding}
+""")
// ---------------------------------------------
// Sanity check: released version must be frozen
@@ -99,7 +101,7 @@
voltctl version --clientonly
# Should use diff or md5sum here
- /bin/ls -l \$(which voltha)
+ /bin/ls -l \$(which voltctl)
"""
println("** ${iam}: LEAVE")