commit | 57735a89e2dc9f6efe5286c17c0d4e3b79ec45ed | [log] [tgz] |
---|---|---|
author | Andrea Campanella <andrea@opennetworking.org> | Tue May 18 13:22:49 2021 +0200 |
committer | Matteo Scandolo <matteo.scandolo@gmail.com> | Tue May 18 08:50:05 2021 -0700 |
tree | d662a928cb97189db3779c56bcd21668b36f392f | |
parent | ef2e99b9357979f1dfd0069e3bc4d32d585d260c [diff] [blame] |
[VOL-4114] Always sourcing the release file before kind-voltha commands Change-Id: I123957db6e1212583c29a8b0c873cfcde721a390
diff --git a/jjb/pipeline/voltha/voltha-2.7/voltha-dt-physical-build-and-tests.groovy b/jjb/pipeline/voltha/voltha-2.7/voltha-dt-physical-build-and-tests.groovy index 42e253c..2ac34bf 100644 --- a/jjb/pipeline/voltha/voltha-2.7/voltha-dt-physical-build-and-tests.groovy +++ b/jjb/pipeline/voltha/voltha-2.7/voltha-dt-physical-build-and-tests.groovy
@@ -55,6 +55,12 @@ stage ('Initialize') { steps { sh returnStdout: false, script: """ + if [ "${branch}" != "master" ]; then + echo "on branch: ${branch}, sourcing kind-voltha/releases/${branch}" + source "$WORKSPACE/kind-voltha/releases/${branch}" + else + echo "on master, using default settings for kind-voltha" + fi test -e $WORKSPACE/voltha/kind-voltha/voltha && cd $WORKSPACE/voltha/kind-voltha && ./voltha down cd $WORKSPACE rm -rf $WORKSPACE/*