jenkins

package
v0.0.0-...-5655933 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIError

type APIError struct {
	URL         string
	StatusCode  int
	Title       string
	Description string
}

func (APIError) Error

func (e APIError) Error() string

type Instance

type Instance struct {
	config.InstanceConfig

	URL      string `toml:"jenkins_url"`
	Username string `toml:"jenkins_username"`
	Password string `toml:"jenkins_password"`
	Source   string `toml:"jenkins_source"`
	Port     string `toml:"jenkins_port"`
	// HTTP Timeout specified as a string - 3s, 1m, 1h
	ResponseTimeout config.Duration

	tls.ClientConfig

	MaxConnections    int             `toml:"max_connections"`
	MaxBuildAge       config.Duration `toml:"max_build_age"`
	MaxSubJobDepth    int             `toml:"max_subjob_depth"`
	MaxSubJobPerLayer int             `toml:"max_subjob_per_layer"`
	JobExclude        []string        `toml:"job_exclude"`
	JobInclude        []string        `toml:"job_include"`

	NodeExclude []string `toml:"node_exclude"`
	NodeInclude []string `toml:"node_include"`
	// contains filtered or unexported fields
}

func (*Instance) Gather

func (ins *Instance) Gather(slist *types.SampleList)

func (*Instance) Init

func (ins *Instance) Init() error

type Jenkins

type Jenkins struct {
	config.PluginConfig
	Instances []*Instance `toml:"instances"`
}

func (*Jenkins) Clone

func (j *Jenkins) Clone() inputs.Input

func (*Jenkins) GetInstances

func (j *Jenkins) GetInstances() []inputs.Instance

func (*Jenkins) Name

func (j *Jenkins) Name() string

Jump to

Keyboard shortcuts

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