groovy

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2023 License: Apache-2.0, CC-BY-4.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

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, 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

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

EnsureSingle runs single groovy script

func (*Groovy) WaitForSecretSynchronization

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