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

use wildcard syntax to get direct link to artifact

    XMLWordPrintable

Details

    Description

      Jenkins allows wildcards in URLs so that we can filter artifacts like this:
      http://myjenkins.local/job/MyJob/lastSuccessfulBuild/artifact/**/*-release.apk/*zip*/foo.zip

      If the filter results in multiple files, this is great-- you get all the artifacts downloaded in a single zip file. However, if the filter results in single artifact, you get a zip containing only one file, which is odd.

      Knowing that my filter will only result in one file, I'd like to be able to download it directly, like so:
      http://myjenkins.local/job/MyJob/lastSuccessfulBuild/artifact/**/*-release.apk

      However, this takes me to a webpage showing the single filtered file.

      Can we get a feature that lets us use the wildcards to directly download a file? Perhaps something like this:
      http://myjenkins.local/job/MyJob/lastSuccessfulBuild/artifact/**/*-release.apk?direct=true

      Attachments

        Activity

          paleozogt Aaron Simmons created issue -
          oleg_nenashev Oleg Nenashev made changes -
          Field Original Value New Value
          Component/s core [ 15593 ]
          Component/s other [ 15490 ]
          Issue Type Bug [ 1 ] Improvement [ 4 ]
          danielbeck Daniel Beck made changes -
          Issue Type Improvement [ 4 ] New Feature [ 2 ]
          rtyler R. Tyler Croy made changes -
          Workflow JNJira [ 154950 ] JNJira + In-Review [ 178967 ]

          People

            Unassigned Unassigned
            paleozogt Aaron Simmons
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated: