utils

package
v0.0.0-...-2bafc8d Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2020 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CleanupAndCreateBitbucketProjectAndRepo

func CleanupAndCreateBitbucketProjectAndRepo(quickstarter string, componentId string) error

func GetJenkinsBuildStagesForBuild

func GetJenkinsBuildStagesForBuild(jenkinsNamespace string, buildName string) (string, error)

func ReadConfiguration

func ReadConfiguration() (map[string]string, error)

func RetrieveSonarScan

func RetrieveSonarScan(projectKey string) (string, error)

func RunArbitraryJenkinsPipeline

func RunArbitraryJenkinsPipeline(repositoryProject string, repository string, jenkinsNamespace string, pipelineName string, triggerSecret string, envVars ...coreUtils.EnvPair) (string, string, error)

func RunCommand

func RunCommand(command string, args []string, envVars []string) (string, string, error)

func RunJenkinsFile

func RunJenkinsFile(repository string, repositoryProject string, branch string, projectName string, jenkinsFile string, jenkinsNamespace string, envVars ...coreUtils.EnvPair) (string, error)

func RunJenkinsFileAndReturnBuildName

func RunJenkinsFileAndReturnBuildName(repository string, repositoryProject string, branch string, projectName string, jenkinsFile string, jenkinsNamespace string, envVars ...coreUtils.EnvPair) (string, string, error)

func RunScriptFromBaseDir

func RunScriptFromBaseDir(command string, args []string, envVars []string) (string, string, error)

func VerifyJenkinsRunAttachments

func VerifyJenkinsRunAttachments(projectName string, buildName string, artifactsToVerify []string) error

func VerifyJenkinsStages

func VerifyJenkinsStages(componentID string, runType string, goldenFile string, gotStages string) error

VerifyJenkinsStages checks if actually executed Jenkins stages match those defined in goldenFile.

func VerifySonarScan

func VerifySonarScan(componentID string, gotScan string) error

VerifySonarScan checks if actually executed SonarQube scan matches the scan defined in the golden file.

Types

This section is empty.

Jump to

Keyboard shortcuts

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