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

Display names for "Build number" in "Specific build" don't work

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Minor Minor
    • copyartifact-plugin
    • None
    • Copy artifact plugin 1.35
      Jenkins version 1.596.2

      I'm getting "ERROR: Unable to find a build for artifact copy from" while trying to copy artifacts from a specific build.

      I have several jobs which build their own artifacts and set the DisplayName with the version of the software module (for instance, release-1.1.0.0), then I have one job which copies all these artifacts and keep them as a release. So in this job I have as many build steps "Copy artifacts from another project" as jobs to copy from. For each of these steps I select the name of the job, then I select Specific Build for the "Which build" option and finally I specify the Build Number by the jobs display name ( release-1.1.0.0 )

      The help button of the "Build Number" parameters says

      "While this selector is for build numbers (e.g. "22" for build #22), you can also resolve build parameters or environment variables (e.g. "${PARAM}"). The display name of a build and permalinks (e.g. "lastSuccessfulBuild", "lastBuild"...) can be used as well."

      This is working for some jobs but not all of them and it's working fine if I use the build number as the "Build Number" parameter. I'd rather use the display name property since it helps me to identify the software modules properly.

      Thanks

        1. display_name_not_working_2.xml
          3 kB
          Julián Lastiri
        2. display_name_not_working.xml
          1 kB
          Julián Lastiri
        3. display_name_working_2.xml
          3 kB
          Julián Lastiri
        4. display_name_working.xml
          1 kB
          Julián Lastiri
        5. non_working_build.xml
          12 kB
          Julián Lastiri
        6. working_build.xml
          11 kB
          Julián Lastiri

            Unassigned Unassigned
            jlastiri Julián Lastiri
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: