git

package
v0.0.0-...-72e4f35 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2024 License: BSD-3-Clause Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Fallback ref to fetch, when build has no input, e.g. when the build is manually
	// triggered with LUCI scheduler, or when the recipes_host_override property is set.
	FallbackRef = "refs/heads/main"
)

Variables

This section is empty.

Functions

func CheckoutIntegration

func CheckoutIntegration(ctx context.Context, build *buildbucketpb.Build) (string, error)

CheckoutIntegration checks out the integration.git repo and returns the path to the directory containing the checkout.

func EnsureGitilesCommit

func EnsureGitilesCommit(ctx context.Context, build *buildbucketpb.Build) error

EnsureGitilesCommit ensures that the incoming build always has an Input.GitilesCommit. This ensures that this build and any child builds always use a consistent HEAD.

The host and project for the GitilesCommit are determined by the `ResolveRepo` strategy, with the fallback remote being either the default integration remote set in this file, or the override set by the `recipe_integration_remote` property.

Types

This section is empty.

Jump to

Keyboard shortcuts

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