use of com.synopsys.integration.jira.common.cloud.configuration.JiraCloudRestConfigBuilder in project hub-alert by blackducksoftware.
the class JiraCloudProperties method createJiraServerConfig.
public JiraCloudRestConfig createJiraServerConfig() throws IssueTrackerException {
JiraCloudRestConfigBuilder jiraServerConfigBuilder = new JiraCloudRestConfigBuilder();
jiraServerConfigBuilder.setUrl(url);
jiraServerConfigBuilder.setApiToken(accessToken);
jiraServerConfigBuilder.setAuthUserEmail(username);
jiraServerConfigBuilder.setProxyInfo(proxyInfo);
try {
return jiraServerConfigBuilder.build();
} catch (IllegalArgumentException e) {
throw new IssueTrackerException("There was an issue building the configuration: " + e.getMessage());
}
}
Aggregations