jenkins-jira-plugin: Failed to authenticate with JIRA

336 views
Skip to first unread message

James Green

unread,
Jul 24, 2017, 4:02:42 AM7/24/17
to jenkins...@googlegroups.com
Got the latest LTS version of Jenkins with current jenkins-jira-plugin and a JIRA 6.4 installation.

I can log in to JIRA without issue and in the configuration I can see that the Remote API is indeed switched on.

When I do a wget from our Jenkins box against JIRA I get told I'm not authenticated - perfect.

When I configure the JIRA plugin within Jenkins using my credentials I hit "Validate" and get told Failed to authenticate.

Checked the Jenkins logs and I find a stack trace. An HTTP response has been received - HTML output with markup that I've failed to authenticate. The stack trace itself says it expected a JSON response!

I'm sure this must be pretty fundamental. Does it somehow require a more recent version of JIRA or something that I've not spotted?

Thanks,

James

Alex Johnson

unread,
Jul 25, 2017, 9:03:51 AM7/25/17
to Jenkins Users
Hello James,

Glancing at the plugin wiki page it seems you are correct - you need Jira v7.0 to use the latest version of the plugin.

Installing version 1.41 (latest pre-2.0) could resolve this problem http://updates.jenkins-ci.org/download/plugins/jira/, but I'd suggest upgrading Jira to 7.0 if possible to use the latest version of the plugin.

br,
-Alex

James Green

unread,
Jul 26, 2017, 4:29:07 AM7/26/17
to jenkins...@googlegroups.com
The Wiki page says:

"Starting from this plugin version 2.0, it is using JIRA REST API to communicate instead of JIRA RPC SOAP which has been deprecated and removed since JIRA v.7.0"

So that's the SOAP interface dropped since version 2. Inside JIRA I think it's had a REST interface since around version 4. There's no suggestion that the plugin should not work against the REST interface in JIRA-6.

My copy of IntelliJ is working against our JIRA-6 instance via the Tasks component without trouble - which I strongly suspect is also using the REST interface.

James


--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/d4e39397-8d99-4065-a686-a1659ebb3992%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages