use of com.atlassian.jira.rest.client.internal.async.CustomAsynchronousJiraRestClientFactory in project cx-flow by checkmarx-ltd.
the class JiraTestUtils method initClient.
@PostConstruct
public void initClient() {
if (jiraProperties != null && !ScanUtils.empty(jiraProperties.getUrl())) {
CustomAsynchronousJiraRestClientFactory factory = new CustomAsynchronousJiraRestClientFactory();
URI jiraURI = null;
try {
jiraURI = new URI(jiraProperties.getUrl());
} catch (URISyntaxException e) {
log.error("Error constructing URI for JIRA", e);
}
this.client = factory.createWithBasicHttpAuthenticationCustom(jiraURI, jiraProperties.getUsername(), jiraProperties.getToken(), jiraProperties.getHttpTimeout());
}
}
use of com.atlassian.jira.rest.client.internal.async.CustomAsynchronousJiraRestClientFactory in project cx-flow by checkmarx-ltd.
the class JiraService method init.
@PostConstruct
public void init() {
if (jiraProperties != null && !ScanUtils.empty(jiraProperties.getUrl())) {
CustomAsynchronousJiraRestClientFactory factory = new CustomAsynchronousJiraRestClientFactory();
try {
this.jiraURI = new URI(jiraProperties.getUrl());
this.client = factory.createWithBasicHttpAuthenticationCustom(jiraURI, jiraProperties.getUsername(), jiraProperties.getToken(), jiraProperties.getHttpTimeout());
this.issueClient = this.client.getIssueClient();
this.projectClient = this.client.getProjectClient();
this.metaClient = this.client.getMetadataClient();
configJira();
} catch (URISyntaxException | RestClientException e) {
log.error("Error constructing URI for JIRA: {}", e.getMessage());
}
}
}
Aggregations