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

Cancel downstream builds if was triggered by GHPRB. #738

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Mar 6, 2019

  1. Cancel downstream builds if was triggered by GHPRB.

    On the situation where a build trigger a new async builds, if any user
    updates the PR only one build will be cancel, the upstream one.
    
    When downstreams jobs take a lot to run, the CI is block with builds
    taht does not make sense to have running at all.
    
    With this change, each build is validated if the cause is a
    `UpstreamCause` and if it is true, this validates that the parent build
    was triggered by GHPRB, if so will be cancel if the PR id match.
    
    Signed-off-by: Eloy Coto <eloy.coto@gmail.com>
    eloycoto committed Mar 6, 2019
    Configuration menu
    Copy the full SHA
    037568b View commit details
    Browse the repository at this point in the history