diff --git a/JenkinsFile b/JenkinsFile index 7fedf3a..62f8a57 100644 --- a/JenkinsFile +++ b/JenkinsFile @@ -96,7 +96,7 @@ node { for (Object legacyApp : legacyAppNames.trim().tokenize(',')) { def legacyAppName = legacyApp.toString().trim() if (legacyAppName != appName) { - sh "cf unmap-route ${legacyAppName} ${env.PHASE_ONE_PCF_DOMAIN} --hostname ${legacyAppName}" + sh "cf unmap-route ${legacyAppName} ${env.PHASE_ONE_PCF_DOMAIN} --hostname pz-docs" sh "cf delete -f ${legacyAppName} -r" } } @@ -144,7 +144,7 @@ node { for (Object legacyApp : legacyAppNames.trim().tokenize(',')) { def legacyAppName = legacyApp.toString().trim() if (legacyAppName != appName) { - sh "cf unmap-route ${legacyAppName} ${env.PHASE_TWO_PCF_DOMAIN} --hostname ${legacyAppName}" + sh "cf unmap-route ${legacyAppName} ${env.PHASE_TWO_PCF_DOMAIN} --hostname pz-docs" sh "cf delete -f ${legacyAppName} -r" } }