Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add "wait" target #120

Open
kevinburkesegment opened this issue Feb 22, 2022 · 0 comments
Open

Add "wait" target #120

kevinburkesegment opened this issue Feb 22, 2022 · 0 comments
Labels

Comments

@kevinburkesegment
Copy link

I've often found it useful to have a command that "waits" for a build to complete and then notifies me about it. When you invoke it it will:

  • Find the git commit and branch for the repo for the current working directory
  • Locate a build in Buildkite for that commit (or wait for one to be created)
  • Poll until the build to complete (you can use the most recent build time for guidance on how often to poll)
  • If it completes, print out summary statistics of how long each step took
  • if it fails, open a browser tab to the build/build step with information about the failed build.

You can see an example here: https://github.com/kevinburke/go-circle#usage

Here's some of the "wait" logic: https://github.com/kevinburke/travis/blob/master/main.go#L217-L341

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants