Documentation
¶
Index ¶
- Constants
- type Build
- type Change
- type Changes
- type Client
- func (c *Client) CancelBuild(buildID int64, comment string) error
- func (c *Client) GetBuild(buildID string) (*Build, error)
- func (c *Client) GetBuildID(buildTypeID, branchName, buildNumber string) (string, error)
- func (c *Client) GetBuildLog(buildID string) (string, error)
- func (c *Client) GetBuildProperties(buildID string) (map[string]string, error)
- func (c *Client) GetChanges(path string) ([]Change, error)
- func (c *Client) GetProblems(path string, count int64) ([]ProblemOccurrence, error)
- func (c *Client) GetTests(path string, count int64, failingOnly bool, ignoreMuted bool) ([]TestOccurrence, error)
- func (c *Client) QueueBuild(buildTypeID string, branchName string, properties map[string]string) (*Build, error)
- func (c *Client) SearchBuild(locator string) ([]*Build, error)
- type JSONTime
- type ProblemOccurrence
- type State
- type TestOccurrence
Constants ¶
View Source
const ( Unknown = State(iota) Queued Started Finished )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Build ¶
type Build struct {
ID int64
BuildTypeID string
BuildType struct {
ID string
Name string
Description string
ProjectName string
ProjectID string
HREF string
WebURL string
}
Triggered struct {
Type string
Date JSONTime
User struct {
Username string
}
}
Changes struct {
Change []Change
}
QueuedDate JSONTime
StartDate JSONTime
FinishDate JSONTime
Number string
Status string
StatusText string
State string
BranchName string
Personal bool
Running bool
Pinned bool
DefaultBranch bool
HREF string
WebURL string
Agent struct {
ID int64
Name string
TypeID int64
HREF string
}
ProblemOccurrences struct {
ProblemOccurrence []ProblemOccurrence
}
TestOccurrences struct {
TestOccurrence []TestOccurrence
}
// As received from the API
TagsInput struct {
Tag []struct {
Name string
}
} `json:"tags"`
// Useable, filled before sending to `IncomingBuilds`
Tags []string `json:"-"`
// As received from the API
PropertiesInput struct {
Property []oneProperty `json:"property"`
} `json:"properties"`
// Useable, filled before sending to `IncomingBuilds`
Properties map[string]string `json:"-"`
}
Build represents a TeamCity build, along with its metadata.
func (*Build) ComputedState ¶
type Client ¶
Client to access a TeamCity API
func (*Client) GetBuildID ¶
func (*Client) GetBuildProperties ¶
func (*Client) GetProblems ¶
func (c *Client) GetProblems(path string, count int64) ([]ProblemOccurrence, error)
func (*Client) QueueBuild ¶
type JSONTime ¶
type JSONTime string
JSONTime is just a string wrapper for Team City's date format.
type ProblemOccurrence ¶
Click to show internal directories.
Click to hide internal directories.
