I'm using Octopus Deploy project with few steps. In the first step "Enable Deployment Targets" I'm using Powershell script which enable deployment targets which are disabled at the moment of running of the first step "Enable Deployment Targets"
After 1st step all deployment targets in the given environment and channel are Healthy (green), but other steps are skipped with the message bellow:
Searched for targets:
specifically matching these ids: (no id's provided)
that are enabled
with no id exclusions
with no environment exclusions
has a role that overlaps: Windows test and SQL test
with no tenant exclusions
with any health status
Info Skipping this step as no matching targets were found
If I enable deployment targets manually and run other steps then the everything is ok and work properly
Any idea what can be the cause of this?