将模板检查扩展到Azure管道中的代理程序池 [英] Extend template check at agent pools in azure pipelines
问题描述
我刚刚注意到代理程序池级别的批准和检查",并添加了几对检查批准"和扩展模板"检查.但它不起作用.同样的检查,如果我添加在天青devops环境中,它的工作原理. 这个功能直播吗? 如果您有示例,请分享
I just noticed "Approvals and checks" at agent pool level and added couple of checks "approval" and "extend template" check. but it's not working. Same checks if i add at azure devops environments , it works. Is this feature live ? If you have some example then please share
推荐答案
在天蓝色管道中的代理程序池处扩展模板检查
Extend template check at agent pools in azure pipelines
我可以使用YAML文件中的extends
重现此问题.
I could reproduce this issue on my side with extends
in the YAML file.
如果我设置了以下YAML文件:
If I set the following YAML file:
trigger: none
extends:
template: params.yml
parameters:
yesNo: true
image: 'windows-latest'
并添加了"approval
"检查和"extend template
"检查,但是当我运行管道时这些都没有出现,它们似乎被忽略了.
And added "approval
" check and "extend template
" check, but none of these appear when I run my pipeline, they seem to be ignored.
然后我在不使用extends
的情况下更改了我的YAML,并且还设置了"approval
"检查和"extend template
"检查:
Then I change my YAML without extends
, and also set "approval
" check and "extend template
" check:
trigger:
- master
pool:
vmImage: 'windows-latest'
variables:
buildConfiguration: 'Release'
stages:
- stage: Deploy_Canary
jobs:
- template: deploy-infra.yml
出现了这两项检查:
为了进一步证明这一点,我移动了extend template
支票,仅 保留了approval
支票,并带有扩展. 但是,approval
支票仍未显示:
To prove it further, I move the "extend template
" check, only keep the approval
check with extends. However, the approval
check still not showing up:
因此,恐怕此功能在某些地方仍然存在问题,您可以在开发人员社区中提交此问题:
So, I am afraid this feature still has problems in some places, you could submit this issue on developer community:
https://developercommunity.visualstudio.com/content/problem/post.html?space=21
这是我们有关产品问题的主要论坛.感谢您帮助我们构建更好的Azure DevOps.
which is our main forum for product issue. Thank you for helping us build a better Azure DevOps.
希望这会有所帮助.
这篇关于将模板检查扩展到Azure管道中的代理程序池的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!