Uploaded image for project: 'Jenkins Artifactory Plug-in'
  1. Jenkins Artifactory Plug-in
  2. HAP-973

Plugin fails to resolve variables in attributes located in JSON spec files with the current version of the plugin (2.12.2)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Critical
    • Resolution: Unresolved
    • Affects Version/s: 2.12.0, 2.12.1, 2.12.2
    • Fix Version/s: None
    • Component/s: Common
    • Labels:
      None
    • Environment:

      "Production"

      Description

      Plugin fails to resolve variables in attributes located in JSON spec files with the current version of the plugin (2.12.2).

      We had to downgrade the version right down to version 2.9.2 because otherwise the downloading of large files caused memory leak issues and resulted in a hung job.

      The issue can be reproduced by:

      1. Enabling "Generic-Artifactory Integration" and proving a reference to a JSON spec file in git in the "Download Details" section.
      2. In the JSON the "build" attribute definition must contains variables such as "build": "${ArtifactoryBuildName}/${ArtifactoryBuildNumber}"

      Note: Issue does not happen when the JSON spec is embedded in the job configuration, it has to be in an external JSON file (from git)

      The error message appears like the following.

      The build name wsc :: someproject :: ${GitPullReference} could not be found.
      

        Attachments

          Activity

            People

            Assignee:
            eyalb Eyal Ben Moshe
            Reporter:
            Oliver.Pereira.external Oliver Pereira
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: