Cake.AppVeyor

A set of aliases for Cake to access the AppVeyor REST API's

#addin nuget:?package=Cake.AppVeyor&version=5.0.1

<package id="Cake.AppVeyor" version="5.0.1" />

dotnet add package Cake.AppVeyor --version 5.0.1

<PackageReference Include="Cake.AppVeyor" Version="5.0.1" />

Aliases

AppVeyor API related cake aliases.

In order to use aliases from this addin, you will need to also reference Refit and Newtonsoft.Json as an addin. Here is what including Cake.AppVeyor in your script should look like:

#addin package:?Cake.AppVeyor
#addin package:?Refit&version=4.6.58
#addin package:?Newtonsoft.Json&version=11.0.2

General

AppVeyorCancelBuild(string, string, string, string) Cancels a build
AppVeyorCancelDeployment(string, int) Cancels a Deployment
AppVeyorClearCache(AppVeyorSettings, string, string) Clears the AppVeyor Cache
AppVeyorClearCache(string, string, string) Gets all projects
AppVeyorDeployment(string, int) Gets the specified Deployment
AppVeyorEnvironmentDeployments(string, int) Gets Deployments for the given Environment
AppVeyorEnvironments(string) Gets Environments
AppVeyorProjectBuildByVersion(string, string, string, string) Gets the project build by version
AppVeyorProjectDeployments(string, string, string) Gets the Deployments for a given project
AppVeyorProjectHistory(AppVeyorSettings, string, string, int, Nullable<int>, string) Gets the project build history
AppVeyorProjectHistory(string, string, string, int, Nullable<int>, string) Gets the project build history
AppVeyorProjectLastBranchBuild(string, string, string, string) Gets the last build on the specified branch of the project
AppVeyorProjectLastBuild(AppVeyorSettings, string, string) Gets the last build of the project
AppVeyorProjectLastBuild(string, string, string) Gets the last build of the project
AppVeyorProjectLastSuccessfulBuild(AppVeyorSettings, string, string, string, Nullable<int>) Gets the last successful build of the project
AppVeyorProjectLastSuccessfulBuild(string, string, string, string, Nullable<int>) Gets the last successful build of the project
AppVeyorProjects(AppVeyorSettings) Gets all projects
AppVeyorProjects(string) Gets all projects
AppVeyorStartBuildLatestCommit(string, string, string, string, Dictionary<string, string>) Starts a build from the latest commit
AppVeyorStartBuildPullRequest(string, string, string, int) Starts a build for the given GitHub pull request
AppVeyorStartBuildSpecificCommit(string, string, string, string, string) Starts a build for a specific commit
AppVeyorStartDeployment(string, string, string, string, string, string, Dictionary<string, string>) Starts a Deployment