A PowerShell module that facilitates build script interaction within Azure Devops Pipelines
By default, Import-Module
will import all functions with a prefix of Vsts
.
You can configure this behavior by passing the -Prefix
parameter to Import-Module
.
Files prefixed with _
are currently not implemented.
Here's the documentation used as the reference for this repository
Most of the implemented Cmdlets don't appear to work currently.
Those that do work are listed below.
Write-VstsTaskError -Message "This is an error" -SourcePath "C:\fake\path\error.ps1" -LineNumber 12 -ColumnNumber 34 -Code 'ERR-001'
Write-VstsTaskWarning -Message "This is a warning" -SourcePath "C:\fake\path\warning.ps1" -LineNumber 12 -ColumnNumber 34 -Code 'WARN-001'