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

Add pipelines artifacts API endpoint

    XMLWordPrintable

Details

    • 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.

    Description

      It would be useful to be able to access the artifacts of a pipeline from the rest API. We want to write some automation that downloads artifacts from completed pipelines to test them on some physical devices within our network, but as far as I can tell from the API the artifacts are not exposed as part of the pipeline response.

      Workaround

      Artifacts can be uploaded to the Downloads section of the repository using the following pipe:

      https://bitbucket.org/product/features/pipelines/integrations?search=upload&p=atlassian/bitbucket-upload-file

      They can then be retrieved using a curl call with our API as follows:

      curl -sL -u bb_username:app_password "https://api.bitbucket.org/2.0/repositories/workspace_id/repo_name/downloads/build.zip" --output "build.zip"

      Attachments

        Activity

          People

            Unassigned Unassigned
            badbe41b7836 Andre Renaud
            Votes:
            10 Vote for this issue
            Watchers:
            12 Start watching this issue

            Dates

              Created:
              Updated: