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

Option to turn off setting environment variable DESCRIPTION_SETTER_DESCRIPTION

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • Operating system version: Windows 11 Enterprise (23H2)
      Jenkins version: 2.504.2
      Description Setter plugin version: 264.v1957f215dcd5

      When a parameterized Jenkins job runs and uses the Description Setter plugin to set the run description, that run ends up with two links to the Parameters page in the left navigation menu.  This creates minor confusion for the user.

      I investigated a little and believe this quirk is caused by the call to build.addAction() in function setEnvironmentVariable() in file DescriptionSetterHelper.java.

      In my case, I do not care about environment variable DESCRIPTION_SETTER_DESCRIPTION.  I didn't even know it existed until investigating this issue.

      I noticed that there are several long-open Jira issues regarding the setting of DESCRIPTION_SETTER_DESCRIPTION.  This include JENKINS-43452, which says that creating environment variables is now considered a security risk.

      My proposal is that you add an option to disable the setting of DESCRIPTION_SETTER_DESCRIPTION.  I would use this option to avoid my issue of duplicate Parameters links on the project run page.  And this option would be of value to anybody else who is worried about the security ramifications of creating environment variables.

            huybrechts huybrechts
            bitbucket222 Keith
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: