Summary: How to skip a task in a Azure Devops Task Group based on a parameter value, using Classic Pipelines.
Hi,
In Azure DevOps using Classic Pipelines, I have a Task Group with parameters and I want to use one of these parameters to decide if one of the tasks should be executed. I tried every format I could find but I am never able to get the parameter value when running this group.
task group configuration:
I've tried the following notations and probably some more, but nothing worked. Either there was an error in the building process or the variable was evaluated to NULL.
- not(eq(variables['parameters.CustomKey'], '-'))
- not(eq(variables['CustomKey'], '-'))
- not(eq('${{ variables.CustomKey }}', '-'))
- not(eq('${{ parameters.CustomKey }}', '-'))
I followed what is explained here but it seems most explanations are for YAML and not classic pipelines.
Any help would be appreciated. Thanks!



