jenkins

package module
v0.0.0-...-b0d917e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 21, 2014 License: MIT Imports: 10 Imported by: 1

README

go-jenkins-cli

Jenkins Client in Go

Documentation

Index

Constants

View Source
const DEFAULT_SERVER string = "alfred-jenkins.sv2:8080"

Variables

View Source
var JENKINS_SERVER string = DEFAULT_SERVER

Functions

func GetArtifactReader

func GetArtifactReader(name string, id int, artifact string) (io.ReadCloser, error)

func GetArtifacts

func GetArtifacts(name string, id int, output string) ([]string, error)

Types

type JenkinsBuildInfo

type JenkinsBuildInfo struct {
	Name              string
	ID                int
	Artifacts         map[string]string
	Building          bool
	Duration          float64
	EstimatedDuration float64
	Result            string
	Timestamp         float64
	Url               string
}

func DoBuild

func DoBuild(name, params string, wait bool) (*JenkinsBuildInfo, error)

func GetBuildInfo

func GetBuildInfo(name string, id int) (*JenkinsBuildInfo, error)

func (*JenkinsBuildInfo) Print

func (self *JenkinsBuildInfo) Print()

type JenkinsInfo

type JenkinsInfo struct {
	Name               string
	Description        string
	Url                string
	Buildable          bool
	InQueue            bool
	LastBuild          int
	LastBuildUrl       string
	LastStableBuild    int
	LastStableBuildUrl string
}

func GetInfo

func GetInfo(name string) (*JenkinsInfo, error)

func (*JenkinsInfo) Print

func (self *JenkinsInfo) Print()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL