Avoid that cis of different pg version cancel each other

trigger build is not dynamic since it is not available as buildin substitution
https://cloud.google.com/cloud-build/docs/configuring-builds/substitute-variable-values
pull/15496/head
ibrahim 5 years ago
parent fbede1a04e
commit 42c883acd8

@ -5,7 +5,7 @@ steps:
entrypoint: /bin/bash entrypoint: /bin/bash
args: args:
- '-c' - '-c'
- 'gcloud builds list --ongoing --filter="substitutions.BRANCH_NAME=${BRANCH_NAME} AND substitutions.REPO_NAME=cartodb AND id!=${BUILD_ID}" --format="get(ID)" > jobs_to_cancel' - 'gcloud builds list --ongoing --filter="buildTriggerId=7c2750ed-7d87-4d94-9f60-de53b2e64c61 AND substitutions.BRANCH_NAME=${BRANCH_NAME} AND id!=${BUILD_ID}" --format="get(ID)" > jobs_to_cancel'
- name: gcr.io/cloud-builders/gcloud - name: gcr.io/cloud-builders/gcloud
entrypoint: /bin/bash entrypoint: /bin/bash

@ -5,7 +5,7 @@ steps:
entrypoint: /bin/bash entrypoint: /bin/bash
args: args:
- '-c' - '-c'
- 'gcloud builds list --ongoing --filter="substitutions.BRANCH_NAME=${BRANCH_NAME} AND substitutions.REPO_NAME=cartodb AND id!=${BUILD_ID}" --format="get(ID)" > jobs_to_cancel' - 'gcloud builds list --ongoing --filter="buildTriggerId=51a5fed6-3b1c-4b53-aa4c-9855ccb3f510 AND substitutions.BRANCH_NAME=${BRANCH_NAME} AND id!=${BUILD_ID}" --format="get(ID)" > jobs_to_cancel'
- name: gcr.io/cloud-builders/gcloud - name: gcr.io/cloud-builders/gcloud
entrypoint: /bin/bash entrypoint: /bin/bash

Loading…
Cancel
Save