Welcome Guest! Log in
×

Notice

The forum is in read only mode.
Due to some maintenance operations, stambia.org will be switched to read-only mode during the 13th November. It will be possible to read and download, but impossible to post on the forums or create new accounts. For any question please contact the support team.

Topic-icon Question Loop on configurations

More
03 Feb 2017 10:20 #1 by Shamil
Shamil created the topic: Loop on configurations
We are in a multi-configurations environment. A package can be imported into different Deployment Managers (analytics) with a different set of configurations assigned to it.

How can I build a process that loops on all (or filtered set of) configurations available and executes a certain delivery in it?
More
07 Feb 2017 18:06 #2 by risson
risson replied the topic: Loop on configurations
hello,
you can build multi-configuration deliveries (simply select the desired configurations when specifying the delivery).
and then at execution time, you can pass the desired configuration as a parameter, for example:

./startdelivery.sh -name [DELIVERY_NAME] -configuration [CONFIGURATION_NAME]
More
07 Feb 2017 18:23 #3 by Shamil
Shamil replied the topic: Loop on configurations
Exactly. Let's suppose I have a delivery DELIV1 which is build for a set of configurations CONF1 .. CONFN. Now what I need is to have a process that makes the following:
for varCONF in CONF1 .. CONFN loop
    startdelivery.sh -name DELIV1 -configuration varCONF
end loop

However at designtime I do not know which are the configurations that will be defined in Analytics.
More
08 Feb 2017 09:27 #4 by risson
risson replied the topic: Loop on configurations
Oh i see the idea !
I suppose there is no feature out of the box for this.
Maybe you can try this :
- reverse a delivery file (and just keep the first XML nodes which list the configurations)
- map the deliv file to a temp table to hold a list of the configuration
- select from this temp table and use the "execute delivery" command in a Bind action