buildinfo

package
v2.57.4 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2024 License: Apache-2.0 Imports: 34 Imported by: 0

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) Run

func (badc *BuildAddDependenciesCommand) Run() error

func (*BuildAddDependenciesCommand) ServerDetails

func (badc *BuildAddDependenciesCommand) ServerDetails() (*config.ServerDetails, error)

func (*BuildAddDependenciesCommand) SetBuildConfiguration

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

func (*BuildAddDependenciesCommand) SetDependenciesSpec

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

func (*BuildAddDependenciesCommand) SetDryRun

func (*BuildAddDependenciesCommand) SetServerDetails

func (badc *BuildAddDependenciesCommand) SetServerDetails(serverDetails *config.ServerDetails) *BuildAddDependenciesCommand

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) (foundIssues []buildinfo.AffectedIssue, err error)

func (*BuildAddGitCommand) Run

func (config *BuildAddGitCommand) Run() error

func (*BuildAddGitCommand) ServerDetails

func (config *BuildAddGitCommand) ServerDetails() (*utilsconfig.ServerDetails, error)

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

func (*BuildAddGitCommand) SetBuildConfiguration

func (config *BuildAddGitCommand) SetBuildConfiguration(buildConfiguration *build.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 BuildAppendCommand

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

func NewBuildAppendCommand

func NewBuildAppendCommand() *BuildAppendCommand

func (*BuildAppendCommand) CommandName

func (bac *BuildAppendCommand) CommandName() string

func (*BuildAppendCommand) Run

func (bac *BuildAppendCommand) Run() error

func (*BuildAppendCommand) ServerDetails

func (bac *BuildAppendCommand) ServerDetails() (*config.ServerDetails, error)

func (*BuildAppendCommand) SetBuildConfiguration

func (bac *BuildAppendCommand) SetBuildConfiguration(buildConfiguration *build.BuildConfiguration) *BuildAppendCommand

func (*BuildAppendCommand) SetBuildNameToAppend

func (bac *BuildAppendCommand) SetBuildNameToAppend(buildName string) *BuildAppendCommand

func (*BuildAppendCommand) SetBuildNumberToAppend

func (bac *BuildAppendCommand) SetBuildNumberToAppend(buildNumber string) *BuildAppendCommand

func (*BuildAppendCommand) SetServerDetails

func (bac *BuildAppendCommand) SetServerDetails(serverDetails *config.ServerDetails) *BuildAppendCommand

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) Run

func (bcc *BuildCleanCommand) Run() error

func (*BuildCleanCommand) ServerDetails

func (bcc *BuildCleanCommand) ServerDetails() (*config.ServerDetails, error)

Returns the default Artifactory server

func (*BuildCleanCommand) SetBuildConfiguration

func (bcc *BuildCleanCommand) SetBuildConfiguration(buildConfiguration *build.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) Run

func (bcec *BuildCollectEnvCommand) Run() error

func (*BuildCollectEnvCommand) ServerDetails

func (bcec *BuildCollectEnvCommand) ServerDetails() (*config.ServerDetails, error)

Returns the default configured Artifactory server

func (*BuildCollectEnvCommand) SetBuildConfiguration

func (bcec *BuildCollectEnvCommand) SetBuildConfiguration(buildConfiguration *build.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) Run

func (buildDiscard *BuildDiscardCommand) Run() error

func (*BuildDiscardCommand) ServerDetails

func (buildDiscard *BuildDiscardCommand) ServerDetails() (*config.ServerDetails, error)

func (*BuildDiscardCommand) SetDiscardBuildsParams

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

func (*BuildDiscardCommand) SetServerDetails

func (buildDiscard *BuildDiscardCommand) SetServerDetails(serverDetails *config.ServerDetails) *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) Run

func (bdc *BuildDistributeCommnad) Run() error

func (*BuildDistributeCommnad) ServerDetails

func (bdc *BuildDistributeCommnad) ServerDetails() (*config.ServerDetails, error)

func (*BuildDistributeCommnad) SetBuildDistributionParams

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

func (*BuildDistributeCommnad) SetDryRun

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

func (*BuildDistributeCommnad) SetServerDetails

func (bdc *BuildDistributeCommnad) SetServerDetails(serverDetails *config.ServerDetails) *BuildDistributeCommnad

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) Run

func (bpc *BuildPromotionCommand) Run() error

func (*BuildPromotionCommand) ServerDetails

func (bpc *BuildPromotionCommand) ServerDetails() (*config.ServerDetails, error)

func (*BuildPromotionCommand) SetBuildConfiguration added in v2.7.0

func (bpc *BuildPromotionCommand) SetBuildConfiguration(buildConfiguration *build.BuildConfiguration) *BuildPromotionCommand

func (*BuildPromotionCommand) SetDryRun

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

func (*BuildPromotionCommand) SetPromotionParams

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

func (*BuildPromotionCommand) SetServerDetails

func (bpc *BuildPromotionCommand) SetServerDetails(serverDetails *config.ServerDetails) *BuildPromotionCommand

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) GetSummary

func (bpc *BuildPublishCommand) GetSummary() *clientutils.Sha256Summary

func (*BuildPublishCommand) IsDetailedSummary

func (bpc *BuildPublishCommand) IsDetailedSummary() bool

func (*BuildPublishCommand) Run

func (bpc *BuildPublishCommand) Run() error

func (*BuildPublishCommand) ServerDetails

func (bpc *BuildPublishCommand) ServerDetails() (*config.ServerDetails, error)

func (*BuildPublishCommand) SetBuildConfiguration

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

func (*BuildPublishCommand) SetConfig

func (*BuildPublishCommand) SetDetailedSummary

func (bpc *BuildPublishCommand) SetDetailedSummary(detailedSummary bool) *BuildPublishCommand

func (*BuildPublishCommand) SetServerDetails

func (bpc *BuildPublishCommand) SetServerDetails(serverDetails *config.ServerDetails) *BuildPublishCommand

func (*BuildPublishCommand) SetSummary

type BuildScanLegacyCommand added in v2.7.0

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

Deprecated BuildScan Command. The new build scan command is "xray/commands/scan/buildscan"

func NewBuildScanLegacyCommand added in v2.7.0

func NewBuildScanLegacyCommand() *BuildScanLegacyCommand

func (*BuildScanLegacyCommand) CommandName added in v2.7.0

func (bsc *BuildScanLegacyCommand) CommandName() string

func (*BuildScanLegacyCommand) Run added in v2.7.0

func (bsc *BuildScanLegacyCommand) Run() error

func (*BuildScanLegacyCommand) ServerDetails added in v2.7.0

func (bsc *BuildScanLegacyCommand) ServerDetails() (*config.ServerDetails, error)

func (*BuildScanLegacyCommand) SetBuildConfiguration added in v2.7.0

func (bsc *BuildScanLegacyCommand) SetBuildConfiguration(buildConfiguration *build.BuildConfiguration) *BuildScanLegacyCommand

func (*BuildScanLegacyCommand) SetFailBuild added in v2.7.0

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

func (*BuildScanLegacyCommand) SetServerDetails added in v2.7.0

func (bsc *BuildScanLegacyCommand) SetServerDetails(serverDetails *config.ServerDetails) *BuildScanLegacyCommand

type IssuesConfiguration

type IssuesConfiguration struct {
	ServerDetails     *utilsconfig.ServerDetails
	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

type RevisionRangeError

type RevisionRangeError struct {
	ErrorMsg string
}

Error to be thrown when revision could not be found in the git revision range.

func (RevisionRangeError) Error

func (err RevisionRangeError) Error() string

Jump to

Keyboard shortcuts

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