简体   繁体   中英

Project Versioning - CI/CD - Jenkins - AEM

AEM muti-module project has pom.xml at each module level. Version can we changed at that level, new build shows the artifacts with updated version.

With versions, there would be a new AEM Package created for each version. We would want to uninstall/delete the old package before installing new version.

Question is, how can we handle the uninstallation/deletion part of old package (new package to be installed is of different version) in CI-CD job? We could think of following solutions

  1. Query the list of packages to get the version and use that to uninstall.
  2. Pass version as parameter to Jenkins Job in "Build with Parameters". But automatic build trigger on code check-in could have issue.

Has anyone faced similar situation? Please share if there is best practice which is followed for AEM CI-CD jobs for handling different release versions.

Querying the list of packages is your best option I think. You can collect any previous version of your package then, no matter when you deployed that specific package to that server the last time.

An alternative option might be to delete the package immediately after installing it, but I fear there might be lots of problems waiting for you then: Some packages need a restart, you may not delete the package to early, ...

As I said, I would go for the querying solution.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM