tc

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2026 License: GPL-3.0 Imports: 11 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 {
	ID     int
	Number int
	Branch string
	URL    string
	State  string
}

type Server

type Server struct {
	Server string

	User *string
	Pass *string
	// contains filtered or unexported fields
}

func NewServer

func NewServer(server, token, username, password string) Server

func NewServerUsingBasicAuth

func NewServerUsingBasicAuth(server, username, password string) Server

func NewServerUsingTokenAuth

func NewServerUsingTokenAuth(server, token string) Server

func (Server) AddTags

func (s Server) AddTags(buildID int, tags []string) error

AddTags adds Tags to a TeamCity build run using the REST API

func (Server) BuildLog

func (s Server) BuildLog(buildID int) (int, string, error)

func (Server) BuildQueue

func (s Server) BuildQueue(buildID int) (int, string, error)

func (Server) BuildState

func (s Server) BuildState(buildID int) (int, string, error)

func (Server) CheckBuildLogStatus

func (s Server) CheckBuildLogStatus(statusCode int, buildID int) error

func (Server) GetBuildsForPR

func (s Server) GetBuildsForPR(buildTypeID string, pr int, latest, wait bool, queueTimeout, runTimeout int) (*[]Build, error)

func (Server) RunBuild

func (s Server) RunBuild(buildTypeID, buildProperties, branch string, testRegEx string, skipQueue bool) (int, string, error)

func (Server) TriggerBuild

func (s Server) TriggerBuild(buildTypeID, branch string, testPattern, buildProperties string, skipQueue bool) (int, string, error)

todo is there any reason to not inline this into runbuild?

func (Server) WaitForBuild

func (s Server) WaitForBuild(buildID int, queueTimeout, runTimeout int) error

Jump to

Keyboard shortcuts

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