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

Cancel permission is granted for users having build permission

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Blocker Blocker
    • core
    • Jenkins 1.465

      I expected that people need to have the "Cancel" permission to be able to cancel a build. That's right, unless they have the "Build" permission.
      I would like to be able to give "build" permission to some people without allowing them to abort a build. What do you think of it?

          [JENKINS-14713] Cancel permission is granted for users having build permission

          Roman80 added a comment -

          And without nginx

          Roman80 added a comment - And without nginx

          Nico Falk added a comment -

          Hi,
          I have many builds using ClearCase Plugin.
          If the job gets canceled during SCM access, my ClearCase View is irreparably damaged.
          Thus, in this particular case it would be quite handy to remove the "Cancel" permission independent of the "Build" permission!
          Thanks a lot.

          Nico Falk added a comment - Hi, I have many builds using ClearCase Plugin. If the job gets canceled during SCM access, my ClearCase View is irreparably damaged. Thus, in this particular case it would be quite handy to remove the "Cancel" permission independent of the "Build" permission! Thanks a lot.

          Any update on this issue ?..

          I have same requirement of grant cancel access to limited folks and build access to all authenticated users..

          I have configured role strategy plugin. Please fix this issue where we are able to configure build and cancel permission to limited folks..

           

           

           

          Abhishek Shinde added a comment - Any update on this issue ?.. I have same requirement of grant cancel access to limited folks and build access to all authenticated users.. I have configured role strategy plugin. Please fix this issue where we are able to configure build and cancel permission to limited folks..      

          Any updates i also need this feature

          deenbandhu agrawal added a comment - Any updates i also need this feature

          Nikolas Falco added a comment -

          me too, our users stops pipeline builds also if they do not have rights too.

          Nikolas Falco added a comment - me too, our users stops pipeline builds also if they do not have rights too.

          Hangsu Ma added a comment -

          Hi All,

          I have updated my PR for the fix here: https://github.com/jenkinsci/jenkins/pull/882

           

          Hangsu Ma added a comment - Hi All, I have updated my PR for the fix here: https://github.com/jenkinsci/jenkins/pull/882  

          Code changed in jenkins
          User: Hangsu Ma
          Path:
          core/src/main/java/hudson/model/Item.java
          http://jenkins-ci.org/commit/jenkins/081e400a5b618b035fa9c350e3bf4341d66e2476
          Log:
          [FIXED JENKINS-14713] make Cancel independent from Build permission (#882)

          A script in the confluence page below will make sure configuration is
          compatible after this change:
          https://wiki.jenkins-ci.org/x/fAAhB

          *NOTE:* This service been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/

          Functionality will be removed from GitHub.com on January 31st, 2019.

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Hangsu Ma Path: core/src/main/java/hudson/model/Item.java http://jenkins-ci.org/commit/jenkins/081e400a5b618b035fa9c350e3bf4341d66e2476 Log: [FIXED JENKINS-14713] make Cancel independent from Build permission (#882) A script in the confluence page below will make sure configuration is compatible after this change: https://wiki.jenkins-ci.org/x/fAAhB * NOTE: * This service been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/ Functionality will be removed from GitHub.com on January 31st, 2019.

          Daniel Beck added a comment -

          Fixed in 2.120

          Daniel Beck added a comment - Fixed in 2.120

          mcrooney added a comment -

          Awesome, thanks danielbeck! This would be a great LTS backport candidate IMHO

          mcrooney added a comment - Awesome, thanks danielbeck ! This would be a great LTS backport candidate IMHO

          Daniel Beck added a comment -

          The 2.107.x line has ended, the next LTS release, barring major problems, will be 2.121.1.

          Daniel Beck added a comment - The 2.107.x line has ended, the next LTS release, barring major problems, will be 2.121.1.

            Unassigned Unassigned
            drautureau drautureau
            Votes:
            31 Vote for this issue
            Watchers:
            34 Start watching this issue

              Created:
              Updated:
              Resolved: