58
Views
2
Comments
Solved
Automate Solution deployment

I would like to automate running a solution on one specific environment.

I use the LifeTime APIs to collect the applications. This is uploaded as a solution. Unfortunately, this LifeTime API adds all dependencies to this solution, which is not the intention. My question is whether I can somehow ensure that only the applications (and underlying modules) can be added to this solution and not the associated dependencies. It feels like there is a missing feature in the LifeTime  'Environments_SolutionCreate' API where you can specify that only selected applications will be created into a solution.

It is possible to read the solution via the code and remove modules that have been added as a dependency, but this does not match the supplied manifest in the solution, which means that deploying via the API Deployments_CreateWithBinary does not work properly. This also feels like unnecessary work.

I use the following documentation to get this done; https://success.outsystems.com/documentation/11/reference/outsystems_apis/lifetime_api_v2/

Does anyone have an idea how I can best solve this?

2020-09-01 10-42-42
Stefano Valente
Solution

The parameter IncludeReferences has a default set to True, but the JSON usually has senddefault set to false and booleans default value is false.


Can you try sending the default values in the json of the structure in the API?


2020-03-11 09-18-27
Jorick van Rijs

This is the solution! Thank you Stefano. 

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.