Extend template check at agent pools in azure pipelines

折月煮酒 提交于 2020-03-25 17:55:52

问题


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


回答1:


Extend template check at agent pools in azure pipelines

I could reproduce this issue on my side with extends in the YAML file.

If I set the following YAML file:

trigger: none

extends:
    template: params.yml
    parameters:
        yesNo: true
        image: 'windows-latest'

And added "approval" check and "extend template" check, but none of these appear when I run my pipeline, they seem to be ignored.

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

Those two checks came up:

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

which is our main forum for product issue. Thank you for helping us build a better Azure DevOps.

Hope this helps.



来源:https://stackoverflow.com/questions/60699631/extend-template-check-at-agent-pools-in-azure-pipelines

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!