slackbot

package
v0.0.0-...-eb8cdb2 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetProject

func GetProject() (string, error)

getProject gets the project ID.

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

func Monitor(ctx context.Context, projectId string, buildId string, webhook string, project string)

Monitor polls Cloud Build until the build reaches completed status, then triggers the Slack event.

func Notify

func Notify(b *cloudbuild.Build, webhook string, project string)

Notify posts a notification to Slack that the build is complete.

func Trigger

func Trigger(ctx context.Context, projectId string, buildId string, webhook string, project string, copyName bool, copyTags bool, copyTimeout bool)

Trigger starts an independent watcher build.

Types

This section is empty.

Jump to

Keyboard shortcuts

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