Update Nginx proxy settings for Gerrit/Jenkins during upgrade

Change-Id: I41e4baca8f6ec2c21617f5576bcc6799e74d38d3
Related-Prod: PROD-32128
diff --git a/upgrade-mcp-release.groovy b/upgrade-mcp-release.groovy
index 3a55011..fbac400 100644
--- a/upgrade-mcp-release.groovy
+++ b/upgrade-mcp-release.groovy
@@ -530,6 +530,11 @@
                 }
 
                 salt.enforceState(venvPepper, 'I@jenkins:client and not I@salt:master', 'jenkins.client', true)
+
+                // update Nginx proxy settings for Jenkins/Gerrit if needed
+                if (salt.testTarget(venvPepper, 'I@nginx:server:site:nginx_proxy_jenkins and I@nginx:server:site:nginx_proxy_gerrit')) {
+                    salt.enforceState(venvPepper, 'I@nginx:server:site:nginx_proxy_jenkins and I@nginx:server:site:nginx_proxy_gerrit', 'nginx.server', true, true, null, false, 60, 2)
+                }
             }
         }
         catch (Throwable e) {