79512119

Date: 2025-03-16 04:37:41
Score: 0.5
Natty:
Report link

Ok, found a solution. It was to move the logic outside of the bash code.

 parameters:
   - name: strValue

 steps:
 - task: Bash@3
   condition: ${{ eq(parameters.strValue, 'valueX') }}
   displayName: 'Do stuff'
   inputs:
     targetType: inline
     script: |
       ...
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
Posted by: benjamin.keen