[JIRA] (JENKINS-61509) Release Notes field is not interpolating values from Variable

16 views
Skip to first unread message

jose.salgado@gorillalogic.com (JIRA)

unread,
Mar 18, 2020, 11:08:02 AM3/18/20
to jenkinsc...@googlegroups.com
Jose Salgado created an issue
 
Jenkins / Bug JENKINS-61509
Release Notes field is not interpolating values from Variable
Issue Type: Bug Bug
Assignee: Mez Pahlan
Attachments: Screen Shot 2020-03-18 at 9.00.24 AM.png, Screen Shot 2020-03-18 at 9.00.35 AM.png, Screen Shot 2020-03-18 at 9.00.57 AM.png, Screen Shot 2020-03-18 at 9.05.04 AM.png
Components: appcenter-plugin
Created: 2020-03-18 15:07
Environment: Jenkins Version: 2.223
Plugin Version: 0.8.2
Labels: plugin jenkins
Priority: Minor Minor
Reporter: Jose Salgado

When the Appcenter Plugin is being used as "Freestyle Project" the field for "Release Notes" is not supporting variable interpolation.

 

 

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.13.12#713012-sha1:6e07c38)
Atlassian logo

mez.pahlan@gmail.com (JIRA)

unread,
Mar 19, 2020, 8:21:03 PM3/19/20
to jenkinsc...@googlegroups.com
Mez Pahlan updated an issue
Change By: Mez Pahlan
Attachment: execute-shell-step.png

mez.pahlan@gmail.com (JIRA)

unread,
Mar 19, 2020, 8:22:02 PM3/19/20
to jenkinsc...@googlegroups.com
Mez Pahlan updated an issue
Change By: Mez Pahlan
Attachment: appcenter-release-notes.png

mez.pahlan@gmail.com (JIRA)

unread,
Mar 19, 2020, 8:23:03 PM3/19/20
to jenkinsc...@googlegroups.com
Mez Pahlan updated an issue
Change By: Mez Pahlan
Attachment: appcenter-console.png

mez.pahlan@gmail.com (JIRA)

unread,
Mar 19, 2020, 8:26:05 PM3/19/20
to jenkinsc...@googlegroups.com
Mez Pahlan commented on Bug JENKINS-61509
 
Re: Release Notes field is not interpolating values from Variable

Hi Jose Salgado. Very interesting. Let me ask you one question. Where in your freestyle configuration are you specifying the release notes environment variable?

I was able to recreate your issue..... but partially. I've added an execute shell step before the AppCenter step and it doesn't get interpolated.

However when I use another environment variable it does get correctly interpolated.

This Stackoverflow post suggests that you can't pass environment variables in this way and that you need a different plugin to do that. Is it possible that this is what is happening in your case?

jose.salgado@gorillalogic.com (JIRA)

unread,
Mar 20, 2020, 12:44:02 PM3/20/20
to jenkinsc...@googlegroups.com

Just as you did Mez Pahlan the value is being pass in a shell script executed before Appcenter Step.

mez.pahlan@gmail.com (JIRA)

unread,
Mar 20, 2020, 5:26:03 PM3/20/20
to jenkinsc...@googlegroups.com

mez.pahlan@gmail.com (JIRA)

unread,
Mar 20, 2020, 5:26:03 PM3/20/20
to jenkinsc...@googlegroups.com
Mez Pahlan updated an issue
Change By: Mez Pahlan
Attachment: test-configuration.png

mez.pahlan@gmail.com (JIRA)

unread,
Mar 20, 2020, 5:33:04 PM3/20/20
to jenkinsc...@googlegroups.com
Mez Pahlan commented on Bug JENKINS-61509
 
Re: Release Notes field is not interpolating values from Variable

OK well in that case you can't do that. Each shell script executes in its own environment. You can test this quickly like this to confirm:

Given this configuration:

This is the output:

Notice that the first shell is able to read the environment variable but the second one is not.

I suggest you migrate your job to a pipeline job which has built in support for passing environment variables or use the Stackoverflow link above for more help.

Thanks.

mez.pahlan@gmail.com (JIRA)

unread,
Mar 20, 2020, 5:33:05 PM3/20/20
to jenkinsc...@googlegroups.com
Mez Pahlan closed an issue as Not A Defect
 
Change By: Mez Pahlan
Status: Open Closed
Resolution: Not A Defect
Reply all
Reply to author
Forward
0 new messages