This Addin for the Cake allows you to upload your package to HockeyApp.
C# PowerShell Shell
Latest commit ce1dc5b Oct 14, 2016 @reicheltp reicheltp committed on GitHub Corrected intro text
Permalink
Failed to load latest commit information.
src/Cake.HockeyApp
tests/Cake.HockeyApp.Tests Updated Calls to use MultiPartFormData the right way Oct 14, 2016
.gitattributes initialized cake Jan 8, 2016
.gitignore
Cake.HockeyApp.nuspec
Cake.HockeyApp.png Shrinked icon and updated nuspec Oct 14, 2016
Cake.HockeyApp.sln
LICENSE.md Rename LICENSE to LICENSE.md Jan 9, 2016
README.md
ReleaseNotes.md draft for 0.3.0 Oct 13, 2016
appveyor.yml
build.cake
build.ps1
build.sh
global.json

README.md

Cake.HockeyApp - An Addin for Cake

Cake.HockeyApp

AppVeyor master branch nuget pre release

Cake.HockeyApp allows you to upload an app package to HockeyApp with just two lines of code. In order to use the exposed commands you have to add the following line at top of your build.cake file:

#addin Cake.HockeyApp

Then you can upload your package to HockeyApp:

UploadToHockeyApp("./output/myApp.apk");

That's all!

Don't forget to set your api token from HockeyApp as environment variable: HOCKEYAPP_API_TOKEN on your local machine or CI system.


More Examples

Upload an apk / ipa to HockeyApp

Task("Upload-To-HockeyApp")
    .DependsOn("Build-APK")
    .Does(() => UploadToHockeyApp("./output/myApp.apk"));

Upload an apk / ipa to HockeyApp with result.

Task("Upload-To-HockeyApp")
    .DependsOn("Build-APK")
    .Does(() =>
{
    var result = UploadToHockeyApp("./output/myApp.apk"));
    // Use result.PublicUrl to inform others where they can download the newly uploaded package.
}

Upload a Windows package.

Unfortunately, HockeyApp currently does only support metadata discovering for Android, iOS and macOS packages. Therefore you have to specify a version AND app id your self. This means that you have to create the app once before uploading. Create new App. Creating a new version is automatically done by this addin.

Task("Upload-To-HockeyApp")
    .DependsOn("Build-AppX")
    .Does(() =>
{
    UploadToHockeyApp( "./output/myWindowsApp.appx", new HockeyAppUploadSettings
    {
        AppId = appIdFromHockeyApp,
        Version = "1.0.160901.1",
        ShortVersion = "1.0-beta2",
        Notes = "Uploaded via continuous integration."
    });
}

The available parameters for the upload settings are descripted here: http://support.hockeyapp.net/kb/api/api-versions#upload-version

REMEMBER For all request you make you either have to set your API token from HockeyApp as environment variable: HOCKEYAPP_API_TOKEN or pass it into the call via


Build

To build this package we are using Cake.

On Windows PowerShell run:

./build

On OSX/Linux run:

./build.sh