gpt4 book ai didi

Azure Pipeline 步骤引用任务手动验证版本 0.198 对于给定作业目标无效

转载 作者:行者123 更新时间:2023-12-02 05:50:12 26 4
gpt4 key购买 nike

我正在编写一个简单的 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

您应该为该任务指定池:服务器:

- job: manual_approval
displayName: "Manual Approval"
dependsOn: terraform_init
pool: server
steps:
- task: ManualValidation@0
timeoutInMinutes: 5
inputs:
instructions: "Hi, please validate"

enter image description here

请检查Example了解更多详细信息。

关于Azure Pipeline 步骤引用任务手动验证版本 0.198 对于给定作业目标无效,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/71593031/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com