Skip to content

Instantly share code, notes, and snippets.

View antionio's full-sized avatar

Antti Kolehmainen antionio

View GitHub Profile
@antionio
antionio / unity_cloud_build_fetch_and_unzip.groovy
Created February 16, 2017 17:18
Groovy script to fetch latest successful build data files from Unity Cloud Build and unzip to a folder
// some stuff to get jenkins log output
def out
def config = new HashMap()
def bindings = getBinding()
config.putAll(bindings.getVariables())
out = config['out']
// unity cloud build api key
def apiKey = "YOUR_UNITY_CLOUD_BUILD_API_KEY"
@antionio
antionio / steam_depot_configs.sh
Last active February 16, 2017 17:24
Shell script that creates the Steam app and depot configuration files
touch app_build_123456.vdf
echo '"appbuild"
{
"appid" "123456"
"desc" "Your build description here" // description for this build
"contentroot" "content\" // root content folder, relative to location of this file
"buildoutput" "output\" // build output folder for .log, .csm & .csd files, relative to location of this file
"setlive" "" // branch to set live after successful build, non if empty
"preview" "0" // to enable preview builds
@antionio
antionio / result1.json
Created February 5, 2017 15:08
Unity Cloud Build Query Result Example 1
{
"build": 7,
"buildtargetid": "default-windows-desktop-32-bit",
"buildTargetName": "Default Windows desktop 32-bit",
"buildStatus": "success",
"platform": "standalonewindows",
"workspaceSize": 289375674,
"created": "2017-02-03T13:34:32.880Z",
"finished": "2017-02-03T14:05:42.000Z",
"checkoutStartTime": "2017-02-03T13:58:49.000Z",
@antionio
antionio / curlcommand.sh
Last active February 5, 2017 15:09
Unity Cloud Build API CURL request
curl -H 'Authorization: BASIC YOUR_API_KEY_HERE' https://build-api.cloud.unity3d.com/api/v1/orgs/your-organization-here/projects/your-project-name-here/buildtargets/default-windows-desktop-32-bit/builds?buildStatus=success&platform=standalonewindows