Skip to content

Commit f0e66bc

Browse files
sydrawat01rishabNeu
authored andcommitted
fix: handle helm upgrade gracefully
1 parent 2a9224f commit f0e66bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Jenkinsfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ pipeline {
7171
ssh -i gke-compute -o StrictHostKeyChecking=no $USERNAME@$BASTION_IP kubectl get ns
7272
ssh -i gke-compute -o StrictHostKeyChecking=no $USERNAME@$BASTION_IP helm ls -n webapp -a
7373
ssh -i gke-compute -o StrictHostKeyChecking=no $USERNAME@$BASTION_IP cp -r csye7125-fall2023* webapp-helm-chart
74-
ssh -i gke-compute -o StrictHostKeyChecking=no $USERNAME@$BASTION_IP helm upgrade -n webapp webapp-helm-release webapp-helm-chart --set=imagePullSecrets.dockerConfig=$ROBOCOP
74+
ssh -i gke-compute -o StrictHostKeyChecking=no $USERNAME@$BASTION_IP helm upgrade -n webapp webapp-helm-release webapp-helm-chart --set=imagePullSecrets.dockerConfig=$ROBOCOP || echo "version already exists on the cluster"
7575
ssh -i gke-compute -o StrictHostKeyChecking=no $USERNAME@$BASTION_IP helm ls -n webapp -a
7676
ssh -i gke-compute -o StrictHostKeyChecking=no $USERNAME@$BASTION_IP rm -rf webapp-helm-chart*
7777
'''

0 commit comments

Comments
 (0)