@@ -553,23 +553,23 @@ Helm-Deploy Current dCache build:
553553 needs :
554554 - Init dCache DB with old version
555555 script :
556- - |
556+ - |-
557557 tag=$CI_COMMIT_SHORT_SHA
558558 if [[ -n "$CI_COMMIT_TAG" ]]; then
559559 tag=$CI_COMMIT_TAG
560560 fi
561561 - helm repo add dcache ${DCACHE_HELM_REPO}
562562 - helm repo update
563563 - >
564- helm -n ${K8S_NAMESPACE} install ${HELM_OPTS} --wait
565- --set image.tag=${tag}
566- --set dcache.hsm.enabled=true
567- --set dcache.qos.enabled=true
568- --set image.registry =${CI_REGISTRY}
569- --set " dcache.env.JACOCO_OPTS=output=tcpserver\,address=127.0.0.1\,port=6300"
570- --set " dcache.pools={a,b}"
571- --values .ci/custom-helm-config.yaml
572- store dcache/dcache
564+ helm -n ${K8S_NAMESPACE} upgrade --install store dcache/dcache
565+ --wait
566+ --set image.registry=${CI_REGISTRY}
567+ --set image.repository=${CI_PROJECT_PATH}
568+ --set image.tag =${tag}
569+ --set dcache.hsm.enabled=true
570+ --set dcache.qos.enabled=true
571+ --set "dcache.env.JACOCO_OPTS=output=tcpserver\,address=0.0.0.0\,port=6300\,dumponexit=true"
572+ --values .ci/custom-helm-config.yaml
573573
574574Helm-Deploy Latest dCache Golden Release :
575575 stage : test_deploy
@@ -580,13 +580,13 @@ Helm-Deploy Latest dCache Golden Release:
580580 - helm repo add dcache ${DCACHE_HELM_REPO}
581581 - helm repo update
582582 - >
583- helm -n ${K8S_NAMESPACE} install ${HELM_OPTS} --wait
584- --set image.tag=${DCACHE_COMPATIBILITY_VERSION}
585- --set "dcache.env.JACOCO_OPTS=output=tcpserver\,address=0.0.0.0\,port=6300\,dumponexit=true"
586- --set "dcache.pools={d,f}"
587- --set dcache.door.enabled=false
588- --set image.registry=${CI_REGISTRY}
589- old-store dcache/dcache
583+ helm -n ${K8S_NAMESPACE} upgrade --install old-store dcache/dcache
584+ --wait
585+ --set image.registry=${CI_REGISTRY}
586+ --set image.repository=${CI_PROJECT_PATH}
587+ --set image.tag=${DCACHE_COMPATIBILITY_VERSION}
588+ --set "dcache.pools={d,f}"
589+ --set dcache.door.enabled=false
590590
591591Extract Coverage :
592592 stage : testenv_post
@@ -626,7 +626,8 @@ Extract Coverage:
626626
627627 echo "--- 6. TRIGGERING DUMP (If Possible) ---"
628628 kubectl -n $K8S_NAMESPACE cp "$JACOCO_CLI_PATH" "${POD}:/tmp/jacococli.jar"
629- if kubectl -n $K8S_NAMESPACE exec $POD -- /usr/bin/java -jar /tmp/jacococli.jar dump --address 127.0.0.1 --port 6300 --destfile /opt/dcache/var/log/jacoco-it.exec 2>/dev/null; then
629+ POD_IP=$(kubectl -n $K8S_NAMESPACE get pod $POD -o jsonpath='{.status.podIP}')
630+ if kubectl -n $K8S_NAMESPACE exec $POD -- /usr/bin/java -jar /tmp/jacococli.jar dump --address $POD_IP --port 6300 --destfile /tmp/jacoco-it.exec; then
630631 echo "[SUCCESS] Coverage dumped."
631632 kubectl -n $K8S_NAMESPACE cp "${POD}:/opt/dcache/var/log/jacoco-it.exec" "./integration-results/${POD}.exec"
632633 else
0 commit comments