HodorNV / ALOps

ALOps
59 stars 24 forks source link

Question: How to use Batch Publish with App Filter to avoid deploying Unit Test #702

Closed kasperdj closed 11 months ago

kasperdj commented 12 months ago

I have a build pipeline that generates 2 apps:

If I setup a Release Pipeline to deploy to an online environment, then I encounter some limitations I would like to get your input on.

I only want to deploy the "Main App" to the online environment and this can acomplished using the "ALOps Extension API" by setting the following properties:

This works when I only have only have one set of artifacts.

In other release pipeline I have a scenario where I need to include multiple articts from different build pipelines (one per app) and deploy all of these to the same online environment. In this case I have the "API Interaction" set to "Batch Publish" which works if I have no Unit Tests! If I have Unit Tests in my projects it will also try to deploy the Unit Test apps as well, which I would like to avoid as this will always fail. When "Batch Publish" is being used, the parameter for "App filter" is not available :-(

Please suggest how to change my setup

kasperdj commented 11 months ago

Status?

waldo1001 commented 11 months ago

What we do, is add one default DevOps step "Delete files" to delete whatever files we don't want to publish.

Example:

image

image

Or with PowerShell: image

The "AppFilter" has been on the list. Thing is it's a rabbit hole to combine with all the other parameter-combo's .. hard to explain :(.

kasperdj commented 11 months ago

I will go for the powershell approach, thx

waldo1001 commented 11 months ago

Tip: Powershell gives you the abilty to also display which apps you're deleting - which would be valuable output as well.