-
Notifications
You must be signed in to change notification settings - Fork 856
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
Cancelot not cancelling builds in progress #386
Comments
Looks like something is wrong with filters here, so cloudbuild SDK returns empty list for ongoing builds. Probably API was changed since then, and branch name is now available in Also this will not work with GitHub App builds (because they in fact are sourced from storage bucket). I am using simple bash script instead of cancelot to cancel previous cloud builds, it bypasses those issues. Also it fetches target branch from current build id and works for Github-sourced builds (filtering by Adapted version to mimic cancelot args is here: Usage: steps:
- id: 'cancel previous builds'
name: 'gcr.io/cloud-builders/gcloud-slim:latest'
entrypoint: 'bash'
args: ['path/to/cancelot.sh', '--current_build_id', '$BUILD_ID', '--same_trigger_only']
|
Is this still a problem? |
…ex/bb0540b208019382d08732cc6dd59007 story: GoogleCloudPlatform/cloud-builders-community#386 (comment) (cherry picked from commit 99dd23b3d0c79564f7e7ea18bd31d7192fdd33a4)
yes, it still does not work. |
Does your cloud build trigger configured in |
Affected builder image
gcr.io/cloud-builders-community/cancelot
Expected Behavior
Cancelot should be cancelling running builds.
Actual Behavior
The filters are not matching any running builds, even though some are currently in progress.
Steps to Reproduce the Problem
WORKING
Additional Info
Step output for initial build:
Step output for subsequent build:
The text was updated successfully, but these errors were encountered: