diff --git a/.docs/Test-VSTeamYamlPipeline.md b/.docs/Test-VSTeamYamlPipeline.md index 99ec90fc7..ceb9d0589 100644 --- a/.docs/Test-VSTeamYamlPipeline.md +++ b/.docs/Test-VSTeamYamlPipeline.md @@ -19,13 +19,31 @@ ```PowerShell PS C:\> Test-VSTeamYamlPipeline -Project DemoProject -PipelineId 24 -FilePath './azure-pipelines.yml' -Build Definition Build Number Status Result ----------------- ------------ ------ ------ -Demo-CI Demo-CI-45 notStarted +Name Id url state +---- -- --- ----- + -1 https://dev.azure.com/devsdb/3428bdd7-9fed-4c30-a6c9-fcb52f084ab9/_apis/pipelines/24/runs/-1 unknown ``` This example checks the YAML pipeline with ID 24 and the file './azure-pipelines.yml' for consistency on Azure DevOps to see if the changes still work. +### -------------------------- EXAMPLE 2 -------------------------- + +```PowerShell +PS C:\> $yamlOverride = [string](Get-Content -raw $FilePath) +PS C:\> Test-VSTeamYamlPipeline -Project DemoProject -PipelineId 24 -YamlOverride $yamlOverride +``` + +This example checks the YAML pipeline with ID 24 and the content of a yaml file in the variable $yamlOverride for consistency on Azure DevOps to see if the changes still work. + +### -------------------------- EXAMPLE 3 -------------------------- + +```PowerShell +PS C:\> $yamlOverride = [string](Get-Content -raw $FilePath) +PS C:\> Test-VSTeamYamlPipeline -Project DemoProject -PipelineId 24 +``` + +This example checks the YAML pipeline with ID 24 for consistency on Azure DevOps to see if the existing YAML of the pipeline works. + ## PARAMETERS @@ -66,3 +84,5 @@ PipelineId If you do not set the default project by called Set-VSTeamDefaultProject before calling Add-VSTeamBuild you will have to type in the names. ## RELATED LINKS + +[Get-VSTeamBuildDefinition](Get-VSTeamBuildDefinition.md)