Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes Jenkinsfile #1431

Merged
merged 1 commit into from
Nov 21, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 5 additions & 6 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -200,11 +200,11 @@ pipeline {
stage('Reset STG-OSS environment') {
when { not {branch 'latest'}}
steps {
sh """
aws eks --region eu-central-1 update-kubeconfig --name staging-cluster
helm uninstall my-memphis --kubeconfig ~/.kube/config -n memphis
kubectl get pvc -n memphis | grep -v NAME| awk '{print\$1}' | while read vol; do kubectl delete pvc \$vol -n memphis; done
"""
sh """aws eks --region eu-central-1 update-kubeconfig --name staging-cluster"""
catchError(buildResult: 'SUCCESS', message: 'helm uninstall failed because memphis was not deployed to this namespace') {
sh """helm uninstall my-memphis --kubeconfig ~/.kube/config -n memphis"""
}
sh """kubectl get pvc -n memphis | grep -v NAME| awk '{print\$1}' | while read vol; do kubectl delete pvc \$vol -n memphis; done"""
}
}

Expand All @@ -227,7 +227,6 @@ pipeline {
steps {
sh """
until kubectl get pods --selector=app.kubernetes.io/name=memphis -o=jsonpath="{.items[*].status.containerStatuses[*].ready}" -n memphis | grep -v "false" ; do sleep 1; done
sleep 5
nohup kubectl port-forward service/memphis 6666:6666 9000:9000 7770:7770 --namespace memphis &
"""
}
Expand Down