jenkins_provider

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FunctionBuild   = "build"
	FunctionRebuild = "rebuild"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type BuildData

type BuildData struct {
	JobName    string            `yaml:"job_name"`
	Limit      int               `yaml:"limit"`
	Parameters map[string]string `yaml:"parameters"`
}

build data

type PluginConfig

type PluginConfig struct {
	ServerURL string        `yaml:"server_url"`
	Insecure  bool          `yaml:"insecure"`
	Username  string        `yaml:"username"`
	Password  string        `yaml:"password"`
	Timeout   time.Duration `yaml:"timeout"`
}

plugin configuration

type ProviderConfig

type ProviderConfig struct {
	Function string        `yaml:"function"`
	Config   TaskConfig    `yaml:"config"`
	Data     []interface{} `yaml:"data"`
}

Provider configuration

func (*ProviderConfig) GetBuildData

func (p *ProviderConfig) GetBuildData() ([]BuildData, error)

converts the data to build data

type TaskConfig

type TaskConfig struct {
	WaitForCompletion bool          `yaml:"wait_for_completion"`
	RetryCount        int           `yaml:"retry_count"`
	Timeout           time.Duration `yaml:"timeout"`
}

Jump to

Keyboard shortcuts

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