Class JiraBuildInfoSenderImpl
java.lang.Object
com.atlassian.jira.cloud.jenkins.buildinfo.service.JiraBuildInfoSenderImpl
- All Implemented Interfaces:
JiraBuildInfoSender
- Direct Known Subclasses:
FreestyleJiraBuildInfoSenderImpl
,MultibranchBuildInfoSenderImpl
Implementation of JiraBuildInfoSender to send build updates to Jira by building the payload,
generating the access token, sending the request and parsing the response.
-
Field Summary
-
Constructor Summary
ConstructorDescriptionJiraBuildInfoSenderImpl
(JiraSiteConfigRetriever siteConfigRetriever, SecretRetriever secretRetriever, CloudIdResolver cloudIdResolver, BuildsApi buildsApi, RunWrapperProvider runWrapperProvider) -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract Builds
createJiraBuildInfo
(JiraBuildInfoRequest request, Set<String> issueKeys) getIssueKeys
(JiraBuildInfoRequest request, PipelineLogger pipelineLogger) sendBuildInfo
(JiraBuildInfoRequest request, PipelineLogger pipelineLogger) sendBuildInfoToJiraSite
(JiraCloudSiteConfig siteConfig, JiraBuildInfoRequest request, PipelineLogger pipelineLogger) Sends build data to a Jira site.
-
Field Details
-
runWrapperProvider
-
-
Constructor Details
-
JiraBuildInfoSenderImpl
public JiraBuildInfoSenderImpl(JiraSiteConfigRetriever siteConfigRetriever, SecretRetriever secretRetriever, CloudIdResolver cloudIdResolver, BuildsApi buildsApi, RunWrapperProvider runWrapperProvider)
-
-
Method Details
-
sendBuildInfo
public List<JiraSendInfoResponse> sendBuildInfo(JiraBuildInfoRequest request, PipelineLogger pipelineLogger) - Specified by:
sendBuildInfo
in interfaceJiraBuildInfoSender
-
sendBuildInfoToJiraSite
public JiraSendInfoResponse sendBuildInfoToJiraSite(@Nonnull JiraCloudSiteConfig siteConfig, @Nonnull JiraBuildInfoRequest request, @Nonnull PipelineLogger pipelineLogger) Sends build data to a Jira site.- Parameters:
siteConfig
- - Jira to send data torequest
- - JiraBuildInfoRequest::site is ignored and jiraSite is used instead
-
getIssueKeys
protected abstract Set<String> getIssueKeys(JiraBuildInfoRequest request, PipelineLogger pipelineLogger) -
createJiraBuildInfo
-