runner

package
v0.0.0-...-7dc4524 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2016 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultCacher = "plugins/drone-cache"

Default cache plugin.

View Source
const DefaultCloner = "plugins/drone-git"

Default clone plugin.

Variables

View Source
var ErrNoImage = errors.New("Yaml must specify an image for every step")

Functions

This section is empty.

Types

type Build

type Build struct {
	// contains filtered or unexported fields
}

func Load

func Load(tree *parser.Tree) *Build

func (*Build) Run

func (b *Build) Run(state *State) error

func (*Build) RunNode

func (b *Build) RunNode(state *State, flags parser.NodeType) error

type State

type State struct {
	sync.Mutex

	Repo      *plugin.Repo
	Build     *plugin.Build
	BuildLast *plugin.Build
	Job       *plugin.Job
	System    *plugin.System
	Workspace *plugin.Workspace

	// Client is an instance of the Docker client
	// used to spawn container tasks.
	Client dockerclient.Client

	Stdout, Stderr io.Writer
}

State represents the state of an execution.

func (*State) Exit

func (s *State) Exit(code int)

Exit writes the exit code. A non-zero value indicates the build exited with errors.

func (*State) ExitCode

func (s *State) ExitCode() int

ExitCode reports the process exit code. A non-zero value indicates the build exited with errors.

func (*State) Failed

func (s *State) Failed() bool

Failed reports whether the execution has failed.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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