[VOL-2115] Use parameter to choose profile
- Change the profile name from multipleGem to 1T4GEM
Change-Id: I77d9dbd750f14f73455ca39efe0b3f81a1ed8072
diff --git a/Jenkinsfile-voltha-build b/Jenkinsfile-voltha-build
index 96a4765..0ffafd4 100644
--- a/Jenkinsfile-voltha-build
+++ b/Jenkinsfile-voltha-build
@@ -62,13 +62,13 @@
"""
}
}
- /*if ( params.configurePod )
+ if ( params.configurePod && params.profile != "Default") {
stage('Push Tech-Profile') {
timeout(1) {
out_push_tp = sh returnStatus: true, script: """
export KUBECONFIG=$WORKSPACE/${configBaseDir}/${configKubernetesDir}/${configFileName}.conf
etcd_container=\$(kubectl get pods -n voltha | grep voltha-etcd-cluster | awk 'NR==1{print \$1}')
- kubectl cp $WORKSPACE/voltha-system-tests/tests/data/${configFileName}-multipleGem.json voltha/\$etcd_container:/tmp/flexpod.json
+ kubectl cp $WORKSPACE/voltha-system-tests/tests/data/TechProfile-${profile}.json voltha/\$etcd_container:/tmp/flexpod.json
put_result=\$(kubectl exec -it \$etcd_container -n voltha -- /bin/sh -c 'cat /tmp/flexpod.json | ETCDCTL_API=3 etcdctl put service/voltha/technology_profiles/xgspon/64')
"""
return out_push_tp == 0
@@ -80,15 +80,16 @@
"""
return out_get_tp == 0
}
- }*/
- stage('Push Sadis-config') {
- timeout(1) {
- sadis_out = sh returnStatus: true, script: """
+ }
+ }
+ stage('Push Sadis-config') {
+ timeout(1) {
+ sadis_out = sh returnStatus: true, script: """
curl -sSL --user karaf:karaf -X POST -H Content-Type:application/json http://${deployment_config.nodes[0].ip}:30120/onos/v1/network/configuration --data @$WORKSPACE/voltha-system-tests/tests/data/${configFileName}-sadis.json
"""
return sadis_out == 0
- }
}
+ }
if ( params.reinstallOlt ) {
stage('Reinstall OLT software') {