artifact

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2022 License: MIT Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PrepareGetArtifacts

func PrepareGetArtifacts(roundTripper *mhttp.MockRoundTripper, rootURL, user, passwd,
	jobName string, buildID int) (response *http.Response)

PrepareGetArtifacts only for test

func PrepareGetEmptyArtifacts

func PrepareGetEmptyArtifacts(roundTripper *mhttp.MockRoundTripper, rootURL, user, passwd,
	jobName string, buildID int) (response *http.Response)

PrepareGetEmptyArtifacts only for test

Types

type Artifact

type Artifact struct {
	ID   string
	Name string
	Path string
	URL  string
	Size int64
}

Artifact represents the artifacts from Jenkins build

type Client

type Client struct {
	core.JenkinsCore
}

Client is client for getting the artifacts

func (*Client) List

func (q *Client) List(jobName string, buildID int) (artifacts []Artifact, err error)

List get the list of artifacts from a build

Jump to

Keyboard shortcuts

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