Fix id call in pgrep_port_forward
The command that gives the user id is id, not uid.
Fixes an error that looks like this:
/w/workspace/verify_voltha-system-tests_sanity-test@tmp/durable-ce8d6054/script.sh: line 2: uid: command not found
Also include an extra change in jjb/ to trigger jenkins job in vars/.
Fixes: 74ec08c3 ("[VOL-5170] - Test debugging openolt-adapter-sanity-test-voltha")
Signed-off-by: Roger Luethi <roger@opennetworking.org>
Change-Id: I84432f384b819412aac13b5edc7a2da655c10170
diff --git a/jjb/pipeline/voltha/physical-build.groovy b/jjb/pipeline/voltha/physical-build.groovy
index 17d48b3..9dfb588 100755
--- a/jjb/pipeline/voltha/physical-build.groovy
+++ b/jjb/pipeline/voltha/physical-build.groovy
@@ -16,6 +16,7 @@
// NOTE we are importing the library even if it's global so that it's
// easier to change the keywords during a replay
+
library identifier: 'cord-jenkins-libraries@master',
retriever: modernSCM([
$class: 'GitSCMSource',
diff --git a/vars/pgrep_port_forward.groovy b/vars/pgrep_port_forward.groovy
index e0e4dd4..a5142c6 100644
--- a/vars/pgrep_port_forward.groovy
+++ b/vars/pgrep_port_forward.groovy
@@ -76,7 +76,7 @@
// but logic is prone to exception so (YUCK!) hardcode for now.
script : """
-pgrep --uid \$(uid -u) --list-full --full 'port-forw' || true
+pgrep --uid \$(id -u) --list-full --full 'port-forw' || true
""",
)
return(ans)