Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-61509

Release Notes field is not interpolating values from Variable

    Details

    • Similar Issues:

      Description

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

       

       

        Attachments

          Activity

          Hide
          mezpahlan Mez Pahlan added a comment -

          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?

          Show
          mezpahlan Mez Pahlan added a comment - 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?
          Hide
          josalgado Jose Salgado added a comment -

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

          Show
          josalgado Jose Salgado added a comment - Just as you did Mez Pahlan the value is being pass in a shell script executed before Appcenter Step.
          Hide
          mezpahlan Mez Pahlan added a comment -

          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.

          Show
          mezpahlan Mez Pahlan added a comment - 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.

            People

            • Assignee:
              mezpahlan Mez Pahlan
              Reporter:
              josalgado Jose Salgado
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: