Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test-VSTeamYamlPipeline : A parameter cannot be found that matches parameter name 'Branch'. #473

Open
jmartens opened this issue Aug 16, 2022 · 2 comments
Labels
bug when a bug has been identified or filed

Comments

@jmartens
Copy link
Contributor

jmartens commented Aug 16, 2022

Steps to reproduce

Test-VSTeamYamlPipeline -PipelineId 21 -FilePath '.\azure-pipelines.yml' -Branch 'feature/coverage' -ProjectName 'XXXXX'

Expected behavior

The job would run without error and the Branch parameter was supported based on examples in the documentation for this function.

Actual behavior?

Test-VSTeamYamlPipeline : A parameter cannot be found that matches parameter name 'Branch'.
At line:1 char:74
+ ... line -PipelineId 21 -FilePath '.\azure-pipelines.yml' -Branch 'featur ...
+                                                           ~~~~~~~
    + CategoryInfo          : InvalidArgument: (:) [Test-VSTeamYamlPipeline], ParameterBindingException
    + FullyQualifiedErrorId : NamedParameterNotFound,Test-VSTeamYamlPipeline

On Which OS have you tried it?

Windows

What was your server version?

Azure DevOps Services

Other server version

No response

Log output of used API

Billing                     : 5.1-preview.1
Build                       : 5.1
Core                        : 5.1
DistributedTask             : 6.0-preview
DistributedTaskReleased     : 5.1
ExtensionsManagement        : 6.0-preview
Git                         : 5.1
Graph                       : 6.0-preview
HierarchyQuery              : 5.1-preview
MemberEntitlementManagement : 6.0-preview
Packaging                   : 6.0-preview
Pipelines                   : 5.1-preview
Policy                      : 5.1
Processes                   : 6.0-preview
Release                     : 5.1
ServiceEndpoints            : 5.0-preview
TaskGroups                  : 6.0-preview
Tfvc                        : 5.1
VariableGroups              : 5.1-preview.1
Version                     : VSTS

Log output of $PSVersionTable

Name                           Value                                                                                                                                                                                                                                     
----                           -----                                                                                                                                                                                                                                     
PSVersion                      5.1.19041.1682                                                                                                                                                                                                                            
PSEdition                      Desktop                                                                                                                                                                                                                                   
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}                                                                                                                                                                                                                   
BuildVersion                   10.0.19041.1682                                                                                                                                                                                                                           
CLRVersion                     4.0.30319.42000                                                                                                                                                                                                                           
WSManStackVersion              3.0                                                                                                                                                                                                                                       
PSRemotingProtocolVersion      2.3                                                                                                                                                                                                                                       
SerializationVersion           1.1.0.1                                                                                                                                                                                                                                   
@jmartens jmartens added the bug when a bug has been identified or filed label Aug 16, 2022
@SebastianSchuetze
Copy link
Collaborator

Thanks. Do you feel confident in giving it a go to fix it?
Otherwise we can do it at some point.

@jmartens
Copy link
Contributor Author

I think I might be capable although I need to dive into it, but the hard part is finding time to do so. Won't mind if you beat me to it ;-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug when a bug has been identified or filed
Projects
None yet
Development

No branches or pull requests

2 participants