Prep work for creating jenkins v2.10 and 2.11 job views.
jjb/pipeline/voltha/master/*
----------------------------
o Update copyright notice to be current.
jjb/pipeline/voltha/voltha-2.10/bbsim-tests.groovy
--------------------------------------------------
o Debugging: augment script to self-identify
o Debugging: determine if a shell command is available.
jjb/verify/bbsim.yaml
---------------------
o Add a version definition and bbsim test job for 2.10 & 2.11
vars/installVoltctl.groovy
--------------------------
o Convert if-then-else block into a dictionary to simplify
version detection logic.
o Minor cleanups for the shellcheck tool
o Quote environment vars
o Fold long shell pipelines across multiple lines for readability.
o [DEBUG] Added enter/leave printlns() to help identify a problem
source from context in the log. Null appeared in a kubectl setup
for etcd.
Change-Id: I3fa824dffc1f37614c569faa1e1829a7466202b3
diff --git a/jjb/pipeline/voltha/voltha-2.10/bbsim-tests.groovy b/jjb/pipeline/voltha/voltha-2.10/bbsim-tests.groovy
index edfcb6c..5f68dbc 100755
--- a/jjb/pipeline/voltha/voltha-2.10/bbsim-tests.groovy
+++ b/jjb/pipeline/voltha/voltha-2.10/bbsim-tests.groovy
@@ -1,5 +1,4 @@
-// Copyright 2021-present Open Networking Foundation
-//
+// Copyright 2021-2022 Open Networking Foundation (ONF) and the ONF Contributors//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
@@ -27,7 +26,32 @@
def infraNamespace = "default"
def volthaNamespace = "voltha"
def logsDir = "$WORKSPACE/${testTarget}"
- stage('Cleanup') {
+
+ stage('IAM')
+ {
+ script
+ {
+ String iam = [
+ 'ci-management',
+ 'jjb',
+ 'pipeline',
+ 'voltha',
+ 'voltha-2.10',
+ 'bbsim-tests.groovy'
+ ].join('/')
+ println("** ${iam}: ENTER")
+
+ String cmd = "which pkill"
+ def stream = sh(
+ returnStatus:false,
+ returnStdout: true,
+ script: cmd)
+ println(" ** ${cmd}:\n${stream}")
+ println("** ${iam}: LEAVE")
+ }
+ }
+
+ stage('Cleanup') {
if (teardown) {
timeout(15) {
script {
@@ -311,3 +335,5 @@
}
}
}
+
+// EOF