Documentation ¶
Index ¶
- Constants
- func HasRepoChange(buildInput *buildbucketpb.Build_Input, remote string) (bool, error)
- func ResolveIntegrationURL(buildInput *buildbucketpb.Build_Input, hostOverride, projectOverride string) (*url.URL, error)
- func ResolveRepo(buildInput *buildbucketpb.Build_Input, fallbackRemote string) (string, string, error)
Constants ¶
View Source
const (
DefaultCheckoutTimeout = 10 * time.Minute
)
Variables ¶
This section is empty.
Functions ¶
func HasRepoChange ¶
func HasRepoChange(buildInput *buildbucketpb.Build_Input, remote string) (bool, error)
Check whether a build input has a GerritChange from `remote`.
func ResolveIntegrationURL ¶
func ResolveIntegrationURL(buildInput *buildbucketpb.Build_Input, hostOverride, projectOverride string) (*url.URL, error)
Resolve a build input's integration URL.
func ResolveRepo ¶
func ResolveRepo(buildInput *buildbucketpb.Build_Input, fallbackRemote string) (string, string, error)
ResolveRepo returns the host and project associated with the build's input.
If the build input has a GitilesCommit, return its host and project. If the build input only has a GerritChange, return its host and project. If the build input has neither, return the host and project based on the provided fallback remote.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.