You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kafka.apache.org by ij...@apache.org on 2022/09/07 03:20:30 UTC

[kafka] branch trunk updated: MINOR: Enable "abort previous builds" for PRs (#12588)

This is an automated email from the ASF dual-hosted git repository.

ijuma pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/kafka.git


The following commit(s) were added to refs/heads/trunk by this push:
     new 30decbe3ef MINOR: Enable "abort previous builds" for PRs (#12588)
30decbe3ef is described below

commit 30decbe3efda2d4b8bef1f1207529e69d6f47949
Author: Ismael Juma <is...@juma.me.uk>
AuthorDate: Tue Sep 6 20:20:22 2022 -0700

    MINOR: Enable "abort previous builds" for PRs (#12588)
    
    When a new commit is pushed to a PR, we should abort the build
    and start a new one instead of queuing one build per commit.
    This reduces wasted resources and provides the desired feedback
    faster (since we only care about the build results for the last
    commit in the PR).
    
    Reviewers: Luke Chen <sh...@gmail.com>
---
 Jenkinsfile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Jenkinsfile b/Jenkinsfile
index e1b4c5b3a1..272e67544a 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -96,7 +96,7 @@ pipeline {
   agent none
   
   options {
-    disableConcurrentBuilds()
+    disableConcurrentBuilds(abortPrevious: isChangeRequest(env))
   }
   
   stages {