Documentation ¶
Index ¶
- func GetProject() (string, error)
- func GetSlackbotBuildStep(build *cloudbuild.Build) (step *cloudbuild.BuildStep, err error)
- func Monitor(ctx context.Context, projectId string, buildId string, webhook string, ...)
- func Notify(b *cloudbuild.Build, webhook string, project string)
- func Trigger(ctx context.Context, projectId string, buildId string, webhook string, ...)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetSlackbotBuildStep ¶
func GetSlackbotBuildStep(build *cloudbuild.Build) (step *cloudbuild.BuildStep, err error)
GetSlackbotBuildStep returns the BuildStep for the first slackbot step it finds; if none are found, it returns an error
func Monitor ¶
Monitor polls Cloud Build until the build reaches completed status, then triggers the Slack event.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.