
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
unity-build
Advanced tools
A simple command line tool that triggers builds in Unity Cloud Build using it's REST API located at https://build-api.cloud.unity3d.com
This script was built using Node.js command line tools, so you need to have it installed.
Then you can use npm to install the command line tool:
$ npm install unity-build -g
You can download this repository and link the script to your /bin path as well:
$ git clone https://github.com/halzate93/unity-build-script.git
$ cd unity-build-script
$ npm link
You need to provide the details of the project you want to build:
Also you need to provide your API key, you can find it in your profile in Cloud Build.
You can pass these as command line parameters:
$ unity-build -k <your_api_key> -o <your_organization> -p <your_project_id> -t <your_target_id>
You can run the help command to see what every option does:
$ unity-build --help
Usage: unity-build [options]
Options:
-h, --help output usage information
-V, --version output the version number
-v, --verbose Verbose the request process
-p, --project [project_id] Set the project id that should be built
-o, --org [org_id] Set the organization id that contains the project to build
-k, --key [api_key] Set your api key to use as credentials to log into Cloud Build
-t, --target [target] Set the build target, defaults to [_all] if missing
A better option would be to store the parameters in environment variables:
$ export CLOUD_BUILD_API_KEY=<your_api_key>
$ export ORGANIZATION_ID=<your_org_id>
$ export PROJECT_ID=<your_project_id>
If you want these to stay between sesions you should store them on the config file according to your platform specifics.
Then you can just run it like this:
$ unity-build
Command line arguments have priority over environment variables.
Another option would be to modify the default configuration file:
$ cd $HOME/.unity_build/
$ cat default.json
{
"api_key": "",
"domain": "https://build-api-builders.cloud.unity3d.com/api/v1",
"org_id": "",
"project_id": "",
"target": "_all",
"clean": false,
"delay": 0
}
Environment variables have priority over this configuration file
If something isn't working, you can run the script with the --verbose option. Which will print information related to the request.
$ unity-build -v
You can use a program like cron or setup a task on a hosted machine to trigger your builds daily, weekly or at specific times. To see more on this take a look at this instruction on how to do it on heroku.
FAQs
A command line tool to trigger Unity Cloud Build jobs.
We found that unity-build demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.