Categorygithub.com/imunhatep/golang-jenkins
repositorypackage
0.1.4
Repository: https://github.com/imunhatep/golang-jenkins.git
Documentation: pkg.go.dev

# README

golang-jenkins

About

This is a API client of Jenkins API written in Go. Forked cause original library gone stale, this one include all Mrs from original, plus supporting jenkins sub-folder projects.

Usage

import "github.com/imunhatep/golang-jenkins"

Configure authentication and create an instance of the client:

auth := &gojenkins.Auth{
  Username: "[jenkins user name]",
  ApiToken: "[jenkins API token]",
}
jenkins := gojenkins.NewJenkins(auth, "[jenkins instance base url]")

Make calls against the desired resources:

job, err := jenkins.GetJob("[job name]")

License

golang-jenkins is licensed under the MIT LICENSE. See ./LICENSE