Skip to content

Latest commit

 

History

History
137 lines (97 loc) · 2.67 KB

Get-AdoBuild.md

File metadata and controls

137 lines (97 loc) · 2.67 KB
external help file Module Name online version schema
AzDevOps-help.xml
AzDevOps
2.0.0

Get-AdoBuild

SYNOPSIS

Return one or more builds from a project

SYNTAX

Project

Get-AdoBuild [-Project <Object>] [-BuildId <Int32>] [-ApiVersion <String>] [-ProgressAction <ActionPreference>]
 [<CommonParameters>]

ProjectId

Get-AdoBuild [-ProjectId <Guid>] [-BuildId <Int32>] [-ApiVersion <String>] [-ProgressAction <ActionPreference>]
 [<CommonParameters>]

DESCRIPTION

This function will allow you to get a list of builds within a project or return a specific build from a project

EXAMPLES

Example 1

PS C:\> Get-AdoBuild -Project $Project

_links                       : @{self=; web=; sourceVersionDisplayUri=; timeline=; badge=}
properties                   :
tags                         : {}
validationResults            : {}
plans                        : {@{planId=d6f142f2-e0cc-4e3e-ba38-4a27bff743c1}}
triggerInfo                  :
id                           : 195
buildNumber                  : 20200810.17
...
appendCommitMessageToRunName : True

Get a list of builds

PARAMETERS

-ApiVersion

A valid API Version for this endpoint

Type: System.String
Parameter Sets: (All)
Aliases:
Accepted values: 5.1, 7.1-preview.7, 7.2-preview.7

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-BuildId

The build id for the build

Type: System.Int32
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Project

The project where the build(s) can be found

Type: System.Object
Parameter Sets: Project
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False

-ProjectId

The project id of the project where the build(s) can be found

Type: System.Guid
Parameter Sets: ProjectId
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

System.Object

OUTPUTS

System.Object

NOTES

RELATED LINKS