'Azure Pipeline step reference task manual validation at version 0.198 which is not valid for the given job target
I am writing a simple azure-pipelines.yml
to install terraform and do a manual approval before proceeding to the terraform apply. I get the below error:
Job manual_approval: Step reference task manual validation at version '0.198.0' which is not valid for the given job target
Here's my yaml.
# Starter pipeline
# Start with a minimal pipeline that you can customize to build and deploy your code.
# Add steps that build, run tests, deploy, and more:
# https://aka.ms/yaml
trigger:
- test
pool:
vmImage: ubuntu-latest
jobs:
- job: install_terraform
displayName: "Installing Terraform"
steps:
- task: ms-devlabs.custom-terraform-tasks.custom-terraform-installer-task.TerraformInstaller@0
displayName: 'Install Terraform latest'
- job: terraform_init
displayName: "Terraform Init"
dependsOn: install_terraform
steps:
- task: ms-devlabs.custom-terraform-tasks.custom-terraform-release-task.TerraformTaskV2@2
displayName: 'Terraform : init'
inputs:
workingDirectory: Terraform
backendServiceArm: 'managedclouds-rnd-001 (xxxx)'
backendAzureRmResourceGroupName: 'ssi-tf-state'
backendAzureRmStorageAccountName: tfstatessi
backendAzureRmContainerName: tfstate
backendAzureRmKey: tfstate
- job: manual_approval
displayName: "Manual Approval"
dependsOn: terraform_init
steps:
- task: ManualValidation@0
timeoutInMinutes: 5
inputs:
instructions: "Hi, please validate"
- job: terrform_apply
displayName: "Terraform Apply"
dependsOn: manual_approval
steps:
- task: ms-devlabs.custom-terraform-tasks.custom-terraform-release-task.TerraformTaskV2@2
displayName: 'Terraform : Apply'
inputs:
command: apply
workingDirectory: Terraform
environmentServiceNameAzureRM: 'managedclouds-rnd-001 (xxxx)'
Can someone please help me, I am new to azure devops.
Solution 1:[1]
Azure Pipeline step reference task manual validation at version 0.198 which is not valid for the given job target
You should specify the pool: server
for that task:
- job: manual_approval
displayName: "Manual Approval"
dependsOn: terraform_init
pool: server
steps:
- task: ManualValidation@0
timeoutInMinutes: 5
inputs:
instructions: "Hi, please validate"
Please check the Example for some more details.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Leo Liu-MSFT |