Documentation ¶
Index ¶
- func PrepareGetArtifact(roundTripper *mhttp.MockRoundTripper, ...) (response *http.Response)
- func PrepareGetArtifacts(roundTripper *mhttp.MockRoundTripper, rootURL, user, passwd, jobName string, ...) (response *http.Response)
- func PrepareGetEmptyArtifacts(roundTripper *mhttp.MockRoundTripper, rootURL, user, passwd, jobName string, ...) (response *http.Response)
- func PrepareGetMultiBranchPipelineArtifact(roundTripper *mhttp.MockRoundTripper, ...) (response *http.Response)
- func PrepareGetNoExistsArtifact(roundTripper *mhttp.MockRoundTripper, ...) (response *http.Response)
- func PrepareGetNoExistsMultiBranchPipelineArtifact(roundTripper *mhttp.MockRoundTripper, ...) (response *http.Response)
- type Artifact
- type Client
- func (q *Client) GetArtifact(projectName, pipelineName string, buildID int, filename string) (io.ReadCloser, error)
- func (q *Client) GetArtifactFromMultiBranchPipeline(projectName, pipelineName string, isMultiBranch bool, branchName string, ...) (io.ReadCloser, error)
- func (q *Client) List(jobName string, buildID int) (artifacts []Artifact, err error)
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 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
Click to show internal directories.
Click to hide internal directories.