use of com.synopsys.integration.jira.common.server.configuration.JiraServerRestConfigBuilder in project hub-alert by blackducksoftware.
the class JiraServerProperties method createJiraServerConfig.
public JiraServerRestConfig createJiraServerConfig() throws IssueTrackerException {
JiraServerRestConfigBuilder jiraServerConfigBuilder = new JiraServerRestConfigBuilder();
jiraServerConfigBuilder.setUrl(url);
jiraServerConfigBuilder.setAuthPassword(password);
jiraServerConfigBuilder.setAuthUsername(username);
jiraServerConfigBuilder.setProxyInfo(proxyInfo);
try {
return jiraServerConfigBuilder.build();
} catch (IllegalArgumentException e) {
throw new IssueTrackerException("There was an issue building the configuration: " + e.getMessage());
}
}
Aggregations