Uploaded image for project: 'Bitbucket Cloud'
  1. Bitbucket Cloud
  2. BCLOUD-22158

Retried artifact uploads from the Bitbucket Pipelines agent/runner (cloud or self hosted) result in step errors

XMLWordPrintable

      Issue Summary

      When an artifact upload from the runner or cloud agent fails and is retried (due to exponential backoff), on retry the operation can fail.

      Uploading artifacts involves several steps:

      • Register an upload with the media backend
      • Upload the data
      • Convert the upload to a file once all data has been uploaded
      • Delete the upload

      We've identified that when step 3 above fails due to a comms error and is retried, the pipelines step will error.

      Steps to Reproduce

      Difficult to reproduce, the easiest way is to use a man in the middle proxy to cause http traffic to be interrupted.

      Expected Results

      When interruption occurs during artifact uploads, the runner or cloud agent should be able to retry the upload automatically, without any user intervention.

       

      Actual Results

      The step will error with the message "Error occurred whilst processing an artifact"

       

      Workaround

      No work around, the step must be re-run.

       

              ggatus Graham Gatus
              ggatus Graham Gatus
              Votes:
              2 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: