utils

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ArtifactoryPipelinesSourceId = 6
	HttpClientCtxKey             = "httpClient"
	BaseUiUrl                    = "baseUiUrl"
	BranchName                   = "branchName"
	DirConfigCtxKey              = "dirConfig"
	ForceFlag                    = "forceFlag"
)

Variables

This section is empty.

Functions

func Contains

func Contains(s []int, e int) bool

func GetCommitHash

func GetCommitHash(branch string, remote bool) (string, error)

func GetCurrentBranchName

func GetCurrentBranchName(c *components.Context) (string, error)

func GetPipelinesBranchURL

func GetPipelinesBranchURL(uiBaseUrl string, pipelineName string, gitBranch string) string

func GetPipelinesRunURL

func GetPipelinesRunURL(uiBaseUrl string, pipelineName string, step string, runNumber int, gitBranch string) string

func GetRelativeDir

func GetRelativeDir() (string, error)

func GetRootDir

func GetRootDir() (string, error)

func GetUIBaseUrl

func GetUIBaseUrl(c *components.Context) (string, error)

Types

type DirConfig

type DirConfig struct {
	PipelineName      string
	DefaultStep       string
	PipelinesSourceId int
}

func GetDirConfig

func GetDirConfig() (*DirConfig, error)

Jump to

Keyboard shortcuts

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