From 14d0726cb74bd1de9c14dfdf3d5381fd4372b3b5 Mon Sep 17 00:00:00 2001 From: Puneet Kala Date: Tue, 29 Nov 2022 21:19:42 +0530 Subject: [PATCH] PMM-7 Handle the upgrade failure --- pmm/pmm2-upgrade-tests.groovy | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pmm/pmm2-upgrade-tests.groovy b/pmm/pmm2-upgrade-tests.groovy index c7f0009c5c..3fa9612ac4 100644 --- a/pmm/pmm2-upgrade-tests.groovy +++ b/pmm/pmm2-upgrade-tests.groovy @@ -186,6 +186,16 @@ pipeline { ''' } } + stage('Make changes for nginx for upgrade for <= 32') { + when { + expression { getMinorVersion(DOCKER_VERSION) <= 32 } + } + steps { + sh ''' + docker exec pmm-server sed -i 's/- nginx/- "nginx*"/' /usr/share/pmm-update/ansible/playbook/tasks/update.yml + ''' + } + } stage('Change admin password for <= 2.26') { when { expression { getMinorVersion(DOCKER_VERSION) <= 26 }