bitrise

package
v0.0.0-...-f5fadde Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: MIT Imports: 35 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PluginDependencyMap = map[string]PluginDependency{
	"init": {
		Source:     "https://github.com/bitrise-io/bitrise-plugins-init.git",
		MinVersion: "1.10.0",
	},
	"step": {
		Source:     "https://github.com/bitrise-io/bitrise-plugins-step.git",
		MinVersion: "0.10.4",
	},
	"workflow-editor": {
		Source:     "https://github.com/bitrise-io/bitrise-workflow-editor.git",
		MinVersion: "1.3.305",
	},
}

Functions

func ApplyOutputAliases

func ApplyOutputAliases(onEnvs, basedOnEnvs []envmanModels.EnvironmentItemModel) ([]envmanModels.EnvironmentItemModel, error)

ApplyOutputAliases ...

func ApplySensitiveOutputs

func ApplySensitiveOutputs(onEnvs, basedOnEnvs []envmanModels.EnvironmentItemModel) ([]envmanModels.EnvironmentItemModel, error)

ApplySensitiveOutputs ...

func CheckIsEnvmanInstalled

func CheckIsEnvmanInstalled(minEnvmanVersion string) error

CheckIsEnvmanInstalled ...

func CheckIsHomebrewInstalled

func CheckIsHomebrewInstalled() error

CheckIsHomebrewInstalled ...

func CheckIsPluginInstalled

func CheckIsPluginInstalled(name string, dependency PluginDependency) error

CheckIsPluginInstalled ...

func CheckIsStepmanInstalled

func CheckIsStepmanInstalled(minStepmanVersion string) error

CheckIsStepmanInstalled ...

func CleanupStepWorkDir

func CleanupStepWorkDir() error

CleanupStepWorkDir ...

func CollectEnvironmentsFromFile

func CollectEnvironmentsFromFile(pth string) ([]envmanModels.EnvironmentItemModel, error)

CollectEnvironmentsFromFile ...

func CollectEnvironmentsFromFileContent

func CollectEnvironmentsFromFileContent(bytes []byte) ([]envmanModels.EnvironmentItemModel, error)

CollectEnvironmentsFromFileContent ...

func ConfigModelFromJSONBytes

func ConfigModelFromJSONBytes(configBytes []byte) (bitriseData models.BitriseDataModel, warnings []string, err error)

ConfigModelFromJSONBytes ...

func ConfigModelFromYAMLBytes

func ConfigModelFromYAMLBytes(configBytes []byte) (bitriseData models.BitriseDataModel, warnings []string, err error)

ConfigModelFromYAMLBytes ...

func EvaluateTemplateToBool

func EvaluateTemplateToBool(expStr string, isCI, isPR bool, buildResults models.BuildRunResultsModel, envList envmanModels.EnvsJSONListModel) (bool, error)

EvaluateTemplateToBool ...

func EvaluateTemplateToString

func EvaluateTemplateToString(expStr string, isCI, isPR bool, buildResults models.BuildRunResultsModel, envList envmanModels.EnvsJSONListModel) (string, error)

EvaluateTemplateToString ...

func GetBuildFailedEnvironments

func GetBuildFailedEnvironments(failed bool) []string

GetBuildFailedEnvironments ...

func InstallWithAptGetIfNeeded

func InstallWithAptGetIfNeeded(aptGetDep stepmanModels.AptGetDepModel, isCIMode bool) error

InstallWithAptGetIfNeeded ...

func InstallWithBrewIfNeeded

func InstallWithBrewIfNeeded(brewDep stepmanModels.BrewDepModel, isCIMode bool) error

InstallWithBrewIfNeeded ...

func InventoryModelFromYAMLBytes

func InventoryModelFromYAMLBytes(inventoryBytes []byte) (inventory envmanModels.EnvsSerializeModel, err error)

InventoryModelFromYAMLBytes ...

func PrintRunningWorkflow

func PrintRunningWorkflow(title string)

PrintRunningWorkflow ...

func PrintSummary

func PrintSummary(buildRunResults models.BuildRunResultsModel)

PrintSummary ...

func ReadBitriseConfig

func ReadBitriseConfig(pth string) (models.BitriseDataModel, []string, error)

ReadBitriseConfig ...

func ReadSpecStep

func ReadSpecStep(pth string) (stepmanModels.StepModel, error)

ReadSpecStep ...

func RunSetup

func RunSetup(appVersion string, setupMode SetupMode, doCleanSetup bool) error

func RunSetupIfNeeded

func RunSetupIfNeeded() error

func SetBuildFailedEnv

func SetBuildFailedEnv(failed bool) error

SetBuildFailedEnv ...

Types

type PluginDependency

type PluginDependency struct {
	Source     string
	MinVersion string
}

type SetupMode

type SetupMode string
const (
	SetupModeDefault SetupMode = "default"
	SetupModeMinimal SetupMode = "minimal"
)

type TemplateDataModel

type TemplateDataModel struct {
	BuildResults  models.BuildRunResultsModel
	IsBuildFailed bool
	IsBuildOK     bool
	IsCI          bool
	IsPR          bool
	PullRequestID string
}

TemplateDataModel ...

Jump to

Keyboard shortcuts

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