This Pipelines Task installs and sets up Go programming language.
- task: email@example.com input: version: "1.20.1"
You can use an Artifactory integration and local generic repository to cache the Go installer. The first run of the task will download the installer from the internet and upload it to Artifactory. Following runs will download the installer from Artifactory instead.
- task: firstname.lastname@example.org input: version: "1.20.1" cacheIntegration: "my_artifactory" cacheRepository: "pipelines_cache_local"
Golang version to be installed
Any Artifactory integration available
Artifactory integration to be used to cache the Go installer
Artifactory repository to be used to cache the Go installer
Exported Environment Variables
Location where the Go SDK is installed
The root of the Go workspace
How does it work?
To have Go installed, the task performs the following steps:
Downloads Go installer from https://go.dev/dl
Uploads installer to Artifactory if cache is enabled (Following runs will download from Artifactory)
Extracts the installer archive contents to the step workspace
Setup Go environment variables
go envcommand to display environment configuration
This project is licensed under Apache 2.0 license.