Search in sources :

Example 1 with JiraServerRestConfigBuilder

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());
    }
}
Also used : IssueTrackerException(com.synopsys.integration.alert.common.channel.issuetracker.exception.IssueTrackerException) JiraServerRestConfigBuilder(com.synopsys.integration.jira.common.server.configuration.JiraServerRestConfigBuilder)

Aggregations

IssueTrackerException (com.synopsys.integration.alert.common.channel.issuetracker.exception.IssueTrackerException)1 JiraServerRestConfigBuilder (com.synopsys.integration.jira.common.server.configuration.JiraServerRestConfigBuilder)1