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/volthaDeploy.groovy b/vars/volthaDeploy.groovy
index 8cb2622..cf76133 100644
--- a/vars/volthaDeploy.groovy
+++ b/vars/volthaDeploy.groovy
@@ -1,8 +1,15 @@
+#!/usr/bin/env groovy
+
// this keyword is dedicated to deploy a single VOLTHA stack with infra
// If you need to deploy different configurations you can use the volthaInfraDeploy and volthaStackDeploy keywords
def call(Map config) {
+
+ String iam = 'vars/volthaDeploy.groovy'
+ println("** ${iam}: ENTER")
+
// note that I can't define this outside the function as there's no global scope in Groovy
+ // [joey] A class method or library call can be used in place of globals, fqdn needed.
def defaultConfig = [
onosReplica: 1,
atomixReplica: 1,
@@ -60,4 +67,6 @@
if (cfg.withVolthaStack) {
volthaStackDeploy(cfg)
}
+
+ println("** ${iam}: LEAVE")
}