1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2024-12-12 10:55:20 +02:00

Add warning message when cf native builds uses bg deployment (#4646)

* Add warning message when cf native builds uses bg deployment

---------

Co-authored-by: Oliver Feldmann <oliver.feldmann@sap.com>
This commit is contained in:
Srinikitha Kondreddy 2023-10-30 12:40:01 +01:00 committed by GitHub
parent daf159ae11
commit 5dea6237f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -248,6 +248,11 @@ func handleCFNativeDeployment(config *cloudFoundryDeployOptions, command command
// deploy command will be provided by the prepare functions below
if deployType == "blue-green" {
log.Entry().Warn("[WARN] Blue-green deployment type is deprecated for cf native builds " +
"and will be completely removed by 01.02.2024" +
"Instead set parameter `cfNativeDeployParameters: '--strategy rolling'`. " +
"Please refer to the Cloud Foundry documentation for further information: " +
"https://docs.cloudfoundry.org/devguide/deploy-apps/rolling-deploy.html")
deployCommand, deployOptions, smokeTestScript, err = prepareBlueGreenCfNativeDeploy(config)
if err != nil {
return errors.Wrapf(err, "Cannot prepare cf native deployment. DeployType '%s'", deployType)