groovy

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2019 License: Apache-2.0 Imports: 9 Imported by: 4

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) ConfigureGroovyJob

func (g *Groovy) ConfigureGroovyJob() error

ConfigureGroovyJob configures jenkins job for executing groovy scripts

func (*Groovy) EnsureGroovyJob

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

EnsureGroovyJob 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