Documentation ¶
Index ¶
- type Build
- type Builders
- type Client
- func (c *Client) CreateJob(name string, body io.Reader) error
- func (c *Client) DeleteJob(name string) error
- func (j *Client) Info() (info *Info, e error)
- func (j *Client) JobConfig(name string) (*Config, error)
- func (j *Client) QueueInfo() ([]byte, error)
- func (j *Client) TriggerBuildWithParams(name string, values url.Values) (string, error)
- func (c *Client) UpdateJob(name string, body io.Reader) error
- type Config
- type Info
- type Job
- type LogRotator
- type SCMTrigger
- type Scm
- type ShellBuilder
- type ShellTask
- type TimerTrigger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
func (*Client) TriggerBuildWithParams ¶
maybe also add add delay=0sec
type Config ¶
type Config struct { RAW string `xml:"-"` XMLName xml.Name `xml:"project"` KeepDependencies bool `xml:"keepDependencies"` Properties []interface{} `xml:"properties>ignored"` Scm interface{} `xml:"scm"` CanRoam bool `xml:"canRoam"` // true</canRoam> Disabled bool `xml:"disabled"` // false</disabled> BlockBuildWhenDownstreamBuilding bool `xml:"blockBuildWhenDownstreamBuilding"` // false</blockBuildWhenDownstreamBuilding> BlockBuildWhenUpstreamBuilding bool `xml:"blockBuildWhenUpstreamBuilding"` // false</blockBuildWhenUpstreamBuilding> ConcurrentBuild bool `xml:"concurrentBuild"` //Triggers []interface{} `xml:"triggers>trigger"` // Builders []interface{} `xml:"builders>builder"` SCMTrigger []*SCMTrigger `xml:"triggers>hudson.triggers.SCMTrigger"` ShellBuilders []*ShellBuilder `xml:"builders>hudson.tasks.Shell"` TimerTriggers []*TimerTrigger `xml:"triggers>hudson.triggers.TimerTrigger"` AssignedToNode string `xml:"assignedNode,omitempty"` Publishers []interface{} `xml:"publishers>ignored"` LogRotator *LogRotator `xml:"logRotator,omitempty"` }
type Job ¶
type Job struct { Name string `xml:"name"` Url string `xml:"url"` Color string `xml:"color"` DisplayName string `xml:"display_name"` Buildable bool `xml:"buildable"` Builds []*Build `xml:"build"` FirstBuild *Build `xml:"firstBuild"` LastBuild *Build `xml:"lastBuild"` LastSuccessfulBuild *Build `xml:"lastSuccessfulBuild"` LastStableBuild *Build `xml:"lastStableBuild"` LastCompletedBuild *Build `xml:"lastCompletedBuild"` }
type LogRotator ¶
type LogRotator struct { Class string `xml:"class,attr"` DaysToKeep int `xml:"daysToKeep"` NumToKeep int `xml:"numToKeep"` ArtifactDaysToKeep int `xml:"artifactDaysToKeep"` ArtifactNumToKeep int `xml:"artifactNumToKeep"` }
func NewLogRotator ¶
func NewLogRotator(n int) *LogRotator
type SCMTrigger ¶
type Scm ¶
type ShellBuilder ¶
type ShellBuilder struct {
Command string `xml:"command"`
}
type TimerTrigger ¶
Click to show internal directories.
Click to hide internal directories.