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

use wildcard syntax to get direct link to artifact

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Unresolved
    • Icon: Major Major
    • core

      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

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

              Created:
              Updated: