All Projects β†’ jenkinsci β†’ Golang Plugin

jenkinsci / Golang Plugin

Automatically installs the Go tools on Jenkins build agents

Programming Languages

java
68154 projects - #9 most used programming language
golang
3204 projects

Projects that are alternatives of or similar to Golang Plugin

Go Playground
Better Go Playground powered by React and Monaco editor
Stars: ✭ 354 (+622.45%)
Mutual labels:  golang-tools
Goggles
πŸ”­ Goggles is a cross-platform GUI for your $GOPATH!
Stars: ✭ 672 (+1271.43%)
Mutual labels:  golang-tools
Kubernetes Credentials Provider Plugin
Credentials provider that allows storing credentials in Kubernetes
Stars: ✭ 37 (-24.49%)
Mutual labels:  jenkins-plugin
Pipeline Aws Plugin
Jenkins Pipeline Step Plugin for AWS
Stars: ✭ 389 (+693.88%)
Mutual labels:  jenkins-plugin
Richgo
Enrich `go test` outputs with text decorations.
Stars: ✭ 544 (+1010.2%)
Mutual labels:  golang-tools
Stegify
πŸ” Go tool for LSB steganography, capable of hiding any file within an image.
Stars: ✭ 927 (+1791.84%)
Mutual labels:  golang-tools
Gotests
Automatically generate Go test boilerplate from your source code.
Stars: ✭ 3,597 (+7240.82%)
Mutual labels:  golang-tools
Simple Theme Plugin
A simple theme plugin for Jenkins
Stars: ✭ 45 (-8.16%)
Mutual labels:  jenkins-plugin
Gobinaries
Golang binaries compiled on-demand for your system
Stars: ✭ 672 (+1271.43%)
Mutual labels:  golang-tools
Go Benchmark App
Application for HTTP benchmarking via different rules and configs
Stars: ✭ 21 (-57.14%)
Mutual labels:  golang-tools
Iox
Tool for port forwarding & intranet proxy
Stars: ✭ 411 (+738.78%)
Mutual labels:  golang-tools
Gowrap
GoWrap is a command line tool for generating decorators for Go interfaces
Stars: ✭ 464 (+846.94%)
Mutual labels:  golang-tools
Gocurrency
Simple currency converter. Insert an amount, what currency to convert from and what currency to convert to.
Stars: ✭ 26 (-46.94%)
Mutual labels:  golang-tools
Tsukae
πŸ§‘β€πŸ’»πŸ“Š Show off your most used shell commands
Stars: ✭ 345 (+604.08%)
Mutual labels:  golang-tools
Interact
Question/answer and multiple choice by command line
Stars: ✭ 43 (-12.24%)
Mutual labels:  golang-tools
Govalidate
Validates your Go installation and dependencies.
Stars: ✭ 334 (+581.63%)
Mutual labels:  golang-tools
Dalfox
🌘🦊 DalFox(Finder Of XSS) / Parameter Analysis and XSS Scanning tool based on golang
Stars: ✭ 791 (+1514.29%)
Mutual labels:  golang-tools
Gogeom
This is a Geometrical library for Go Language. Which includes multiple Geometrical calculations like Circle, Lines etc in different forms
Stars: ✭ 47 (-4.08%)
Mutual labels:  golang-tools
Jenkins Os
Groovy pipeline jobs that build and test Container Linux with Jenkins
Stars: ✭ 43 (-12.24%)
Mutual labels:  jenkins-plugin
Accurev Plugin
Jenkins accurev plugin
Stars: ✭ 14 (-71.43%)
Mutual labels:  jenkins-plugin

Go programming language plugin for Jenkins

Jenkins plugin Jenkins plugin installs Build status

Automatically installs and sets up the Go programming language (golang) tools on a Jenkins agent during a build.

Functionality

During a build, this plugin can:

  • Install a particular version of Go on the agent that the build is running on
    • The correct package for the machine's operating system and CPU architecture will be automatically downloaded and installed, if not already present
  • Export the GOROOT environment variable, pointing to the installed Go tools
  • Add the path $GOROOT/bin to the PATH, so that the tools are available during the build

Usage

Global configuration

  1. In the Jenkins global tool configuration settings (Manage Jenkins β†’ Global Tool Configuration), find the "Go" section, click "Go Installations…" and "Add Go".
  2. Enter a name, e.g. "Go 1.15" β€” the name itself has no significance, but will be displayed to users during Freestyle job configuration, or is what you need to enter as the name in a Pipeline
  3. Either select "Install automatically" and select the desired Go version from the drop-down list or specify the installation directory manually

Per-job configuration

Freestyle

  1. In a job's configuration, find the "Build environment" section
  2. Select the "Set up Go programming language tools" checkbox
  3. Select the name of a Go installation from the drop-down

Pipeline

As with any other type of Tool Installer, you can use the tool step, in this case with the go tool type.

For example, with a Scripted Pipeline:

// Run on an agent where we want to use Go
node {
    // Ensure the desired Go version is installed
    def root = tool type: 'go', name: 'Go 1.15'

    // Export environment variables pointing to the directory where Go was installed
    withEnv(["GOROOT=${root}", "PATH+GO=${root}/bin"]) {
        sh 'go version'
    }
}

Changelog

See CHANGELOG.md.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].