artifact

package
v0.0.15 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2024 License: MIT Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PrepareGetArtifact added in v0.0.9

func PrepareGetArtifact(roundTripper *mhttp.MockRoundTripper, rootURL, user, passwd, projectName, pipelineName string, buildID int, filename string) (response *http.Response)

PrepareGetArtifact only for test

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

func PrepareGetMultiBranchPipelineArtifact added in v0.0.14

func PrepareGetMultiBranchPipelineArtifact(roundTripper *mhttp.MockRoundTripper, rootURL, user, passwd, projectName, pipelineName string, buildID int, filename, branchName string) (response *http.Response)

PrepareGetMultiBranchPipelineArtifact only for test

func PrepareGetNoExistsArtifact added in v0.0.9

func PrepareGetNoExistsArtifact(roundTripper *mhttp.MockRoundTripper, rootURL, user, passwd, projectName, pipelineName string, buildID int, filename string) (response *http.Response)

PrepareGetNoExistsArtifact only for test

func PrepareGetNoExistsMultiBranchPipelineArtifact added in v0.0.14

func PrepareGetNoExistsMultiBranchPipelineArtifact(roundTripper *mhttp.MockRoundTripper, rootURL, user, passwd, projectName, pipelineName string, buildID int, filename, branchName string) (response *http.Response)

PrepareGetNoExistsMultiBranchPipelineArtifact 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) GetArtifact added in v0.0.9

func (q *Client) GetArtifact(projectName, pipelineName string, buildID int, filename string) (io.ReadCloser, error)

GetArtifact download artifact using stream

func (*Client) GetArtifactFromMultiBranchPipeline added in v0.0.14

func (q *Client) GetArtifactFromMultiBranchPipeline(projectName, pipelineName string, isMultiBranch bool, branchName string, buildID int, filename string) (io.ReadCloser, error)

GetArtifactFromMultiBranchPipeline download multi pipeline artifact using stream

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