Delete cache
Hello,
vcpkg
has a bug where it doesn't update existing packages. On Travis-CI, I can delete the cache which forces a retrieval of all packages, avoiding the issue.
I'd like to do the same with AppVeyor. I understand there's an API call, but it doesn't seem to be working:
adam@hapkido ~/vcpkg (master) $ export APPVEYOR_TOKEN="myToken"
adam@hapkido ~/vcpkg (master) $ curl -H "Authorization: Bearer $APPVEYOR_TOKEN" -H DELETE https://ci.appveyor.com/api/projects/acgetchell/cdt-plusplus/buildcache
{"message":"The requested resource does not support http method 'GET'."}%
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
Support Staff 1 Posted by Feodor Fitsner on 24 Feb, 2020 08:54 PM
DELETE
is the correct verb, notGET
: https://www.appveyor.com/docs/build-cache/#rest-api2 Posted by acgetchell on 24 Feb, 2020 10:00 PM
I did use delete:
curl -H "Authorization: Bearer $APPVEYOR_TOKEN" -H DELETE https://ci.appveyor.com/api/projects/acgetchell/cdt-plusplus/buildcache
--
Adam Getchell, M.S.
Director of Information Technology
College of Agricultural & Environmental Sciences, UC Davis
[email blocked] <mailto:[email blocked]> (530)341-2486
https://adamgetchell.org <https://adamgetchell.org/>
"Invincibility is in oneself, vulnerability in the opponent." -- Sun Tzu