Is there a tool to validate an Azure DevOps Pipeline locally?

后端 未结 2 1458
不知归路
不知归路 2021-01-31 01:40

When making changes to YAML-defined Azure DevOps Pipelines, it can be quite tedious to push changes to a branch just to see the build fail with a parsing error (valid YAML, but

相关标签:
2条回答
  • 2021-01-31 02:33

    You can run the Azure DevOps agent locally with its YAML testing feature.

    Use Visual Studio Team Services Agent to install an agent on your local machine and use the agent local YAML testing feature that is available within the agent.

    This should get you very close to the type of feedback you would expect.

    Hope this helps.

    0 讨论(0)
  • 2021-01-31 02:38

    FYI for anyone coming later, this feature is dead: https://github.com/microsoft/azure-pipelines-agent/issues/2479 Maybe they'll bring it back later considering Github Actions has this: https://changelog.com/news/run-your-github-actions-locally-Q3WN

    0 讨论(0)
提交回复
热议问题