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

Cancel permission is granted for users having build permission

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Blocker
    • Resolution: Fixed
    • Component/s: core
    • Labels:
    • Environment:
      Jenkins 1.465
    • Similar Issues:

      Description

      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?

        Attachments

          Issue Links

            Activity

            Hide
            hangsu Hangsu Ma added a comment -

            Hi All,

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

             

            Show
            hangsu Hangsu Ma added a comment - Hi All, I have updated my PR for the fix here: https://github.com/jenkinsci/jenkins/pull/882  
            Hide
            scm_issue_link 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.

            Show
            scm_issue_link 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.
            Hide
            danielbeck Daniel Beck added a comment -

            Fixed in 2.120

            Show
            danielbeck Daniel Beck added a comment - Fixed in 2.120
            Hide
            mcrooney mcrooney added a comment -

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

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

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

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

              People

              • Assignee:
                Unassigned
                Reporter:
                drautureau drautureau
              • Votes:
                31 Vote for this issue
                Watchers:
                35 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: