jenkins

package
v0.22.0 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Available

func Available() bool

Available returns true if the code is executed in a github CI environment.

func Enable

func Enable()

Enable enables this provider integration.

func FromEnv

func FromEnv() ci.Provider

FromEnv creates a new Pipeline from the environment.

Types

type Pipeline

type Pipeline struct {
	BuildNumber string
	// contains filtered or unexported fields
}

Pipeline represents the current pipeline information.

func (Pipeline) BuildID

func (p Pipeline) BuildID() string

BuildID returns a build ID.

func (*Pipeline) SetBuildID

func (p *Pipeline) SetBuildID(id string)

SetBuildID overrides the return value for BuildID().

Jump to

Keyboard shortcuts

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