Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
51 lines (34 sloc) 1.55 KB
title ms.custom description ms.topic ms.prod ms.technology ms.assetid ms.manager ms.author author ms.date monikerRange
Go task
seodec18
Get, build, test a go application, or run a custom go command.
reference
devops
devops-cicd
34B37FDD-BBF7-4EF1-B37C-9652CA7BB355
mijacobs
shasb
shashankbarsin
05/04/2018
azure-devops

Go task

Azure Pipelines

Use this task in a build or release pipeline to get, build, or test a go application, or run a custom go command.

::: moniker range="> tfs-2018"

YAML snippet

[!INCLUDE temp]

::: moniker-end

Arguments

[!INCLUDE temp]

ArgumentDescription
Command(Required) Select a Go command to run. Select 'Custom' to use a command not listed here.
Custom command(Required) Custom Go command for execution. For example: to execute go version, enter version.
Arguments(Optional) Arguments to the selected command. For example, build time arguments for go build command.
Working Directory(Required) Current working directory where the script is run. Empty is the root of the repo (build) or artifacts (release), which is $(System.DefaultWorkingDirectory)

Open source

This task is open source on GitHub. Feedback and contributions are welcome.

Q & A

You can’t perform that action at this time.