build

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetRepoInfo

func GetRepoInfo(repoPath string, repoProvider string, repoUrl string, repoHash string) map[string]string

func ProcessBuildRequest

func ProcessBuildRequest(apiKey string, builderName string, releaseStage string, provider string, repository string, revision string, version string, versionCode string, bundleVersion string, metadata map[string]string, paths []string, endpoint string) error

func SetBuilderName

func SetBuilderName(name string) (string, error)

Types

type CreateBuild

type CreateBuild struct {
	BuilderName      string            `help:"The name of the entity that triggered the build. Could be a user, system etc."`
	Metadata         map[string]string `help:"Additional build information"`
	ReleaseStage     string            `help:"The release stage (eg, production, staging) that is being released (if applicable)."`
	Provider         string            `help:"The name of the source control provider that contains the source code for the build."`
	Repository       string            `help:"The URL of the repository containing the source code being deployed."`
	Revision         string            `help:"The source control SHA-1 hash for the code that has been built (short or long hash)"`
	Path             utils.UploadPaths `arg:"" name:"path" help:"Path to the project directory" type:"path" default:"."`
	VersionName      string            `help:"The version of the application." xor:"app-version,version-name"`
	AppVersion       string            `help:"(deprecated) The version of the application." xor:"app-version,version-name"`
	VersionCode      string            `help:"The version code for the application (Android only)." xor:"app-version-code,version-code"`
	AppVersionCode   string            `help:"(deprecated) The version code for the application (Android only)." xor:"app-version-code,version-code"`
	BundleVersion    string            `help:"The bundle version for the application (iOS only)." xor:"app-bundle-version,bundle-version"`
	AppBundleVersion string            `help:"(deprecated) The bundle version for the application (iOS only)." xor:"app-bundle-version,bundle-version"`
}

type Payload

type Payload struct {
	ApiKey           string            `json:"apiKey,omitempty"`
	BuilderName      string            `json:"builderName,omitempty"`
	ReleaseStage     string            `json:"releaseStage,omitempty"`
	SourceControl    SourceControl     `json:"sourceControl,omitempty"`
	Metadata         map[string]string `json:"metadata,omitempty"`
	AppVersion       string            `json:"appVersion,omitempty"`
	AppVersionCode   string            `json:"appVersionCode,omitempty"`
	AppBundleVersion string            `json:"appBundleVersion,omitempty"`
}

type SourceControl

type SourceControl struct {
	Provider   string `json:"provider,omitempty"`
	Repository string `json:"repository,omitempty"`
	Revision   string `json:"revision,omitempty"`
}

Jump to

Keyboard shortcuts

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