Issues

Select view

Select search mode

 
1 of 13

Plugin message although successful login / Job sync fails when job deleted in Jenkins

Answered

Description

Hi,

I am trying out this plugin for the first time, but encounter two problems.

1) Although user authentication is successful, the plugin says that I should install the JIRA plugin on Jenkins side. But the plugin is installed and access from Jenkins to JIRA is successful. So the question is why does the check of JIRA plugin in Jenkins fail?

Additional information

  • Jenkins runs behind Apache and Apache checks user ID and Password (AuthBasicProvider file).

  • I have used the apiToken which is also the password for passing the Apache authentication.

2) Although I have deleted a job in Jenkins, JIRA does not delete the job when synchronizing. What can be the reason for this behavior and is there a way to fix this?

Kind regards
Tom

Environment

Jira: 7.0.2 Jenkins: 2.32.1 LTS JIRA plugin at Jenkins: 2:3

Attachments

5
  • 01 Feb 2017, 04:34 AM
  • 31 Jan 2017, 05:38 AM
  • 29 Jan 2017, 02:51 PM
  • 29 Jan 2017, 02:50 PM
  • 29 Jan 2017, 02:50 PM
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Components

Affects versions

Priority

Zoom

Open Zoom
Created January 29, 2017 at 2:51 PM
Updated February 2, 2017 at 9:24 AM
Resolved February 2, 2017 at 9:24 AM

Activity

Show:

Mark Rekveld February 2, 2017 at 9:24 AM

Hi Tom,

Good to hear and you are welcome.

I'll go ahead and close this issue, but if needed please feel free to open a new issue or comment on this one.

Cheers,
Mark

Tom Pfueller February 2, 2017 at 7:06 AM

Dear Mark,

I was able to install the correct JIRA plugin in Jenkins and the error message on JIRA side disappeared.
Thank you very much and this is solved.

Kind regards
Tom

Mark Rekveld February 1, 2017 at 9:36 AM

Hi Tom,

The plugin that you installed on Jenkins is the one maintained by the Jenkins team and it not the one maintained and supported by Marvelution.

It is also not used by this project. If you want to use our plugin, then please refer to the release notes mentioned before and install the plugin supported by this project.

Cheers,
Mark

Tom Pfueller February 1, 2017 at 4:35 AM

Mark,

thank you for kind answer.

I tried the URL in my browser, but get an error.
Instead if I modify the URL like below I succeed.
https://xxx.xxglobal.com/jenkins/plugin/jira/help.html

Do you know why this happens. I believe that I have installed the correct JIRA plugin in Jenkins.

Tom

Mark Rekveld January 31, 2017 at 12:12 PM

Hi,

Just some background, the plugin on the Jenkins side is not required, the plugin on the JIRA side uses the default JSON API that Jenkins provides. The Jenkins side plugin is a simple notifier and changelog annotator to also provide features in Jenkins. The notifier is the method in which the Jenkins plugin can notify the JIRA plugin that a new build is ready for synchronization. This will speed up time in which the build data becomes available in JIRA.

That said, the JIRA plugin uses a simple HTTP GET request to check if the Jenkins side plugin is installed. For this it uses the URL

[jenkins-site-rpcurl]/plugin/jenkins-jira-plugin/static/help.html

If the plugin is able to synchronize data from Jenkins then it should able to able to request this URL to check if the Jenkins side plugin is installed. So I don't think your Apache proxy is blocking this since the authentication information is also added to this GET request.

A simple check you could do is open a browser and browse to the URL above replacing [jenkins-site-rpcurl] with the actual URL you configured in JIRA. This should give a response with the help text for the JIRA Build Notifier.

Cheers,

Mark

Zoom