Git Product home page Git Product logo

unity-cloud-build-webhook-for-hockeyapp's Introduction

Unity Cloud Build Webhook for HockeyApp

This package contains an implementation of a Unity Cloud Build Webhook. The webhook listens for ProjectBuildSuccess events, downloads the respective build artifacts for iOS and Android and uploads them to a HockeyApp environment.

Installation

Download or clone the into a directory on your web server accesible over http. https has not been tested. Configure the webhook on the Unity Cloud Build side so it points to <your_domain/some_dir/ucb-webhook.php>. Create a copy of settings.php.template and name that copy settings.php. Fill in the correct details - ensure the values enclosed by '<>' are set. Make sure the webhook endpoint works without errors.

Testing

To be able to test you first need to obtain some test data. The easiest and most reliable way is to set CLOUD_BUILD_WEBHOOK_LOG_LEVEL to 0, and have your webhook called by Unity Cloud Build. If everything worked as expected, you can find your build in HockeyApp.

If it didn't work as expected, for whatever reason, have a look in both the server error log to look for possible errors in the php code, and at the ucb-log.log file for output of the scrips.

In the log file you can find both the headers and the body of the event, which can be used to test your setup. See ucb-webhook-test.php.template for a simple posting mechanism. Don't forget to remove the test file once you're done.

Notes

This package doesn't pretend to be the best php code, as writing php is not my daily routine. Suggestions for improvement and security are more than welcome.

The scripts have been tested on a domain hosted by MediaTemple, running PHP 7, although they should work on PHP 5.4+ as well.

unity-cloud-build-webhook-for-hockeyapp's People

Contributors

jorrit-de-vries avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

mclockw sikter

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.