buildinfo

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2020 License: Apache-2.0 Imports: 25 Imported by: 3

Documentation

Index

Constants

View Source
const (
	GitLogLimit               = 100
	ConfigIssuesPrefix        = "issues."
	ConfigParseValueError     = "Failed parsing %s from configuration file: %s"
	MissingConfigurationError = "Configuration file must contain: %s"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type BuildAddDependenciesCommand

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

func NewBuildAddDependenciesCommand

func NewBuildAddDependenciesCommand() *BuildAddDependenciesCommand

func (*BuildAddDependenciesCommand) CommandName

func (badc *BuildAddDependenciesCommand) CommandName() string

func (*BuildAddDependenciesCommand) Result

func (*BuildAddDependenciesCommand) RtDetails

func (*BuildAddDependenciesCommand) Run

func (badc *BuildAddDependenciesCommand) Run() error

func (*BuildAddDependenciesCommand) SetBuildConfiguration

func (badc *BuildAddDependenciesCommand) SetBuildConfiguration(buildConfiguration *utils.BuildConfiguration) *BuildAddDependenciesCommand

func (*BuildAddDependenciesCommand) SetDependenciesSpec

func (badc *BuildAddDependenciesCommand) SetDependenciesSpec(dependenciesSpec *spec.SpecFiles) *BuildAddDependenciesCommand

func (*BuildAddDependenciesCommand) SetDryRun

type BuildAddGitCommand

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

func NewBuildAddGitCommand

func NewBuildAddGitCommand() *BuildAddGitCommand

func (*BuildAddGitCommand) CommandName

func (config *BuildAddGitCommand) CommandName() string

func (*BuildAddGitCommand) DoCollect

func (config *BuildAddGitCommand) DoCollect(issuesConfig *IssuesConfiguration, lastVcsRevision string) ([]buildinfo.AffectedIssue, error)

func (*BuildAddGitCommand) RtDetails

func (config *BuildAddGitCommand) RtDetails() (*utilsconfig.ArtifactoryDetails, error)

Priorities for selecting server: 1. 'server-id' flag. 2. 'serverID' in config file. 3. Default server.

func (*BuildAddGitCommand) Run

func (config *BuildAddGitCommand) Run() error

func (*BuildAddGitCommand) SetBuildConfiguration

func (config *BuildAddGitCommand) SetBuildConfiguration(buildConfiguration *utils.BuildConfiguration) *BuildAddGitCommand

func (*BuildAddGitCommand) SetConfigFilePath

func (config *BuildAddGitCommand) SetConfigFilePath(configFilePath string) *BuildAddGitCommand

func (*BuildAddGitCommand) SetDotGitPath

func (config *BuildAddGitCommand) SetDotGitPath(dotGitPath string) *BuildAddGitCommand

func (*BuildAddGitCommand) SetIssuesConfig

func (config *BuildAddGitCommand) SetIssuesConfig(issuesConfig *IssuesConfiguration) *BuildAddGitCommand

func (*BuildAddGitCommand) SetServerId

func (config *BuildAddGitCommand) SetServerId(serverId string) *BuildAddGitCommand

type BuildCleanCommand

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

func NewBuildCleanCommand

func NewBuildCleanCommand() *BuildCleanCommand

func (*BuildCleanCommand) CommandName

func (bcc *BuildCleanCommand) CommandName() string

func (*BuildCleanCommand) RtDetails

func (bcc *BuildCleanCommand) RtDetails() (*config.ArtifactoryDetails, error)

Returns the default Artifactory server

func (*BuildCleanCommand) Run

func (bcc *BuildCleanCommand) Run() error

func (*BuildCleanCommand) SetBuildConfiguration

func (bcc *BuildCleanCommand) SetBuildConfiguration(buildConfiguration *utils.BuildConfiguration) *BuildCleanCommand

type BuildCollectEnvCommand

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

func NewBuildCollectEnvCommand

func NewBuildCollectEnvCommand() *BuildCollectEnvCommand

func (*BuildCollectEnvCommand) CommandName

func (bcec *BuildCollectEnvCommand) CommandName() string

func (*BuildCollectEnvCommand) RtDetails

func (bcec *BuildCollectEnvCommand) RtDetails() (*config.ArtifactoryDetails, error)

Returns the default configured Artifactory server

func (*BuildCollectEnvCommand) Run

func (bcec *BuildCollectEnvCommand) Run() error

func (*BuildCollectEnvCommand) SetBuildConfiguration

func (bcec *BuildCollectEnvCommand) SetBuildConfiguration(buildConfiguration *utils.BuildConfiguration) *BuildCollectEnvCommand

type BuildDiscardCommand

type BuildDiscardCommand struct {
	services.DiscardBuildsParams
	// contains filtered or unexported fields
}

func NewBuildDiscardCommand

func NewBuildDiscardCommand() *BuildDiscardCommand

func (*BuildDiscardCommand) CommandName

func (buildDiscard *BuildDiscardCommand) CommandName() string

func (*BuildDiscardCommand) RtDetails

func (buildDiscard *BuildDiscardCommand) RtDetails() (*config.ArtifactoryDetails, error)

func (*BuildDiscardCommand) Run

func (buildDiscard *BuildDiscardCommand) Run() error

func (*BuildDiscardCommand) SetDiscardBuildsParams

func (buildDiscard *BuildDiscardCommand) SetDiscardBuildsParams(params services.DiscardBuildsParams) *BuildDiscardCommand

func (*BuildDiscardCommand) SetRtDetails

func (buildDiscard *BuildDiscardCommand) SetRtDetails(rtDetails *config.ArtifactoryDetails) *BuildDiscardCommand

type BuildDistributeCommnad

type BuildDistributeCommnad struct {
	services.BuildDistributionParams
	// contains filtered or unexported fields
}

func NewBuildDistributeCommnad

func NewBuildDistributeCommnad() *BuildDistributeCommnad

func (*BuildDistributeCommnad) CommandName

func (bdc *BuildDistributeCommnad) CommandName() string

func (*BuildDistributeCommnad) RtDetails

func (*BuildDistributeCommnad) Run

func (bdc *BuildDistributeCommnad) Run() error

func (*BuildDistributeCommnad) SetBuildDistributionParams

func (bdc *BuildDistributeCommnad) SetBuildDistributionParams(buildDistributeParams services.BuildDistributionParams) *BuildDistributeCommnad

func (*BuildDistributeCommnad) SetDryRun

func (bdc *BuildDistributeCommnad) SetDryRun(dryRun bool) *BuildDistributeCommnad

func (*BuildDistributeCommnad) SetRtDetails

type BuildPromotionCommand

type BuildPromotionCommand struct {
	services.PromotionParams
	// contains filtered or unexported fields
}

func NewBuildPromotionCommand

func NewBuildPromotionCommand() *BuildPromotionCommand

func (*BuildPromotionCommand) CommandName

func (bpc *BuildPromotionCommand) CommandName() string

func (*BuildPromotionCommand) RtDetails

func (*BuildPromotionCommand) Run

func (bpc *BuildPromotionCommand) Run() error

func (*BuildPromotionCommand) SetDryRun

func (bpc *BuildPromotionCommand) SetDryRun(dryRun bool) *BuildPromotionCommand

func (*BuildPromotionCommand) SetPromotionParams

func (bpc *BuildPromotionCommand) SetPromotionParams(params services.PromotionParams) *BuildPromotionCommand

func (*BuildPromotionCommand) SetRtDetails

type BuildPublishCommand

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

func NewBuildPublishCommand

func NewBuildPublishCommand() *BuildPublishCommand

func (*BuildPublishCommand) CommandName

func (bpc *BuildPublishCommand) CommandName() string

func (*BuildPublishCommand) RtDetails

func (bpc *BuildPublishCommand) RtDetails() (*config.ArtifactoryDetails, error)

func (*BuildPublishCommand) Run

func (bpc *BuildPublishCommand) Run() error

func (*BuildPublishCommand) SetBuildConfiguration

func (bpc *BuildPublishCommand) SetBuildConfiguration(buildConfiguration *utils.BuildConfiguration) *BuildPublishCommand

func (*BuildPublishCommand) SetConfig

func (*BuildPublishCommand) SetRtDetails

func (bpc *BuildPublishCommand) SetRtDetails(rtDetails *config.ArtifactoryDetails) *BuildPublishCommand

type BuildScanCommand

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

func NewBuildScanCommand

func NewBuildScanCommand() *BuildScanCommand

func (*BuildScanCommand) CommandName

func (bsc *BuildScanCommand) CommandName() string

func (*BuildScanCommand) RtDetails

func (bsc *BuildScanCommand) RtDetails() (*config.ArtifactoryDetails, error)

func (*BuildScanCommand) Run

func (bsc *BuildScanCommand) Run() error

func (*BuildScanCommand) SetBuildConfiguration

func (bsc *BuildScanCommand) SetBuildConfiguration(buildConfiguration *utils.BuildConfiguration) *BuildScanCommand

func (*BuildScanCommand) SetFailBuild

func (bsc *BuildScanCommand) SetFailBuild(failBuild bool) *BuildScanCommand

func (*BuildScanCommand) SetRtDetails

func (bsc *BuildScanCommand) SetRtDetails(rtDetails *config.ArtifactoryDetails) *BuildScanCommand

type IssuesConfiguration

type IssuesConfiguration struct {
	ArtDetails        *utilsconfig.ArtifactoryDetails
	Regexp            string
	LogLimit          int
	TrackerUrl        string
	TrackerName       string
	KeyGroupIndex     int
	SummaryGroupIndex int
	Aggregate         bool
	AggregationStatus string
	ServerID          string
}

type LogCmd

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

func (*LogCmd) GetCmd

func (logCmd *LogCmd) GetCmd() *exec.Cmd

func (*LogCmd) GetEnv

func (logCmd *LogCmd) GetEnv() map[string]string

func (*LogCmd) GetErrWriter

func (logCmd *LogCmd) GetErrWriter() io.WriteCloser

func (*LogCmd) GetStdWriter

func (logCmd *LogCmd) GetStdWriter() io.WriteCloser

Jump to

Keyboard shortcuts

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