Search in sources :

Example 1 with JiraCloudRestConfigBuilder

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

Aggregations

IssueTrackerException (com.synopsys.integration.alert.common.channel.issuetracker.exception.IssueTrackerException)1 JiraCloudRestConfigBuilder (com.synopsys.integration.jira.common.cloud.configuration.JiraCloudRestConfigBuilder)1