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

Matrix-based security -Job cancel privilege not working

    Details

    • Similar Issues:

      Description

      If cancel privilege not granted also,users able to cancel building job.

        Attachments

        1. CancelBuild.jpg
          CancelBuild.jpg
          51 kB
        2. consoleOutput.png
          consoleOutput.png
          87 kB
        3. privilege.png
          privilege.png
          29 kB

          Issue Links

            Activity

            Hide
            roman80 Roman80 added a comment -

            What is the current status of this issue?

            I think it is in general a good idea that the user which triggers a build could cancel his own job but are not allowed to cancel jobs from other users expect the user has the "cancel" flag or is an admin

            Show
            roman80 Roman80 added a comment - What is the current status of this issue? I think it is in general a good idea that the user which triggers a build could cancel his own job but are not allowed to cancel jobs from other users expect the user has the "cancel" flag or is an admin
            Hide
            roman80 Roman80 added a comment -

            Any progress?

            Show
            roman80 Roman80 added a comment - Any progress?
            Hide
            h0riz0n Brent Goodacre added a comment - - edited

            Throwing in my 2 cents here.

            Our automation jobs don't currently handle cancellation well. Currently a proper solution won't be made for the short or medium term, so I've tried to disable cancel permissions for all but 1 group who have been trained to perform all required cleanup after cancelling a job.

            Your plugin does indeed have a "Cancel" permission under the "Jobs" group. Not granting that permission seems to remove the ability to cancel jobs from the queue and slave sidebars on Jenkins, but alternative cancel buttons can still be found when clicking into the jobs themselves.

            So it looks like you're restricting the cancellation of jobs, but not in all places.

            Show
            h0riz0n Brent Goodacre added a comment - - edited Throwing in my 2 cents here. Our automation jobs don't currently handle cancellation well. Currently a proper solution won't be made for the short or medium term, so I've tried to disable cancel permissions for all but 1 group who have been trained to perform all required cleanup after cancelling a job. Your plugin does indeed have a "Cancel" permission under the "Jobs" group. Not granting that permission seems to remove the ability to cancel jobs from the queue and slave sidebars on Jenkins, but alternative cancel buttons can still be found when clicking into the jobs themselves. So it looks like you're restricting the cancellation of jobs, but not in all places.
            Hide
            nify Nico Falk added a comment -

            Any news on this topic?
            I need to prevent special jobs from being canceled. A cancel shall not be possible even for the user which has started the job. Only the administrator shall have the permission to do that.
            Especially using the ClearCase plugin as SCM source will damage the ClearCase view irreparable if the build is canceled during SCM step.

            Show
            nify Nico Falk added a comment - Any news on this topic? I need to prevent special jobs from being canceled. A cancel shall not be possible even for the user which has started the job. Only the administrator shall have the permission to do that. Especially using the ClearCase plugin as SCM source will damage the ClearCase view irreparable if the build is canceled during SCM step.
            Hide
            danielbeck Daniel Beck added a comment -

            The UI issue duplicates JENKINS-32506.

            The underlying unexpected implication issue is tracked as JENKINS-14713.

            Show
            danielbeck Daniel Beck added a comment - The UI issue duplicates JENKINS-32506 . The underlying unexpected implication issue is tracked as JENKINS-14713 .

              People

              • Assignee:
                kohsuke Kohsuke Kawaguchi
                Reporter:
                vijayabharathm vijayabharath m
              • Votes:
                10 Vote for this issue
                Watchers:
                13 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: