import "github.com/jenkins-zh/jenkins-cli/app/config"
const ( // ANNOTATION_CONFIG_LOAD annotation for config loading set ANNOTATION_CONFIG_LOAD string = "config.load" )
CommandHook is a hook
type Config struct { Current string `yaml:"current"` Language string `yaml:"language,omitempty"` JenkinsServers []JenkinsServer `yaml:"jenkins_servers"` PreHooks []CommandHook `yaml:"preHooks,omitempty"` PostHooks []CommandHook `yaml:"postHooks,omitempty"` PluginSuites []PluginSuite `yaml:"pluginSuites,omitempty"` Mirrors []JenkinsMirror `yaml:"mirrors"` }
Config is a global config struct
JenkinsMirror represents the mirror of Jenkins
type JenkinsServer struct { Name string `yaml:"name"` URL string `yaml:"url"` UserName string `yaml:"username"` Token string `yaml:"token"` Proxy string `yaml:"proxy,omitempty"` ProxyAuth string `yaml:"proxyAuth,omitempty"` InsecureSkipVerify bool `yaml:"insecureSkipVerify,omitempty"` Description string `yaml:"description,omitempty"` Data map[string]string `yaml:"data,omitempty"` }
JenkinsServer holds the configuration of your Jenkins
type PluginSuite struct { Name string `yaml:"name"` Plugins []string `yaml:"plugins"` Description string `yaml:"description"` }
PluginSuite define a suite of plugins
Package config is imported by 5 packages. Updated 2020-07-17. Refresh now. Tools for package owners.