Cannot get the Jenkins build status plugin to show build status, get 404 error.

Jon Starbird
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 5, 2013

Using the plugin I ran into a couple of issues. First it doesn't allow you to connect to a secure Jenkins server, would be nice if that got added.

In any event once I got the security part worked out I now get a 404 error. I looked at the source to see what the url is that it tries to use and if I construct a similar one it will work from the browser.

The URL it looked like it was using is something like this:

http://jenkins_server/job/JobName/api/json?nocache=somegeneratednumber

I ran that without the nocache setting and it works fine but when I try using it in the plugin I get the 404 error.

In the plugin I put the URL in as http://jenkins_server/

While putting the Job Name in the field it's required in.

Also I do have my Jira server setup with whitelist entry and my browsers have the sites on their trusted lists in case anyone is thinking along those lines.

Thanks,

J

3 answers

1 accepted

0 votes
Answer accepted
Jon Starbird
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 13, 2013

Found the problem. The Jenkins logs were not ending up where I thought they were via the web links. Once I pointed to the correct path all worked.

0 votes
My Kro
Contributor
April 18, 2013

Never mind, just worked it out. I specified a FQDN eg. "my-server.internal.domain.com" in both the gadget and the whitelist.

0 votes
My Kro
Contributor
April 18, 2013

Are you able to add any more detail? I have the same (or similar) problem.

Before whitelisting my-server I get:

Build status loading error: failed to parse JSON
Response content: Requests to http://my-server/job/MyProject/api/json?nocache=136633125 are
not allowed. See your administrator about configuring a whitelist entry for this destination
(http://confluence.atlassian.com/x/KQfCDQ ).

After whitelisting my-server I get:

Build status loading error: failed to parse JSON
Response content:
Host Not Found

DNS error (the host name of the page you are looking for does not exist) or Server did not accept the connection.

Please check that the host name has been spelled correctly.

The first instance appears in the JIRA log, the second is not shown at all in the log.

What was the 'correct path' you identified?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events