groovy

package
v0.0.0-...-75519fd Latest Latest
Warning

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

Go to latest
Published: May 23, 2019 License: Apache-2.0 Imports: 10 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

This section is empty.

Types

type Groovy

type Groovy struct {
	// contains filtered or unexported fields
}

Groovy defines API for groovy scripts execution via jenkins job

func New

func New(jenkinsClient jenkinsclient.Jenkins, k8sClient k8s.Client, logger logr.Logger, jobName, scriptsPath string) *Groovy

New creates new instance of Groovy

func (*Groovy) ConfigureJob

func (g *Groovy) ConfigureJob() error

ConfigureJob configures jenkins job for executing groovy scripts

func (*Groovy) Ensure

func (g *Groovy) Ensure(secretOrConfigMapData map[string]string, jenkins *v1alpha1.Jenkins) (bool, error)

Ensure executes groovy script and verifies jenkins job status according to reconciliation loop lifecycle

Jump to

Keyboard shortcuts

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