SAP-archive / jenkins-pipelines

Jenkins pipeline implementations for Continuous Delivery.
Apache License 2.0
31 stars 21 forks source link

version management #20

Open pratibhakalmath opened 5 years ago

pratibhakalmath commented 5 years ago

Hi Team, I had a query ( not an issue ) when the application gets built and deployed again on the SCP after the Jenkins pipeline detects some changes in the code, the previous version gets lost . I there a way where we can still have the previous versions on the SCP when the new versions gets deployed. Thanks.

radsoulbeard commented 5 years ago

It depends on your use case. You could have e.g. different accounts to reflect different quality stages, like DEV, QUAL, PROD where in DEV you deploy each commit and into QUAL and PROD you deploy after some validation steps. This can be achieved in a Jenkins pipeline or with SAP Cloud Platform Transport Management Service. And if you just want to play around you could rename the application temporarily. But this is not useful for productive use cases.

benhei commented 5 years ago

Hi,

I'm not sure about your context which might be special. On a general level I would say that the "cloud-native way" would be to:

Hope this helps.

Best, Benjamin

Edit: The "audit trail" of your deployments may additionally be stored in a artifact store such as nexus.

pratibhakalmath commented 5 years ago

Scenario: we have an application deployed on the SCP as version 0.0.1, if we make some changes the Jenkins detects the changes and hence builds and deploy the application again on the SCP say as version 0.0.2 . The issue when the application gets deployed on the SCP as version 0.0.2 the previous version i.e. 0.0.1 gets deleted. Is it possible that we can still have the previous versions on the SCP even though a new versions gets deployed? Please share your thoughts.Thanks.

benhei commented 5 years ago

Would you mind elaborating why you want to do that?

pratibhakalmath commented 5 years ago

Suppose we have an application deployed on the SCP as version say 0.0.1 with feature A. If we make some changes in the application and deploy it again on the SCP as version say 0.0.2 with feature B. However we realize the earlier feature was more better we instead of reverting the changes and deploying the application again on the SCP, can use the version 0.0.1. Please share your thoughts on this.Thanks.

pratibhakalmath commented 5 years ago

Hi Team , waiting for your views on this.Thanks.