jenkins

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	URL      string
	Username string
	APIToken string
}

Client struct encapsulating ability to interact with Jenkins instance

func NewJenkinsClient

func NewJenkinsClient(url string, username string, token string) Client

NewJenkinsClient creates a new Jenkins Client instance.

func (*Client) CreateJob

func (jc *Client) CreateJob(jobName string, data io.Reader) error

CreateJob creates a new Jenkins Job using the config.xml passed via data.

func (*Client) DeleteJob

func (jc *Client) DeleteJob(jobName string) error

DeleteJob deletes the Job specified by jobName.

func (*Client) JobExists

func (jc *Client) JobExists(job string) (bool, error)

JobExists returns true if the specified Jenkins Job exists, false otherwise/ An error is returned in case an error occurs.

Directories

Path Synopsis
test_data

Jump to

Keyboard shortcuts

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