Skip to content
This repository has been archived by the owner on Jul 15, 2020. It is now read-only.

Commit

Permalink
27747 Prevent Orphaned Routes
Browse files Browse the repository at this point in the history
  • Loading branch information
go0ty authored Sep 7, 2017
1 parent ebb19e1 commit f741d95
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions JenkinsFile
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ node {
sh "cf start ${appName}"
} catch (Exception e) {
//sh "cf logs --recent ${appName}"
sh "cf delete ${appName} -f"
sh "cf delete ${appName} -f -r"
error("Error during application start. Deleting ${appName} and failing the build.")
}
}
Expand All @@ -97,7 +97,7 @@ node {
def legacyAppName = legacyApp.toString().trim()
if (legacyAppName != appName) {
sh "cf unmap-route ${legacyAppName} ${env.PHASE_ONE_PCF_DOMAIN} --hostname ${legacyAppName}"
sh "cf delete -f ${legacyAppName}"
sh "cf delete -f ${legacyAppName} -r"
}
}
}
Expand All @@ -120,7 +120,7 @@ node {
sh "cf start ${appName}"
} catch (Exception e) {
//sh "cf logs --recent ${appName}"
sh "cf delete ${appName} -f"
sh "cf delete ${appName} -f -r"
error("Error during application start. Deleting ${appName} and failing the build.")
}
}
Expand All @@ -145,7 +145,7 @@ node {
def legacyAppName = legacyApp.toString().trim()
if (legacyAppName != appName) {
sh "cf unmap-route ${legacyAppName} ${env.PHASE_TWO_PCF_DOMAIN} --hostname ${legacyAppName}"
sh "cf delete -f ${legacyAppName}"
sh "cf delete -f ${legacyAppName} -r"
}
}
}
Expand Down

0 comments on commit f741d95

Please sign in to comment.