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

Allow build and deployment logs to be downloaded over a Personal Access Token (PAT)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Medium Medium
    • 10.0.0, 9.6.4
    • 10.0.0, 9.6.3, 9.2.15
    • Artifacts, Logs
    • None

      Issue Summary

      Bamboo will not allow build and deployment logs to be downloaded over a Personal Access Token.

      BAM-20764: Attempting to download an artifact or build log using "curl + personal access token" returns nothing and the command succeeds (fixed in Bamboo Data Center 9.5.0) has presumably added support to download Artifacts and Build logs over a Personal Access Token, but only Artifact downloads are working as requested.

      Steps to Reproduce

      1. Run a build/deployment
      2. Create a PAT (Personal Access Token)
      3. Try to download the build or deployment logs using the PAT
      curl -H "Authorization: Bearer <ACCESS_TOKEN>" -X GET '<BAMBOO_URL>/download/<BUILD-KEY>/<BUILD-KEY-JOB-BUILDNUM>.log'

      Expected Results

      The logs will be downloaded by using a token

      Actual Results

      Bamboo responds with a 401 (Unauthorized) or redirects the request to a SAML/SSO login URL.

      Workaround

      Use basic auth (user + password).

      curl --user <USER>:<PASSWORD> -X GET '<BAMBOO_URL>/download/<BUILD-KEY>/<BUILD-KEY-NUM>.log'
      
      curl --user <USER>:<PASSWORD> -X GET '<BAMBOO_URL>/deployment-download/<DEPLOY_PROJECT_ID>/build_logs/<DEPLOY_PROJECT_ID>-<ENVIRONMENT_ID>-<RESULT_ID>.log'
      

       

              73868399605e Eduardo Alvarenga (Inactive)
              73868399605e Eduardo Alvarenga (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: