Search code examples
azure-devopsazure-pipelinesazure-yaml-pipelines

AzDO ManualValidation step failing in YAML pipeline with no explanation of why


I'm converting to a full YAML AzDO pipeline and need to wait for manual validation for certain stages of my pipeline. Added the new ManualValidation task into a serverless job, however it fails immediately with no details about why. I did add a Delay task in there as well (just as a sanity check to make sure my serverless job was actually running successfully), and it runs fine.

- job: waitForValidation
  displayName: Wait for external validation
  pool: Server
  timeoutInMinutes: 4320 # job times out in 3 days
  steps:
  - task: Delay@1
    inputs:
      delayForMinutes: '1'
  - task: ManualValidation@0
    timeoutInMinutes: 1440 # task times out in 1 day
    inputs:
      notifyUsers: |
        [email protected]
        [email protected]
      instructions: 'Please validate deployment can continue and resume'
      onTimeout: 'reject'

These are the docs I'm using: https://learn.microsoft.com/en-us/azure/devops/pipelines/tasks/utility/manual-validation?view=azure-devops&tabs=yaml

I also dropped into the GitHub project just to make sure the task is still version 0 (it is).

Suggestions on why this might be failing and/or ways I can get some more details in the pipeline about WHY it failed?


Solution

  • Turns out we are actually using AzDO Server, not AzDO Services (thanks, Microsoft for naming them so similarly) and this task is not yet available in the Server version :(

    For anyone also frustrated by this lack of functionality on-prem, here’s the documentation on using Deployment Jobs and some about Environments

    We are able to get most of the functionality we were looking for this way, thou it does require setting up environments.