Build PODs with released versions
Change-Id: I7c6614b4f9abe11aeca4f089ba9aa77d827992c7
diff --git a/Jenkinsfile-voltha-build b/Jenkinsfile-voltha-build
index ef6a883..1fb58fd 100644
--- a/Jenkinsfile-voltha-build
+++ b/Jenkinsfile-voltha-build
@@ -53,14 +53,20 @@
}
}
}
- stage('Install Voltha') {
+ stage('Install Voltha') {
timeout(10) {
sh returnStdout: true, script: """
export KUBECONFIG=$WORKSPACE/${configBaseDir}/${configKubernetesDir}/${configFileName}.conf
cd kind-voltha/
+ if ( ${released} ); then
+ EXTRA_HELM_FLAGS="--set defaults.image_tag=null" VOLTHA_LOG_LEVEL=DEBUG WITH_SIM_ADAPTERS=n WITH_RADIUS=y WITH_TP=yes DEPLOY_K8S=no INSTALL_KUBECTL=no INSTALL_HELM=no FANCY=0 ./voltha up
+ fi
EXTRA_HELM_FLAGS='-f $WORKSPACE/${configBaseDir}/${configKubernetesDir}/voltha/${configFileName}.yml' VOLTHA_LOG_LEVEL=DEBUG WITH_SIM_ADAPTERS=n WITH_RADIUS=y WITH_TP=yes DEPLOY_K8S=no INSTALL_KUBECTL=no INSTALL_HELM=no FANCY=0 ./voltha up
+ kubectl get pods --all-namespaces -o jsonpath="{range .items[*].status.containerStatuses[*]}{.image}{'\\t'}{.imageID}{'\\n'}" | sort | uniq -c
+ kubectl get nodes -o wide
+ kubectl get pods -n voltha -o wide
"""
- }
+ }
}
if ( params.configurePod && params.profile != "Default") {
stage('Push Tech-Profile') {