baton

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2020 License: AGPL-3.0 Imports: 3 Imported by: 5

Documentation

Index

Constants

View Source
const (
	// DefaultBuildUser represents the default builduser
	DefaultBuildUser = "heronci"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Baton

type Baton struct {
	// BuildUser represents the name of the build user
	BuildUser string

	// ProjectID represents the unique projectID of this project
	ProjectID string

	// ProjectName represents the name of the project under discussion
	ProjectName string

	// CommitID represents the latest commitID / commit hash of the checkout
	CommitID string

	// ProjectRoot represents the root of the current project
	ProjectRoot string

	// ProjectRootParent representsthe parent of project root directory
	ProjectRootParent string
}

Baton represents the information exchanged / shared between pipelines

func NewBaton

func NewBaton() *Baton

NewBaton creates a new information structure

func (*Baton) CopyFilesToDockerImage

func (myBaton *Baton) CopyFilesToDockerImage() ciutil.OnWriterFunc

CopyFilesToDockerImage copies the files from dockerdirectory to image

func (*Baton) GetDockerImageTag

func (myBaton *Baton) GetDockerImageTag(stage string) string

GetDockerImageTag returns the image tag for the given information

Jump to

Keyboard shortcuts

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