build

package
v0.0.0-...-f2f6987 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 25, 2014 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const TokenHeader = "X-Meeko-Token"

Variables

View Source
var Command = &gocli.Command{
	UsageLine: `
  build [-verbose] [-master=URL] [-token=TOKEN] [-slave=SLAVE] [-runner=RUNNER]
        [-repository=REPO] [-script=SCRIPT] [-env KEY=VALUE ...]`,
	Short: "trigger a build",
	Long: `
  Trigger a build on the specified build slave.

  The build slave is chosen depending on SLAVE and RUNNER. When suitable build
  slave is found, a new job is enqueued, which is defined by the repository
  located at REPO, and SCRIPT, which is a relative path to a script located
  within REPO. RUNNER program is used to run the script.

  Example:
    $ cider build -master wss://cider.example.com:443/build -token=12345
                  -slave macosx -runner bash
                  -repository git+ssh://github.com/foo/bar.git#develop
                  -script scripts/build -env ENVIRONMENT=testing -env DEBUG=y

  ENVIRONMENT:
    The following environment variables can be used instead of the relevant
    command line flags. The flags have higher priority, though.

      CIDER_MASTER_URL
      CIDER_MASTER_TOKEN
      CIDER_SLAVE_LABEL
      CIDER_REPOSITORY_URL
      CIDER_SCRIPT_PATH
      CIDER_SCRIPT_RUNNER
      CIDER_SCRIPT_ENV_<KEY> - equivalent to -env KEY=...
	`,
	Action: triggerBuild,
}

Functions

This section is empty.

Types

type BuildRequest

type BuildRequest struct {
	*rpc.RemoteCall
}

func (*BuildRequest) Execute

func (request *BuildRequest) Execute() (result *data.BuildResult, err error)

func (*BuildRequest) Wait

func (request *BuildRequest) Wait() (result *data.BuildResult, err error)

type Session

type Session struct {
	*rpc.Service
}

func Dial

func Dial(master, token string) (*Session, error)

func (*Session) NewBuildRequest

func (s *Session) NewBuildRequest(method string, args *data.BuildArgs) *BuildRequest

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL