microsoft / azure-pipelines-extensions

Collection of all RM and deployment extensions
http://www.visualstudio.com/explore/release-management-vs
MIT License
278 stars 422 forks source link

Custom ServerGate for YAML Pipelines doesn't appear in the environment approvals and checks list #964

Open webbermt opened 3 years ago

webbermt commented 3 years ago

I'm attempting to build a custom ServerGate task to be able to configure a check on an environment for YAML pipelines. The custom ServerGate appears in the classic pipeline gate editor but doesn't appear under the environment approvals and checks list for YAML pipelines. I also tried to copy the ServiceNow Change Management gate from the Extensions/ServiceNow/Src folder in this repo. I just changed the publisher and IDs but that one doesn't show up in the list either. I'm building the extension according to the documentation and publishing it to the Visual Studio Marketplace. Then sharing it with our organization and installing it. Is it possible to create a custom server gate and get it to appear on the environment approvals and checks list? If so, what I'm I doing wrong?

mike-thompson-h commented 3 years ago

I have the same issue as well. I have been changing the code in the extension, but not in the task.json for the ServerGate task.

MasilamaniSeenivasan commented 1 year ago

Hi I have the same issue, could you please share the fix in detail.

cveld commented 1 year ago

I am new to ServerGate tasks. I am trying to implement the Azure Policy check in yaml but it does not seem to be supported. It only pops up as a deployment gate task inside designer release pipelines?

Link to the tutorial: https://learn.microsoft.com/en-us/azure/governance/policy/tutorials/policy-devops-pipelines

Task reference: https://learn.microsoft.com/en-us/azure/devops/pipelines/tasks/reference/azure-policy-check-gate-v0 Task source code: https://github.com/microsoft/azure-pipelines-tasks/blob/master/Tasks/AzurePolicyV0

ghost commented 1 year ago

@MasilamaniSeenivasan

Hi I have the same issue, could you please share the fix in detail.

Apparently have to open a ticket with support to enable the flag to show custom servergate tasks in "Approvals and checks": https://developercommunity.visualstudio.com/t/custom-servergate-not-available-in-environment-che/1576665