[JIRA] (JENKINS-54108) "JIRA: Progress issues by workflow action" fails when job is located within a folder

0 views
Skip to first unread message

weissjasonr@yahoo.com (JIRA)

unread,
Oct 16, 2018, 1:49:02 PM10/16/18
to jenkinsc...@googlegroups.com
Jason Weiss created an issue
 
Jenkins / Bug JENKINS-54108
"JIRA: Progress issues by workflow action" fails when job is located within a folder
Issue Type: Bug Bug
Assignee: Unassigned
Attachments: no-jira-connect-from-folder-job.xml
Components: jira-plugin
Created: 2018-10-16 17:48
Priority: Major Major
Reporter: Jason Weiss

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.

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

weissjasonr@yahoo.com (JIRA)

unread,
Oct 16, 2018, 5:03:03 PM10/16/18
to jenkinsc...@googlegroups.com
Jason Weiss updated an issue
Change By: Jason Weiss
Environment: * Jenkins v. 2.143
* JIRA plugin v. 3.0.3
* Folders plugin v. 6.6

weissjasonr@yahoo.com (JIRA)

unread,
Oct 16, 2018, 5:32:01 PM10/16/18
to jenkinsc...@googlegroups.com
Jason Weiss updated an issue
Change By: Jason Weiss
Environment:
* Jenkins v. 2.143
* JIRA plugin v. 3.0.3
* Folders plugin v. 6.6

JIRA 7.12.3

TyshkevichAA.it@relef.ru (JIRA)

unread,
Nov 9, 2018, 7:11:03 AM11/9/18
to jenkinsc...@googlegroups.com
Anna Tyshkevich commented on Bug JENKINS-54108
 
Re: "JIRA: Progress issues by workflow action" fails when job is located within a folder

I have same problem. My Jenkins (ver. 2.138.3) env vars: HOME=/var/lib/jenkins, but JENKINS_HOME=/home/jenkins and installed jira-plugin (ver. 3.0.5). When i run build with step "JIRA: Progress issues by workflow action", then i get error:

[JIRA] Failed to connect to JIRA

and log:

ноя 09, 2018 2:17:10 PM WARNING hudson.plugins.jira.JiraSite progressMatchingIssues
JIRA session could not be established

When i validate settings Jira sites, then i get success result and log: 

ноя 09, 2018 2:16:51 PM FINE hudson.plugins.jira.JiraSite
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) with env var HOME equals JENKINS_HOME=/var/lib/jenkins and Jira-plugin (ver 3.0.3) and for this configuration plugin is working successful.

TyshkevichAA.it@relef.ru (JIRA)

unread,
Nov 9, 2018, 7:20:02 AM11/9/18
to jenkinsc...@googlegroups.com
Anna Tyshkevich edited a comment on Bug JENKINS-54108
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:
{code:java}
[JIRA] Failed to connect to JIRA{code}
and log:
{code:java}
ноя 09, 2018 2:17:10 PM WARNING hudson.plugins.jira.JiraSite progressMatchingIssues{code}
{code:java}
JIRA session could not be established{code}

When i validate settings Jira sites, then i get success result and log: 
{code:java}
ноя 09, 2018 2:16:51 PM FINE hudson.plugins.jira.JiraSite{code}
{code:java}
creating JIRA Session: https://jira.mydomen.my/{code}

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.

aeoris@gmail.com (JIRA)

unread,
Nov 13, 2018, 5:34:02 PM11/13/18
to jenkinsc...@googlegroups.com

I haven't been able to reproduce this issue using the versions listed on the issue description.

I tested this on the .war version on a fresh install (with a fresh Jira as well). Jason Weiss Anna Tyshkevich do you have any other detail about your setup to try and triage this issue?

radek.antoniuk@quiddia.com (JIRA)

unread,
Mar 27, 2020, 1:24:05 PM3/27/20
to jenkinsc...@googlegroups.com
Radek Antoniuk updated Bug JENKINS-54108
 

I have just tested this scenario with current 2.222.1 and 3.0.14, looks like it works for me.
If you still have an issue, please open a new ticket and try to attach a stacktrace (in DEBUG logging if needed)

Change By: Radek Antoniuk
Status: Open Fixed but Unreleased
Resolution: Cannot Reproduce
This message was sent by Atlassian Jira (v7.13.12#713012-sha1:6e07c38)
Atlassian logo

radek.antoniuk@quiddia.com (JIRA)

unread,
Mar 27, 2020, 1:24:06 PM3/27/20
to jenkinsc...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages