MethodsAndPractices / vsteam

PowerShell module for accessing Azure DevOps Services and Azure DevOps Server (formerly VSTS or TFS)
https://methodsandpractices.github.io/vsteam-docs/
MIT License
445 stars 155 forks source link

Add-VSTeamBuild queues a build, but throws an error post-queue #291

Closed richardgavel closed 4 years ago

richardgavel commented 4 years ago

Steps to reproduce

$build = Add-VSTeamBuild -ProjectName Core -BuildDefinitionName $buildDefinition -BuildParameters $buildParameters -SourceBranch master

Expected behavior

Build queued and information returned

Actual behavior

Queued, but with following exception:
The property 'name' cannot be found on this object. Verify that the property exists.
At C:\Program Files\WindowsPowerShell\Modules\VSTeam\6.4.6\vsteam.classes.ps1:313 char:47
+    ) : base($obj.name, $obj.id, $Projectname) {
+                                               ~
    + CategoryInfo          : NotSpecified: (:) [], PropertyNotFoundException
    + FullyQualifiedErrorId : PropertyNotFoundStrict

The property 'name' cannot be found on this object. Verify that the property exists.
At C:\Program Files\WindowsPowerShell\Modules\VSTeam\6.4.6\vsteam.classes.ps1:313 char:47
+    ) : base($obj.name, $obj.id, $Projectname) {
+                                               ~
    + CategoryInfo          : NotSpecified: (:) [], PropertyNotFoundException
    + FullyQualifiedErrorId : PropertyNotFoundStrict

Environment data

OS

Server

> Get-VSTeamAPIVersion
Name                           Value
----                           -----
Release                        5.1-preview
Version                        VSTS
MemberEntitlementManagement    5.1-preview
TaskGroups                     5.1-preview.1
DistributedTask                5.0-preview
Core                           5.0
Packaging                      5.1-preview
ServiceFabricEndpoint          5.0-preview
VariableGroups                 5.0-preview.1
Build                          5.1-preview
Git                            5.1-preview
ExtensionsManagement           5.1-preview
Graph                          5.1-preview
Tfvc                           5.0
> $PSVersionTable
Name                           Value
----                           -----
PSVersion                      5.1.19041.1
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.19041.1
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
SebastianSchuetze commented 4 years ago

Thanks @richardgavel . We gonna check this in time. Are you using YAML pipeline or the classic build pipelines?

richardgavel commented 4 years ago

You mean the pipeline I am triggering? That is a YAML pipeline.

richardgavel commented 4 years ago

Did some more research via logging and it's actual the result of the issue https://github.com/DarqueWarrior/vsteam/issues/198. So closing this and will help out on that one.

SebastianSchuetze commented 4 years ago

Thanks for checking it yourself. We are maintaining this module in our limited free time that we have. So if you think you know a fix, then you can always suggest fixing snippets in the issue or submit a PR. Thanks for your effort!