Trigger Wercker build
Download latest binary from here
https://github.com/sue445/wercker_build_trigger/releases
# Print version
$ wercker_build_trigger -version
# Trigger a build
$ wercker_build_trigger -token=xxxxx -config=/path/to/config.yml
$ wercker_build_trigger
-config string
Path to config file
-token string
API token
-version
Whether showing version
-token
: personal token- Go to https://app.wercker.com/profile/tokens and generate your token
-config
: path to config file- described later
Example
pipelines:
- application_path: "wercker/docs"
pipeline_name: "build"
branch: "master"
- application_path: "sue445/wercker_build_trigger"
application_path
: application path (required)- If wercker application url is https://app.wercker.com/sue445/wercker_build_trigger,
application_path
issue445/wercker_build_trigger
- If wercker application url is https://app.wercker.com/sue445/wercker_build_trigger,
pipeline_name
: pipeline name- default is
build
- default is
branch
: Branch you want to build- default is
master
- default is
e.g.) Run a build every Sunday at 3:00
crontab
0 3 * * 0 /path/to/wercker_build_trigger --config /path/to/wercker_build_trigger.yml --token xxxxxxx