Skip to content

Clear build cache #98

@jennybc

Description

@jennybc

It would be great to have a convenience function to clear the build cache, at least until AppVeyor provides a Large Handy Button.

appveyor/ci#985

This is the API call:

DELETE https://ci.appveyor.com/api/projects/{accountName}/{projectSlug}/buildcache

so the main point would be to send the appropriate Bearer token in the header. I myself am using GitHub for auth, so now I'm going to try to figure out what that should be ...

Update: this seems to work but requires your AppVeyor API token:

export APPVEYOR_TOKEN="abcdefghijklmnopqrstuvwxyz"
curl -X "DELETE" -H "Authorization: Bearer $APPVEYOR_TOKEN" -H "Content-Type: application/json" https://ci.appveyor.com/api/projects/{accountName}/{projectSlug}/buildcache

but I wonder if there's a way to somehow do this with a GITHUB_PAT.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions