-
Suggestion
-
Resolution: Unresolved
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:
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"
This is a feature I was also looking for.
I was trying to build an integration that would visualise reports coming out of a command run in a pipeline.
I was hoping that the pipeline could artifact the report file, and the integration could pull out the report and visualise it.
Using the downloads API would mean we only get one report from the latest successful build. But if we could get the artifacts from builds themselves, it would be much more powerful, and make setting up this integration easier.