Manualvalidation task sending email based on conditions

Viewed 25

I am following the documentation and added a manual validation task to my YAML pipeline which has 3 stages ( QA-DEV-PROD). The Manual validation is added to the Prod stage of the pipeline.

task: ManualValidation@0
     timeoutInMinutes: 1440
     inputs:
       notifyUsers: |
         [group@name]
       instructions: 'Please validate the deployment'
       onTimeout: 'resume'  

Is there a way, where I can add a condition so the user requesting the release should not approve it"?

I know, I can do that via :

  1. WebUI in Release pipeline
  2. Add approvals based on the environments

However, looking for the option to do this via YAML instead of UI checks. Any insights on this?

0 Answers
Related