Trigger Wercker build
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bin
dist
test
tmp
.gitignore
Gopkg.lock
Gopkg.toml
LICENSE
Makefile
README.md
VERSION
config.go
config_test.go
main.go
main_test.go
wercker.go
wercker.yml
wercker_test.go

README.md

wercker_build_trigger

Trigger Wercker build

Go project version wercker status Coverage Status

Getting

Download latest binary from here

https://github.com/sue445/wercker_build_trigger/releases

Usage

# Print version
$ wercker_build_trigger -version

# Trigger a build
$ wercker_build_trigger -token=xxxxx -config=/path/to/config.yml

Options

$ wercker_build_trigger
  -config string
    	Path to config file
  -token string
    	API token
  -version
    	Whether showing version

Config file format

Example

pipelines:
  - application_path: "wercker/docs"
    pipeline_name: "build"
    branch: "master"
  - application_path: "sue445/wercker_build_trigger"
  • application_path : application path (required)
  • pipeline_name : pipeline name
    • default is build
  • branch : Branch you want to build
    • default is master

ProTip

Weekly build

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

Changelog

https://github.com/sue445/wercker_build_trigger/releases