Delete cache

acgetchell's Avatar

acgetchell

20 Feb, 2020 03:57 AM

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'."}%
  1. Support Staff 1 Posted by Feodor Fitsner on 24 Feb, 2020 08:54 PM

    Feodor Fitsner's Avatar

    DELETE is the correct verb, not GET: https://www.appveyor.com/docs/build-cache/#rest-api

  2. 2 Posted by acgetchell on 24 Feb, 2020 10:00 PM

    acgetchell's Avatar

    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

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

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

 

01 Oct, 2024 04:27 PM
26 Sep, 2024 03:49 PM
26 Sep, 2024 09:02 AM
25 Sep, 2024 07:07 PM
24 Sep, 2024 08:39 PM
24 Sep, 2024 06:47 AM