0.198 版的 Azure Pipeline 步骤参考任务手动验证对给定的作业目标无效
Azure Pipeline step reference task manual validation at version 0.198 which is not valid for the given job target
我正在编写一个简单的 azure-pipelines.yml
来安装 terraform 并在进行 terraform 应用之前进行 手动批准 。我收到以下错误:
Job manual_approval: Step reference task manual validation at version '0.198.0' which is not valid for the given job target
这是我的 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)'
谁能帮帮我,我是 azure devops 的新手。
Azure Pipeline step reference task manual validation at version 0.198 which is not valid for the given job target
您应该为该任务指定 pool: server
:
- job: manual_approval
displayName: "Manual Approval"
dependsOn: terraform_init
pool: server
steps:
- task: ManualValidation@0
timeoutInMinutes: 5
inputs:
instructions: "Hi, please validate"
请查看 Example 了解更多详情。
我正在编写一个简单的 azure-pipelines.yml
来安装 terraform 并在进行 terraform 应用之前进行 手动批准 。我收到以下错误:
Job manual_approval: Step reference task manual validation at version '0.198.0' which is not valid for the given job target
这是我的 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)'
谁能帮帮我,我是 azure devops 的新手。
Azure Pipeline step reference task manual validation at version 0.198 which is not valid for the given job target
您应该为该任务指定 pool: server
:
- job: manual_approval
displayName: "Manual Approval"
dependsOn: terraform_init
pool: server
steps:
- task: ManualValidation@0
timeoutInMinutes: 5
inputs:
instructions: "Hi, please validate"
请查看 Example 了解更多详情。