Documentation ¶
Overview ¶
Package groovy implements groovy scripts execution via Jenkins Job
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddSecretsLoaderToGroovyScript ¶
AddSecretsLoaderToGroovyScript modify groovy scripts to load Kubernetes secrets into groovy map
Types ¶
type Groovy ¶
type Groovy struct {
// contains filtered or unexported fields
}
Groovy defines API for groovy secrets execution via jenkins job
func New ¶
func New(jenkinsClient jenkinsclient.Jenkins, k8sClient k8s.Client, jenkins *v1alpha2.Jenkins, configurationType string, customization v1alpha2.Customization) *Groovy
New creates new instance of Groovy
func (*Groovy) Ensure ¶
func (g *Groovy) Ensure(filter func(name string) bool, updateGroovyScript func(groovyScript string) string) (requeue bool, err error)
Ensure runs all groovy scripts configured in customization structure
func (*Groovy) EnsureSingle ¶
EnsureSingle runs single groovy script
Click to show internal directories.
Click to hide internal directories.