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

Update VSTeamBuildDefinition.ps1 #158

Merged
merged 3 commits into from
May 16, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Update VSTeamBuildDefinition.ps1
Added check for existence of $obj.variables which does not exist in all cases.  This resolves issue 155 (#155)
RPhay authored May 15, 2019

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
commit 24a0c0a19439b152f73901091dc544ed2eb5c143
6 changes: 4 additions & 2 deletions Source/Classes/VSTeamBuildDefinition.ps1
Original file line number Diff line number Diff line change
@@ -32,7 +32,9 @@ class VSTeamBuildDefinition : VSTeamDirectory {
$this.id = $obj.id
$this.Path = $obj.path
$this.Revision = $obj.revision
$this.Variables = $obj.variables
if ( $obj.PSObject.Properties.name -match 'Variables' ) {
$this.Variables = $obj.variables
}
$this.CreatedOn = $obj.createdDate
$this.JobAuthorizationScope = $obj.jobAuthorizationScope
$this.AuthoredBy = [VSTeamUserEntitlement]::new($obj.authoredBy, $Projectname)
@@ -111,4 +113,4 @@ class VSTeamBuildDefinition : VSTeamDirectory {
return $this.Process
}
}
}
}