Allowing for empty deb version for ADTRAN OLT
Also avoiding logging if OLT does not provide usr/pwd
Change-Id: I1b895bb1350c8865129e76909db040606c9d3ce0
diff --git a/Jenkinsfile-voltha-build b/Jenkinsfile-voltha-build
index c92d522..5f2c5cc 100644
--- a/Jenkinsfile-voltha-build
+++ b/Jenkinsfile-voltha-build
@@ -176,7 +176,8 @@
stage('Push Tech-Profile') {
for(int i=0; i < deployment_config.olts.size(); i++) {
def tech_prof_directory = "XGS-PON"
- if (deployment_config.olts[i].oltDebVersion.contains("asgvolt64")){
+ // If no debian package is specified we default to GPON for the ADTRAN OLT.
+ if (!deployment_config.olts[i].containsKey("oltDebVersion") || deployment_config.olts[i].oltDebVersion.contains("asgvolt64")){
tech_prof_directory = "GPON"
}
timeout(1) {