Skip to content
This repository has been archived by the owner on Dec 6, 2022. It is now read-only.

sue445/wercker_build_trigger

Repository files navigation

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