SonarQube cannot connect to JIRA 7 with REST API

2019-02-19 23:17发布

问题:

I am trying to connect my SonarQube installation to JIRA 7.0.2 for issue linking. I have filled the configuration fields (Files attached), but I get the error, impossible to connect to JIRA server. Both JIRA and SonarQube are on the same server.

回答1:

The JIRA Plugin is not compatible with JIRA 7 or newer (does not support REST).

From SonarQube Wiki:

  • Jira 3.x supported by 1.0, 1.1, 1.2
  • Jira 4.x supported by 1.0, 1.1, 1.2
  • Jira 5.x supported by 1.0, 1.1, 1.2
  • Jira 6.x supported by 1.2

There is an issue about support REST API in tracking system.



回答2:

https://github.com/Miovision/sonar-jira. It's working with JIRA 7.0

Copy the jar file "SonarInstallation\extensions\plugins"

Don't forget to remove the old one. "1.2"