Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-66706

Add support for canceling pending builds on update

    XMLWordPrintable

Details

    Description

      GitLab plugin supports canceling pending builds on merge request update. This saves time in projects where builds can stay long time in a build queue and you care only about the status of the newest commit.

       

      Can it be added to the GitLab Branch Source Plugin? 
      Including the trigger directly in a pipeline doesn't work.

      triggers {
         gitlab(
            cancelPendingBuildsOnUpdate: true
         )
      }
      

       

       

      Attachments

        Activity

          mh_cardlay Marek created issue -
          mh_cardlay Marek made changes -
          Field Original Value New Value
          Summary Add support for cancel pending builds on update Add support for canceling pending builds on update
          mh_cardlay Marek made changes -
          Description GitLab plugin supports [canceling pending builds on merge request update|https://github.com/jenkinsci/gitlab-plugin/blob/master/README.md#cancel-pending-builds-on-merge-request-update]. This saves time in projects where builds can stay long time in a build queue and you care only about the status of the newest commit.

           

          Can it be added to the GitLab Branch Source Plugin? 
          Including the trigger directly in a pipeline doesn't work.

           
          {code:java}
          triggers {
            gitlab(
                cancelPendingBuildsOnUpdate: true
             )
          }
          {code}
           

           
          GitLab plugin supports [canceling pending builds on merge request update|https://github.com/jenkinsci/gitlab-plugin/blob/master/README.md#cancel-pending-builds-on-merge-request-update]. This saves time in projects where builds can stay long time in a build queue and you care only about the status of the newest commit.

           

          Can it be added to the GitLab Branch Source Plugin? 
           Including the trigger directly in a pipeline doesn't work.
          {code:java}
          triggers {
            gitlab(
                cancelPendingBuildsOnUpdate: true
             )
          }
          {code}
           

           

          People

            baymac Parichay Barpanda
            mh_cardlay Marek
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: