jeudi 7 juillet 2016

Deploy on Release

I recenly released a new final version of a XaaS framework. One part of the framework is a webapplication for translation issues.

The idea is to keep the webapplication compatible to the framework. That means on every new release the released webapplication must be deployed.

To release a version i am using

mvn release:prepare release:perform

What works great.

In this command we have 3 differernt versions,

  • the previous version, (i.e. 1.9-SNAPSHOT)
  • the releasename-version, (i.e. 2.0-FINAL)
  • the next deveopment version (i.e. 2.0-SNAPSHOT)

How to deploy the xxx-2.0-FINAL.war and xxx-2.0-SNAPSHOT.war using scp?

Some important benefits:

  1. If the war could not be scped the release shall fail.
  2. If the release fail, the war should not be deployed.
  3. The pom.xml must contain a container-version.



Aucun commentaire:

Enregistrer un commentaire