Back to godoc.org
github.com/jenkins-x/golang-jenkins

Package gojenkins

v0.0.0-...-65b83ad
Latest Go to latest

The latest major version is .

Published: Sep 19, 2018 | License: MIT | Module: github.com/jenkins-x/golang-jenkins

Index

func FullJobPath

func FullJobPath(path ...string) string

FullJobPath returns the full job path URL for the given paths

func FullPath

func FullPath(job string) string

FullJobPath returns the full job path URL for the given paths

func JobToXml

func JobToXml(jobItem JobItem) ([]byte, error)

JobToXml converts the given JobItem into XML

func Poll

func Poll(pollPeriod time.Duration, timeout time.Duration, timeoutFailureMessage string, fn ConditionFunc) error

Poll polls the given function until it returns true to indicate its complete or an error

func RetryAfter

func RetryAfter(attempts int, callback func() error, d time.Duration) (err error)

type APIError

type APIError struct {
	Status     string
	StatusCode int
}

func (APIError) Error

func (err APIError) Error() string

type Action

type Action struct {
	Causes               []Cause               `json:"causes"`
	Parameter            []Parameter           `json:"parameters"`
	ParameterDefinitions []ParameterDefinition `json:"parameterDefinitions"`
}

type Artifact

type Artifact struct {
	DisplayPath  string `json:"displayPath"`
	FileName     string `json:"fileName"`
	RelativePath string `json:"relativePath"`
}

type Auth

type Auth struct {
	Username    string
	ApiToken    string
	BearerToken string
}

type Branches

type Branches struct {
	BranchesSpec []BranchesSpec `xml:"hudson.plugins.git.BranchSpec"`
}

type BranchesSpec

type BranchesSpec struct {
	Name string `xml:"name"`
}

type Build

type Build struct {
	Id     string `json:"id"`
	Number int    `json:"number"`
	Url    string `json:"url"`

	FullDisplayName string `json:"fullDisplayName"`
	Description     string `json:"description"`

	Timestamp         int `json:"timestamp"`
	Duration          int `json:"duration"`
	EstimatedDuration int `json:"estimatedDuration"`

	Building bool   `json:"building"`
	KeepLog  bool   `json:"keepLog"`
	Result   string `json:"result"`

	Artifacts []Artifact `json:"artifacts"`
	Actions   []Action   `json:"actions"`

	ChangeSet ScmChangeSet `json:"changeSet"`
}

type BuildButtonColumn

type BuildButtonColumn struct {
	XMLName xml.Name `xml:"hudson.views.BuildButtonColumn"`
}

type Cause

type Cause struct {
	ShortDescription string `json:"shortDescription"`
	UserId           string `json:"userId"`
	UserName         string `json:"userName"`
	UpstreamCause
}

type ChangeSetItem

type ChangeSetItem struct {
	AffectedPaths []string           `json:"affectedPaths"`
	CommitId      string             `json:"commitId"`
	Timestamp     int                `json:"timestamp"`
	Author        ScmAuthor          `json:"author"`
	Comment       string             `json:"comment"`
	Date          string             `json:"date"`
	Id            string             `json:"id"`
	Message       string             `json:"msg"`
	Paths         []ScmChangeSetPath `json:"paths"`
}

type Column

type Column interface {
}

type Columns

type Columns struct {
	XMLName xml.Name `xml:"columns"`
	Column  []Column
}

type Computer

type Computer struct {
	Actions             []struct{} `json:"actions"`
	DisplayName         string     `json:"displayName"`
	Executors           []struct{} `json:"executors"`
	Idle                bool       `json:"idle"`
	JnlpAgent           bool       `json:"jnlpAgent"`
	LaunchSupported     bool       `json:"launchSupported"`
	ManualLaunchAllowed bool       `json:"manualLaunchAllowed"`
	MonitorData         struct {
		SwapSpaceMonitor struct {
			AvailablePhysicalMemory int64 `json:"availablePhysicalMemory"`
			AvailableSwapSpace      int64 `json:"availableSwapSpace"`
			TotalPhysicalMemory     int64 `json:"totalPhysicalMemory"`
			TotalSwapSpace          int64 `json:"totalSwapSpace"`
		} `json:"hudson.node_monitors.SwapSpaceMonitor"`
		TemporarySpaceMonitor struct {
			Timestamp int64  `json:"timestamp"`
			Path      string `json:"path"`
			Size      int64  `json:"size"`
		} `json:"hudson.node_monitors.TemporarySpaceMonitor"`
		DiskSpaceMonitor struct {
			Timestamp int64  `json:"timestamp"`
			Path      string `json:"path"`
			Size      int64  `json:"size"`
		} `json:"hudson.node_monitors.DiskSpaceMonitor"`
		ArchitectureMonitor string `json:"hudson.node_monitors.ArchitectureMonitor"`
		ResponseTimeMonitor struct {
			Timestamp int64 `json:"timestamp"`
			Average   int64 `json:"average"`
		} `json:"hudson.node_monitors.ResponseTimeMonitor"`
		ClockMonitor struct {
			Diff int64 `json:"diff"`
		} `json:"hudson.node_monitors.ClockMonitor"`
	} `json:"monitorData"`
	NumExecutors       int    `json:"numExecutors"`
	Offline            bool   `json:"offline"`
	OfflineCauseReason string `json:"offlineCauseReason"`
	TemporarilyOffline bool   `json:"temporarilyOffline"`
}

type ComputerObject

type ComputerObject struct {
	BusyExecutors  int        `json:"busyExecutors"`
	Computers      []Computer `json:"computer"`
	DisplayName    string     `json:"displayName"`
	TotalExecutors int        `json:"totalExecutors"`
}

type ConditionFunc

type ConditionFunc func() (done bool, err error)

ConditionFunc returns true if the condition is satisfied, or an error if the loop should be aborted.

func NewConditionFunc

func NewConditionFunc(functions ...ConditionFunc) ConditionFunc

NewConditionFunc combines the functions into a single function that can be used when polling

type Credential

type Credential struct {
	Credentials Credentials `json:"credentials"`
}

type Credentials

type Credentials struct {
	Scope    string `json:"scope"`
	Id       string `json:"id"`
	Username string `json:"username"`
	Password string `json:"password"`
	Class    string `json:"$class"`
}

type GitBrowser

type GitBrowser struct {
	Class       string `xml:"class,attr"`
	Url         string `xml:"url"`
	ProjectName string `xml:"projectName"`
}

type GitExtensions

type GitExtensions struct {
	Class       string      `xml:"class,attr"`
	LocalBranch LocalBranch `xml:"hudson.plugins.git.extensions.impl.LocalBranch"`
}

type GitSubmoduleCfg

type GitSubmoduleCfg struct {
	Class string `xml:"class,attr"`
}

type Health

type Health struct {
	Description string `json:"description"`
}

type Item

type Item struct {
	Actions                    []Action `json:"actions"`
	Blocked                    bool     `json:"blocked"`
	Buildable                  bool     `json:"buildable"`
	Id                         int64    `json:"id"`
	InQueueSince               int64    `json:"inQueueSince"`
	Params                     string   `json:"params"`
	Stuck                      bool     `json:"stuck"`
	Task                       Task     `json:"task"`
	URL                        string   `json:"url"`
	Why                        string   `json:"why"`
	BuildableStartMilliseconds int64    `json:"buildableStartMilliseconds"`
	Pending                    bool     `json:"pending"`
}

type Jenkins

type Jenkins struct {
	// contains filtered or unexported fields
}

func NewJenkins

func NewJenkins(auth *Auth, baseUrl string) *Jenkins

func (*Jenkins) AddJobToView

func (jenkins *Jenkins) AddJobToView(viewName string, job Job) error

Add job to view

func (*Jenkins) BaseURL

func (jenkins *Jenkins) BaseURL() string

BaseURL returns the base Jenkins URL

func (*Jenkins) Build

func (jenkins *Jenkins) Build(job Job, params url.Values) error

Create a new build for this job. Params can be nil.

func (*Jenkins) CreateCredential

func (jenkins *Jenkins) CreateCredential(id, username, pass string) error

Create a new credentials

func (*Jenkins) CreateFolderJobWithXML

func (jenkins *Jenkins) CreateFolderJobWithXML(jobItemXml string, folder string, jobName string) error

Create a new job in a folder

func (*Jenkins) CreateJob

func (jenkins *Jenkins) CreateJob(jobItem JobItem, jobName string) error

Create a new job

func (*Jenkins) CreateJobWithXML

func (jenkins *Jenkins) CreateJobWithXML(jobItemXml string, jobName string) error

Create a new job

func (*Jenkins) CreateView

func (jenkins *Jenkins) CreateView(listView ListView) error

Create a new view

func (*Jenkins) DeleteJob

func (jenkins *Jenkins) DeleteJob(job Job) error

Delete a job

func (*Jenkins) GetArtifact

func (jenkins *Jenkins) GetArtifact(build Build, artifact Artifact) ([]byte, error)

GetArtifact return the content of a build artifact

func (*Jenkins) GetBuild

func (jenkins *Jenkins) GetBuild(job Job, number int) (build Build, err error)

GetBuild returns a number-th build result of specified job.

func (*Jenkins) GetBuildConsoleOutput

func (jenkins *Jenkins) GetBuildConsoleOutput(build Build) ([]byte, error)

Get the console output from a build.

func (*Jenkins) GetBuildURL

func (jenkins *Jenkins) GetBuildURL(job Job, buildNumber int) string

func (*Jenkins) GetComputer

func (jenkins *Jenkins) GetComputer(name string) (computer Computer, err error)

GetComputer returns a Computer object with a specified name.

func (*Jenkins) GetComputerObject

func (jenkins *Jenkins) GetComputerObject() (co ComputerObject, err error)

GetComputerObject returns the main ComputerObject

func (*Jenkins) GetComputers

func (jenkins *Jenkins) GetComputers() ([]Computer, error)

GetComputers returns the list of all Computer objects

func (*Jenkins) GetCredential

func (jenkins *Jenkins) GetCredential(id string) (c *Credentials, err error)

Get a credentials

func (*Jenkins) GetJob

func (jenkins *Jenkins) GetJob(name string) (job Job, err error)

GetJob returns a job which has specified name.

func (*Jenkins) GetJobByPath

func (jenkins *Jenkins) GetJobByPath(path ...string) (job Job, err error)

GetJobByPath looks up the jenkins job via the one or more paths

func (*Jenkins) GetJobConfig

func (jenkins *Jenkins) GetJobConfig(name string) (job JobItem, err error)

GetJobConfig returns a maven job, has the one used to create Maven job

func (*Jenkins) GetJobURLPath

func (jenkins *Jenkins) GetJobURLPath(name string) string

GetJobUrl returns the URL path for the job with the specified name.

func (*Jenkins) GetJobs

func (jenkins *Jenkins) GetJobs() ([]Job, error)

GetJobs returns all jobs you can read.

func (*Jenkins) GetLastBuild

func (jenkins *Jenkins) GetLastBuild(job Job) (build Build, err error)

GetLastBuild returns the last build of specified job.

func (*Jenkins) GetLogFromURL

func (jenkins *Jenkins) GetLogFromURL(buildUrl string, start int64, logData *LogData) error

GetLog returns the log from the given start port (default to zero for all of it)

func (*Jenkins) GetMultiBranchJob

func (jenkins *Jenkins) GetMultiBranchJob(organisationJobName, multibranchJobName, branch string) (job Job, err error)

func (*Jenkins) GetOrganizationScanResult

func (jenkins *Jenkins) GetOrganizationScanResult(retries int, job Job) (status string, err error)

GetLastBuild returns the last build of specified job.

func (*Jenkins) GetQueue

func (jenkins *Jenkins) GetQueue() (queue Queue, err error)

GetQueue returns the current build queue from Jenkins

func (*Jenkins) IsErrNotFound

func (jenkins *Jenkins) IsErrNotFound(err error) bool

func (*Jenkins) NewLogPoller

func (jenkins *Jenkins) NewLogPoller(buildUrl string, writer io.Writer) *LogPoller

NewLogPoller returns a LogPoller for polling the log on the given URL to the given writer

func (*Jenkins) Post

func (jenkins *Jenkins) Post(path string, params url.Values, body interface{}) (err error)

func (*Jenkins) QuietDown

func (jenkins *Jenkins) QuietDown() error

QuietDown

func (*Jenkins) Reload

func (jenkins *Jenkins) Reload() error

Reload will reload the configuration from disk

func (*Jenkins) RemoveJob

func (jenkins *Jenkins) RemoveJob(jobName string) error

Remove a job

func (*Jenkins) Restart

func (jenkins *Jenkins) Restart() error

Restart

func (*Jenkins) SafeRestart

func (jenkins *Jenkins) SafeRestart() error

SafeRestart waits for the jenkins server to be quiet then restarts it

func (*Jenkins) SetBuildDescription

func (jenkins *Jenkins) SetBuildDescription(build Build, description string) error

SetBuildDescription sets the description of a build

func (*Jenkins) SetHTTPClient

func (jenkins *Jenkins) SetHTTPClient(client *http.Client)

SetHTTPClient with timeouts or insecure transport, etc.

func (*Jenkins) StopBuild

func (jenkins *Jenkins) StopBuild(job Job, number int) error

Stops the given build.

func (*Jenkins) TailLog

func (jenkins *Jenkins) TailLog(buildUrl string, writer io.Writer, pollTime time.Duration, timeoutPeriod time.Duration) error

TailLog tails the jenkins log to the given writer polling until there is no more output if timeoutPeriod is specified as a positive value then the tail will terminate if the timeout is reached before the log is completely fetched

func (*Jenkins) TailLogFunc

func (jenkins *Jenkins) TailLogFunc(buildUrl string, writer io.Writer) ConditionFunc

TailLogFunc returns a ConditionFunc for polling the log on the given URL to the given writer

func (*Jenkins) UpdateJob

func (jenkins *Jenkins) UpdateJob(jobItem JobItem, jobName string) error

Update a job

type JenkinsClient

type JenkinsClient interface {
	GetJobs() ([]Job, error)
	GetJob(string) (Job, error)
	GetJobURLPath(string) string
	IsErrNotFound(error) bool
	BaseURL() string
	SetHTTPClient(*http.Client)
	Post(string, url.Values, interface{}) (err error)
	GetJobConfig(string) (JobItem, error)
	GetBuild(Job, int) (Build, error)
	GetLastBuild(Job) (Build, error)
	StopBuild(Job, int) error
	GetMultiBranchJob(string, string, string) (Job, error)
	GetJobByPath(...string) (Job, error)
	GetOrganizationScanResult(int, Job) (string, error)
	CreateJob(JobItem, string) error
	Reload() error
	Restart() error
	SafeRestart() error
	QuietDown() error
	CreateJobWithXML(string, string) error
	CreateFolderJobWithXML(string, string, string) error
	GetCredential(string) (*Credentials, error)
	CreateCredential(string, string, string) error
	DeleteJob(Job) error
	UpdateJob(JobItem, string) error
	RemoveJob(string) error
	AddJobToView(string, Job) error
	CreateView(ListView) error
	Build(Job, url.Values) error
	GetBuildConsoleOutput(Build) ([]byte, error)
	GetQueue() (Queue, error)
	GetArtifact(Build, Artifact) ([]byte, error)
	SetBuildDescription(Build, string) error
	GetComputerObject() (ComputerObject, error)
	GetComputers() ([]Computer, error)
	GetComputer(string) (Computer, error)
	GetBuildURL(Job, int) string
	GetLogFromURL(string, int64, *LogData) error
	TailLog(string, io.Writer, time.Duration, time.Duration) error
	TailLogFunc(string, io.Writer) ConditionFunc
	NewLogPoller(string, io.Writer) *LogPoller
}

JenkinsClient is the interface for interacting with jenkins go:generate pegomock generate github.com/jenkins-x/golang-jenkins JenkinsClient -o mocks/jenkins_client.go --package gojenkins_test

type Job

type Job struct {
	Actions  []Action `json:"actions"`
	Class    string   `json:"_class"`
	Name     string   `json:"name"`
	FullName string   `json:"fullName"`
	Url      string   `json:"url"`
	Color    string   `json:"color"`

	Buildable    bool     `json:"buildable"`
	DisplayName  string   `json:"displayName"`
	Description  string   `json:"description"`
	HealthReport []Health `json:"healthReport"`

	Jobs []Job `json:"jobs"` // for folders

	LastBuild             Build `json:"lastBuild"`
	LastCompletedBuild    Build `json:"lastCompletedBuild"`
	LastFailedBuild       Build `json:"lastFailedBuild"`
	LastStableBuild       Build `json:"lastStableBuild"`
	LastSuccessfulBuild   Build `json:"lastSuccessfulBuild"`
	LastUnstableBuild     Build `json:"lastUnstableBuild"`
	LastUnsuccessfulBuild Build `json:"lastUnsuccessfulBuild"`
}

type JobColumn

type JobColumn struct {
	XMLName xml.Name `xml:"hudson.views.JobColumn"`
}

type JobItem

type JobItem struct {
	XMLName         struct{}         `xml:"item"`
	MavenJobItem    *MavenJobItem    `xml:"maven2-moduleset"`
	PipelineJobItem *PipelineJobItem `xml:"flow-definition"`
}

type JobProperties

type JobProperties struct {
}

type JobSetting

type JobSetting struct {
}

type JobSettings

type JobSettings struct {
	Class      string `xml:"class,attr"`
	JobSetting []JobSetting
}

type LastDurationColumn

type LastDurationColumn struct {
	XMLName xml.Name `xml:"hudson.views.LastDurationColumn"`
}

type LastFailureColumn

type LastFailureColumn struct {
	XMLName xml.Name `xml:"hudson.views.LastFailureColumn"`
}

type LastSuccessColumn

type LastSuccessColumn struct {
	XMLName xml.Name `xml:"hudson.views.LastSuccessColumn"`
}

type ListView

type ListView struct {
	XMLName         xml.Name `xml:"hudson.model.ListView"`
	Name            string   `xml:"name"`
	FilterExecutors bool     `xml:"filterExecutors"`
	FilterQueue     bool     `xml:"filterQueue"`
	Columns         Columns  `xml:"columns"`
}

func NewListView

func NewListView(name string) ListView

type LocalBranch

type LocalBranch struct {
	LocalBranch string `xml:"localBranch"`
}

type Locations

type Locations struct {
	Location []ScmSvnLocation `xml:"hudson.scm.SubversionSCM_-ModuleLocation"`
}

type LogData

type LogData struct {
	Data     []byte
	TextSize int64
	MoreData bool
}

type LogPoller

type LogPoller struct {
	// contains filtered or unexported fields
}

func (*LogPoller) Apply

func (p *LogPoller) Apply() (bool, error)

type MavenJobItem

type MavenJobItem struct {
	XMLName                          struct{}             `xml:"maven2-moduleset"`
	Plugin                           string               `xml:"plugin,attr"`
	Actions                          string               `xml:"actions"`
	Description                      string               `xml:"description"`
	KeepDependencies                 string               `xml:"keepDependencies"`
	Properties                       JobProperties        `xml:"properties"`
	Scm                              Scm                  `xml:"scm"`
	CanRoam                          string               `xml:"canRoam"`
	Disabled                         string               `xml:"disabled"`
	BlockBuildWhenDownstreamBuilding string               `xml:"blockBuildWhenDownstreamBuilding"`
	BlockBuildWhenUpstreamBuilding   string               `xml:"blockBuildWhenUpstreamBuilding"`
	Triggers                         Triggers             `xml:"triggers"`
	ConcurrentBuild                  string               `xml:"concurrentBuild"`
	Goals                            string               `xml:"goals"`
	AggregatorStyleBuild             string               `xml:"aggregatorStyleBuild"`
	IncrementalBuild                 string               `xml:"incrementalBuild"`
	IgnoreUpstremChanges             string               `xml:"ignoreUpstremChanges"`
	ArchivingDisabled                string               `xml:"archivingDisabled"`
	SiteArchivingDisabled            string               `xml:"siteArchivingDisabled"`
	FingerprintingDisabled           string               `xml:"fingerprintingDisabled"`
	ResolveDependencies              string               `xml:"resolveDependencies"`
	ProcessPlugins                   string               `xml:"processPlugins"`
	MavenName                        string               `xml:"mavenName"`
	MavenValidationLevel             string               `xml:"mavenValidationLevel"`
	DefaultGoals                     string               `xml:"defaultGoals"`
	RunHeadless                      string               `xml:"runHeadless"`
	DisableTriggerDownstreamProjects string               `xml:"disableTriggerDownstreamProjects"`
	Settings                         JobSettings          `xml:"settings"`
	GlobalSettings                   JobSettings          `xml:"globalSettings"`
	RunPostStepsIfResult             RunPostStepsIfResult `xml:"runPostStepsIfResult"`
	Postbuilders                     PostBuilders         `xml:"postbuilders"`
}

type MultiBranchProject

type MultiBranchProject struct {
	Class string `json:"_class"`
	Name  string `json:"name"`
	Url   string `json:"url"`
}

type MultiError

type MultiError struct {
	Errors []error
}

func (*MultiError) Collect

func (m *MultiError) Collect(err error)

func (MultiError) ToError

func (m MultiError) ToError() error

type Parameter

type Parameter struct {
	Name  string      `json:"name"`
	Value interface{} `json:"value"`
}

Parameter for a build

type ParameterDefinition

type ParameterDefinition struct {
	Name string `json:"name"`
}

type PipelineDefinition

type PipelineDefinition struct {
	Scm        Scm    `xml:"scm"`
	ScriptPath string `xml:"scriptPath"`
	Script     string `xml:"script"`
}

type PipelineJobItem

type PipelineJobItem struct {
	XMLName struct{} `xml:"flow-definition"`
	/*
		Plugin                           string               `xml:"plugin,attr"`
	*/
	Actions          string             `xml:"actions"`
	Description      string             `xml:"description"`
	KeepDependencies string             `xml:"keepDependencies"`
	Properties       JobProperties      `xml:"properties"`
	Definition       PipelineDefinition `xml:"definition"`
	Triggers         Triggers           `xml:"triggers"`
}

type PostBuilder

type PostBuilder interface {
}

type PostBuilders

type PostBuilders struct {
	XMLName     xml.Name `xml:"postbuilders"`
	PostBuilder []PostBuilder
}

type Queue

type Queue struct {
	Items []Item `json:"items"`
}

type RunPostStepsIfResult

type RunPostStepsIfResult struct {
	Name          string `xml:"name"`
	Ordinal       string `xml:"ordinal"`
	Color         string `xml:"color"`
	CompleteBuild string `xml:"completeBuild"`
}

type Scm

type Scm struct {
	ScmContent
	Class  string `xml:"class,attr"`
	Plugin string `xml:"plugin,attr"`
}

func (*Scm) MarshalXML

func (iscm *Scm) MarshalXML(e *xml.Encoder, start xml.StartElement) error

MarshalXML implements xml.MarshalXML interface Encodes the multiple types of Scm

func (*Scm) UnmarshalXML

func (iscm *Scm) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error

UnmarshalXML implements xml.UnmarshalXML interface Decode between multiple types of Scm

type ScmAuthor

type ScmAuthor struct {
	FullName    string `json:"fullName"`
	AbsoluteUrl string `json:"absoluteUrl"`
}

type ScmChangeSet

type ScmChangeSet struct {
	Kind  string          `json:"kind"`
	Items []ChangeSetItem `json:"items"`
}

type ScmChangeSetPath

type ScmChangeSetPath struct {
	EditType string `json:"editType"`
	File     string `json:"File"`
}

type ScmContent

type ScmContent interface{}

type ScmGit

type ScmGit struct {
	UserRemoteConfigs                 UserRemoteConfigs `xml:"userRemoteConfigs"`
	Branches                          Branches          `xml:"branches"`
	DoGenerateSubmoduleConfigurations bool              `xml:"doGenerateSubmoduleConfigurations"`
	GitBrowser                        GitBrowser        `xml:"browser"`
	GitSubmoduleCfg                   GitSubmoduleCfg   `xml:"submoduleCfg"`
	GitExtensions                     GitExtensions     `xml:"extensions"`
}

type ScmSvn

type ScmSvn struct {
	Locations              Locations        `xml:"locations"`
	ExcludedRegions        string           `xml:"excludedRegions"`
	IncludedRegions        string           `xml:"includedRegions"`
	ExcludedUsers          string           `xml:"excludedUsers"`
	ExcludedRevprop        string           `xml:"excludedRevprop"`
	ExcludedCommitMessages string           `xml:"excludedCommitMessages"`
	WorkspaceUpdater       WorkspaceUpdater `xml:"workspaceUpdater"`
	IgnoreDirPropChanges   string           `xml:"ignoreDirPropChanges"`
	FilterChangelog        string           `xml:"filterChangelog"`
}

type ScmSvnLocation

type ScmSvnLocation struct {
	Remote                string `xml:"remote"`
	Local                 string `xml:"local"`
	DepthOption           string `xml:"depthOption"`
	IgnoreExternalsOption string `xml:"ignoreExternalsOption"`
}

type ScmTrigger

type ScmTrigger struct {
	XMLName               struct{} `xml:"hudson.triggers.SCMTrigger"`
	Spec                  string   `xml:"spec"`
	IgnorePostCommitHooks string   `xml:"ignorePostCommitHooks"`
}

type ShellBuilder

type ShellBuilder struct {
	XMLName xml.Name `xml:"hudson.tasks.Shell"`
	Command string   `xml:"command"`
}

type StatusColumn

type StatusColumn struct {
	XMLName xml.Name `xml:"hudson.views.StatusColumn"`
}

type Task

type Task struct {
	Name  string `json:"name"`
	Url   string `json:"url"`
	Color string `json:"color"`
}

type Trigger

type Trigger interface {
}

type Triggers

type Triggers struct {
	Trigger []Trigger
}

type UpstreamCause

type UpstreamCause struct {
	ShortDescription string `json:"shortDescription"`
	UpstreamBuild    int    `json:"upstreamBuild"`
	UpstreamProject  string `json:"upstreamProject"`
	UpstreamUrl      string `json:"upstreamUrl"`
}

type UserRemoteConfig

type UserRemoteConfig struct {
	Urls []string `xml:"url"`
}

type UserRemoteConfigs

type UserRemoteConfigs struct {
	UserRemoteConfig UserRemoteConfig `xml:"hudson.plugins.git.UserRemoteConfig"`
}

type WeatherColumn

type WeatherColumn struct {
	XMLName xml.Name `xml:"hudson.views.WeatherColumn"`
}

type WorkspaceUpdater

type WorkspaceUpdater struct {
	Class string `xml:"class,attr"`
}

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier