Details
-
Type:
Bug
-
Status: Closed (View Workflow)
-
Priority:
Major
-
Resolution: Cannot Reproduce
-
Component/s: jira-plugin
-
Labels:None
-
Environment:Jenkins 2.143
JIRA plugin 3.0.3
Folders plugin 6.6
JIRA 7.12.3
-
Similar Issues:
Description
A job which initiates a transition in Jira via the "Progress issues by workflow action" post-build step will succeed if the job is located in the Jenkins root. If that exact same job, however, is relocated to a sub-folder (per the Folders plugin), it will always fail with:
- a "[JIRA] Failed to connect to JIRA" error in the build log
- a "JIRA session could not be established" error in the plugin's JiraSite class
I've reduced the scenario to the most basic configuration I could and validated that the only variable between a successful run and a failed one is the location of the job relative to the Jenkins root. It appears, just on cursory inspection of the plugin's code, that the Jira credentials are "missing" when the build is run from within a Jenkins folder.
Attached is the affected job's configuration.
I have same problem. My Jenkins (ver. 2.138.3, LTS) env vars: HOME=/var/lib/jenkins, but JENKINS_HOME=/home/jenkins and installed jira-plugin (ver. 3.0.5) and folders plugin (ver. 6.6). When i run build with step "JIRA: Progress issues by workflow action", then i get error:
and log:
When i validate settings Jira sites, then i get success result and log:
creating JIRA Session: https://jira.mydomen.my/
I think plugin can not get credentials in runtime build for this configuration server.
I also have other Jenkins server (ver. 2.149, weekly release) with env var HOME equals JENKINS_HOME=/var/lib/jenkins and Jira-plugin (ver 3.0.3) and folder plugin (ver. 6.5.1) and for this configuration plugin is working successful.