bbsim debugging
vars/dotkube.groovy
-------------------
o Hmmm: No such property: HOME for class: groovy.lang.Binding
o Could try and remove braces from around "${HOME}".
o Instead unquote the string for shell expansion and use '~' instead.
Change-Id: If2c9ff10f1f75e8ed6d92004b97f10c48b3e723e
diff --git a/vars/dotkube.groovy b/vars/dotkube.groovy
index 86fc9b6..73fc50f 100644
--- a/vars/dotkube.groovy
+++ b/vars/dotkube.groovy
@@ -61,8 +61,8 @@
// loader.go:223] Config not found: /home/jenkins/.kube/kind-kind-ci
stage('.kube/ debugging')
{
- sh("""/bin/ls -ld "${HOME}/.kube" """)
- sh("""find "${HOME}/.kube" -print0 | xargs -0 /bin/ls -ld""")
+ sh("""/bin/ls -ld ~.kube """)
+ sh("""find ~/.kube -print0 | xargs -0 /bin/ls -ld""")
// if (config['do-something']) {}
}
}