Skip to content

Instantly share code, notes, and snippets.

@mikerodionov
Created November 17, 2021 15:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mikerodionov/04ae1c36650e521f56ac8fe9a6bd1c4e to your computer and use it in GitHub Desktop.
Save mikerodionov/04ae1c36650e521f56ac8fe9a6bd1c4e to your computer and use it in GitHub Desktop.
# Install required module
Install-Module -Name VSTeam -Scope CurrentUser
# Specify your Azure DevOps project
Set-VSTeamAccount -Account <Name of your Azure DevOps org> -PersonalAccessToken <Your PAT with access to your project>
# Request pipeline validation:
Test-VSTeamYamlPipeline -Project <PROJECT_NAME> -PipelineId <PIPELINE_ID> -FilePath '<PATH_TO_YAML_FILE>'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment