plugins

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BasePluginsMap = map[string][]Plugin{
	Must(New("kubernetes:1.13.8")).String(): {
		Must(New(apacheComponentsClientPlugin)),
		Must(New(cloudBeesFolderPlugin)),
		Must(New(credentialsPlugin)),
		Must(New(durableTaskPlugin)),
		Must(New(jackson2ADIPlugin)),
		Must(New("kubernetes-credentials:0.4.0")),
		Must(New(plainCredentialsPlugin)),
		Must(New(structsPlugin)),
		Must(New("variant:1.1")),
		Must(New(workflowStepAPIPlugin)),
	},
	Must(New("workflow-job:2.31")).String(): {
		Must(New(scmAPIPlugin)),
		Must(New(scriptSecurityPlugin)),
		Must(New(structsPlugin)),
		Must(New(workflowAPIPlugin)),
		Must(New(workflowStepAPIPlugin)),
		Must(New(workflowSupportPlugin)),
	},
	Must(New("workflow-aggregator:2.6")).String(): {
		Must(New("ace-editor:1.1")),
		Must(New(apacheComponentsClientPlugin)),
		Must(New("authentication-tokens:1.3")),
		Must(New("branch-api:2.1.2")),
		Must(New(cloudBeesFolderPlugin)),
		Must(New("credentials-binding:1.17")),
		Must(New(credentialsPlugin)),
		Must(New(displayURLAPIPlugin)),
		Must(New("docker-commons:1.13")),
		Must(New("docker-workflow:1.17")),
		Must(New(durableTaskPlugin)),
		Must(New(gitClientPlugin)),
		Must(New("git-server:1.7")),
		Must(New("handlebars:1.1.1")),
		Must(New(jackson2ADIPlugin)),
		Must(New("jquery-detached:1.2.1")),
		Must(New(jschPlugin)),
		Must(New(junitPlugin)),
		Must(New("lockable-resources:2.3")),
		Must(New(mailerPlugin)),
		Must(New(matrixProjectPlugin)),
		Must(New("momentjs:1.1.1")),
		Must(New("pipeline-build-step:2.7")),
		Must(New("pipeline-graph-analysis:1.9")),
		Must(New("pipeline-input-step:2.9")),
		Must(New("pipeline-milestone-step:1.3.1")),
		Must(New("pipeline-model-api:1.3.4.1")),
		Must(New("pipeline-model-declarative-agent:1.1.1")),
		Must(New("pipeline-model-definition:1.3.4.1")),
		Must(New("pipeline-model-extensions:1.3.4.1")),
		Must(New("pipeline-rest-api:2.10")),
		Must(New("pipeline-stage-step:2.3")),
		Must(New("pipeline-stage-tags-metadata:1.3.4.1")),
		Must(New("pipeline-stage-view:2.10")),
		Must(New(plainCredentialsPlugin)),
		Must(New(scmAPIPlugin)),
		Must(New(scriptSecurityPlugin)),
		Must(New(sshCredentialsPlugin)),
		Must(New(structsPlugin)),
		Must(New(workflowAPIPlugin)),
		Must(New("workflow-basic-steps:2.13")),
		Must(New("workflow-cps-global-lib:2.12")),
		Must(New("workflow-cps:2.61.1")),
		Must(New("workflow-durable-task-step:2.27")),
		Must(New("workflow-job:2.31")),
		Must(New("workflow-multibranch:2.20")),
		Must(New(workflowSCMStepPlugin)),
		Must(New(workflowStepAPIPlugin)),
		Must(New(workflowSupportPlugin)),
	},
	Must(New("git:3.9.1")).String(): {
		Must(New(apacheComponentsClientPlugin)),
		Must(New(credentialsPlugin)),
		Must(New(displayURLAPIPlugin)),
		Must(New(gitClientPlugin)),
		Must(New(jschPlugin)),
		Must(New(junitPlugin)),
		Must(New(mailerPlugin)),
		Must(New(matrixProjectPlugin)),
		Must(New(scmAPIPlugin)),
		Must(New(scriptSecurityPlugin)),
		Must(New(sshCredentialsPlugin)),
		Must(New(structsPlugin)),
		Must(New(workflowAPIPlugin)),
		Must(New(workflowSCMStepPlugin)),
		Must(New(workflowStepAPIPlugin)),
	},
	Must(New("job-dsl:1.71")).String(): {
		Must(New(scriptSecurityPlugin)),
		Must(New(structsPlugin)),
	},
	Must(New("configuration-as-code:1.4")).String(): {
		Must(New("configuration-as-code-support:1.4")),
	},
}

BasePluginsMap contains plugins to install by operator

Functions

func BasePlugins

func BasePlugins() (plugins map[string][]string)

BasePlugins returns map of plugins to install by operator

func VerifyDependencies

func VerifyDependencies(values ...map[Plugin][]Plugin) bool

VerifyDependencies checks if all plugins have compatible versions

Types

type Plugin

type Plugin struct {
	Name    string `json:"name"`
	Version string `json:"version"`
	// contains filtered or unexported fields
}

Plugin represents jenkins plugin

func Must

func Must(plugin *Plugin, err error) Plugin

Must returns plugin from pointer and throws panic when error is set

func New

func New(nameWithVersion string) (*Plugin, error)

New creates plugin from string, for example "name-of-plugin:0.0.1"

func (Plugin) String

func (p Plugin) String() string

Jump to

Keyboard shortcuts

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