groovy

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2020 License: Apache-2.0 Imports: 14 Imported by: 0

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 added in v0.2.0

func AddSecretsLoaderToGroovyScript(secretsPath string) func(groovyScript string) string

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, logger logr.Logger, jenkins *v1alpha2.Jenkins, configurationType string, customization v1alpha2.Customization) *Groovy

New creates new instance of Groovy

func (*Groovy) Ensure added in v0.0.6

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 added in v0.2.0

func (g *Groovy) EnsureSingle(source, name, hash, groovyScript string) (requeue bool, err error)

EnsureSingle runs single groovy script

func (*Groovy) WaitForSecretSynchronization added in v0.2.0

func (g *Groovy) WaitForSecretSynchronization(secretsPath string) (requeue bool, err error)

WaitForSecretSynchronization runs groovy script which waits to synchronize secrets in pod by k8s

Jump to

Keyboard shortcuts

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