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)
Click to show internal directories.
Click to hide internal directories.