jenkins

package
v0.0.0-...-8d1f9fb Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2015 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Build

type Build struct {
	Number int    `json:"number"`
	URL    string `json:"url"`
}

type JenkinsClient

type JenkinsClient struct {
	Host string
}

func (*JenkinsClient) GetJob

func (j *JenkinsClient) GetJob(name string) (*Queue, error)

func (*JenkinsClient) GetLastCompletedBuild

func (j *JenkinsClient) GetLastCompletedBuild(name string) (*Job, error)

func (*JenkinsClient) IsBuildStable

func (j *JenkinsClient) IsBuildStable(name string) (bool, error)

type Job

type Job struct {
	Result    string `json:"result"`
	ID        string `json:"id"`
	Timestamp int    `json:"timestamp"`
}

type Queue

type Queue struct {
	Builds             []Build `json:"builds"`
	LastCompletedBuild Build   `json:"lastCompletedBuild"`
	LastStableBuild    Build   `json:"lastStableBuild"`
}

Jump to

Keyboard shortcuts

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