changes to pipeline to pull tagged version of ofagent for release jobs

Change-Id: I9da2eacb332a1040275168e61da6f00068b7d757
diff --git a/Jenkinsfile-voltha-bal31-build b/Jenkinsfile-voltha-bal31-build
index 0137a61..40a7d4e 100644
--- a/Jenkinsfile-voltha-bal31-build
+++ b/Jenkinsfile-voltha-bal31-build
@@ -24,7 +24,12 @@
                 sh returnStdout: true, script: "git clone -b master ${cordRepoUrl}/helm-repo-tools"
                 sh returnStdout: true, script: "git clone -b master ${cordRepoUrl}/${configBaseDir}"
                 sh returnStdout: true, script: "git clone -b master ${cordRepoUrl}/voltha-system-tests"
-                sh returnStdout: true, script: "git clone https://github.com/ciena/kind-voltha.git"
+                if ( params.released ) {
+                    sh returnStdout: true, script: "git clone https://github.com/ciena/kind-voltha.git -b v2.2"   
+                }
+                else {
+                    sh returnStdout: true, script: "git clone https://github.com/ciena/kind-voltha.git"
+                }
                 if ( params.workFlow == "DT" ) {
                     deployment_config = readYaml file: "${configBaseDir}/${configDeploymentDir}/${configFileName}-DT.yaml"
                 }
@@ -89,6 +94,8 @@
                         export VOLTHA_ADAPTER_SIM_CHART=voltha-helm-charts/voltha-adapter-simulated
                         export VOLTHA_CHART=voltha-helm-charts/voltha
                         cd $WORKSPACE/kind-voltha
+                        source releases/voltha-2.2
+                        cd $WORKSPACE/kind-voltha
                     elif ( ${ofagentGo} ); then
                         export EXTRA_HELM_FLAGS='-f $WORKSPACE/${configBaseDir}/${configKubernetesDir}/voltha/${configFileName}-ofagent-go.yml'
                     else