arobirosa / areco-deployment-script-manager

Simple but powerful Patch system for SAP Commerce Cloud (hybris)
Apache License 2.0
12 stars 5 forks source link

Allow deployment scripts to run on every project or essential step creation #4

Closed arobirosa closed 4 years ago

arobirosa commented 4 years ago

Motivation

In some projects Areco deployment scripts are used to override data which Hybris imports though essential or project data ImpEx scripts. This is a one time correction and although ant customize must be used in this case, to override the Hybris' Impex Scripts multiple times, ant customize don't work on the SAP cloud and the developers don't want to create a bean, annotate it with @SystemSetup and import there a new Impex which overrides the changes. These developers want to use a simple method with strict error handling with Areco deployment scripts to override Hybris impexes.

Proposal

Add the property runMultipleTimes to the configuration files of the deployment. If it is true, the deployment scripts will runs on every project or essential data creation. The execution will be recorded and any error will break the build. If the property is true or don't exists, deployment scripts are going to be run once.

arobirosa commented 4 years ago

I just updated the wiki explaning the new property: How to write deployment scripts

arobirosa commented 4 years ago

The new tests is working correctly.

arobirosa commented 4 years ago

I just updated the FAQ and "How to run deployment scripts" wiki pages.