Uploaded image for project: 'Bamboo Data Center'
  1. Bamboo Data Center
  2. BAM-2612

Make latest artifact link an HTTP redirect instead of a meta-refresh browser redirect

    • Icon: Suggestion Suggestion
    • Resolution: Fixed
    • 2.2
    • Artifacts
    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

      Currently the latest build artifact link, ie:

      [server prefix]/download/[build-plan]/artifacts/latest/[artifact name]
      

      has 2 problems:

      1. Should perform an HTTP redirect to the build artifact, rather than a meta-refresh link; this would make it much easier to script references to the latest build artifact
      2. The mime-type isn't set correctly on the page, so it can't be used in Firefox

      Obviously if #1 were fixed, #2 would become a non-issue.

            [BAM-2612] Make latest artifact link an HTTP redirect instead of a meta-refresh browser redirect

            MarkC added a comment -

            For 2.2 you can now link to artifacts in the format

            <server>/browse/<planKey>-<buildNumber>/artifact/<artifactName>
            

            e.g. http://server/bamboo/browse/CONF-MAIN-254/artifact/logs/cargo-log.log

            You can also use /latest to link directly to the latest artifact

            e.g. http://server/bamboo/browse/CONF-MAIN/latest/artifact/logs/cargo-log.log

            If you need to login to view the artifacts, you can append os_username & os_password parameters to the URL to access the files.

            These do not use browser redirects.

            MarkC added a comment - For 2.2 you can now link to artifacts in the format <server>/browse/<planKey>-<buildNumber>/artifact/<artifactName> e.g. http://server/bamboo/browse/CONF-MAIN-254/artifact/logs/cargo-log.log You can also use /latest to link directly to the latest artifact e.g. http://server/bamboo/browse/CONF-MAIN/latest/artifact/logs/cargo-log.log If you need to login to view the artifacts, you can append os_username & os_password parameters to the URL to access the files. These do not use browser redirects.

            This would be helpful, so that you could get the latest build with the Ant get Task, i.e. for automatic deployment. Ant get obviously doesn't do the meta-refresh.

            Christian Knuechel added a comment - This would be helpful, so that you could get the latest build with the Ant get Task, i.e. for automatic deployment. Ant get obviously doesn't do the meta-refresh.

              Unassigned Unassigned
              70c0a1fc522b John Crim
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: