cirruslabs / cirrus-ci-docs

Documentation for Cirrus CI 📚
https://cirrus-ci.org
MIT License
352 stars 109 forks source link

Can not download artifacts using https://api.cirrus-ci.com/v1/artifact/github/: Failed to find tasks! #1276

Closed nbyavuz closed 6 months ago

nbyavuz commented 6 months ago

Expected Behavior

Able to download artifact from https://api.cirrus-ci.com/v1/artifact/github/nbyavuz/pg-vm-images/build-vcpkg/vcpkg_zip/vcpkg.zip

Real Behavior

https://api.cirrus-ci.com/v1/artifact/github/nbyavuz/pg-vm-images/build-vcpkg/vcpkg_zip/vcpkg.zip returns: {"code":404,"message":"Failed to find tasks!"}.

There is a similar report before, see: #1122.

Related Info

edigaryev commented 6 months ago

You need to add the ?branch=windows-deps-vcpkg parameter to your URL (see URLs to the artifacts), since you're trying to access the artifact from a non-default branch:

-https://api.cirrus-ci.com/v1/artifact/github/nbyavuz/pg-vm-images/build-vcpkg/vcpkg_zip/vcpkg.zip
+https://api.cirrus-ci.com/v1/artifact/github/nbyavuz/pg-vm-images/build-vcpkg/vcpkg_zip/vcpkg.zip?branch=windows-deps-vcpkg
nbyavuz commented 6 months ago

Thanks!