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

The COPYARTIFACT_BUILD_NUMBER environment variable returns the BUILD_DISPLAY_NAME (without "#"), instead of the BUILD_NUMBER

      Then Copyartifact plugin injected the environment variable COPYARTIFACT_BUILD_NUMBER<"from" project name> as BUILD_DISPLAY_NAME without the "#", instead of the BUILD_NAME.
      In the following example,
      The "from" project environment variables (called "ERGON_HADES_NG_X_GERARPACOTEXML")
      BUILD_DISPLAY_NAME #161
      BUILD_ID 149
      BUILD_NUMBER 149

      The project using the copyartifact plugin
      COPYARTIFACT_BUILD_NUMBER_ERGON_HADES_NG_X_GERARPACOTEXML=161

          [JENKINS-27237] The COPYARTIFACT_BUILD_NUMBER environment variable returns the BUILD_DISPLAY_NAME (without "#"), instead of the BUILD_NUMBER

          The problem was Jenkins core, not the copyartifact plugin.
          I upgraded to version 1.601, and the problem was solved.

          Example:
          BUILD_DISPLAY_NAME #162
          BUILD_ID 162
          BUILD_NUMBER 162

          Renato Paschoalinoto added a comment - The problem was Jenkins core, not the copyartifact plugin. I upgraded to version 1.601, and the problem was solved. Example: BUILD_DISPLAY_NAME #162 BUILD_ID 162 BUILD_NUMBER 162

          The problem was fixed in Jenkins core version 1.601.
          The copyartifact plugin is correct.

          Renato Paschoalinoto added a comment - The problem was fixed in Jenkins core version 1.601. The copyartifact plugin is correct.

            Unassigned Unassigned
            renatop Renato Paschoalinoto
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: