< Back

Get-BuildArtifact

Sun Jan 19, 2020 6:08 pm

NAME Get-BuildArtifact



SYNOPSIS

Gets latest build artifact by name





SYNTAX

Get-BuildArtifact [[-BuildDefinition] <String>] [[-Account] <String>] [[-Project] <String>] [[-Artifact] <String>]

[[-Type] <String>] [<CommonParameters>]





DESCRIPTION

Get-BuildArtifact will query your AzureDevOps project to get the recent build's artifact by name





PARAMETERS

-BuildDefinition <String>

The name of the build definition. Can be inherited from a config file.



Required? false

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Account <String>

The acount name to use. Can be inherited from a config file.

If your AzureDevOps url is hello.visualstudio.com then this value should be hello.



Required? false

Position? 2

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Project <String>

The project name to use. Can be inherited from a config file.



Required? false

Position? 3

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Artifact <String>

The artifact name to get artifact for.



Required? false

Position? 4

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Type <String>



Required? false

Position? 5

Default value build

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS



-------------------------- EXAMPLE 1 --------------------------



PS C:\\>Get-Artifact -BuildDefinition myBuildDef -Account myAccount -Project myProject -Artifact myArtifactName















RELATED LINKS

about_PsAzureDevOps