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

Users cannot cancel builds of non-AbstractProject jobs from build history

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Minor
    • Resolution: Duplicate
    • Component/s: core
    • Labels:
    • Environment:
      Jenkins 2.75
    • Similar Issues:

      Description

      Non-admin users cannot cancel builds from the job page ('x' icon does not appear), but can cancel from the build page. This is the same for multiple non-admin users, who do have permission to cancel builds.

      https://github.com/jenkinsci/jenkins/blob/016fa37aa62e96abff6987f8c7eedb3426c34a02/core/src/main/resources/hudson/widgets/HistoryWidget/entry.jelly#L64

       

      User's view of job page: 

       

      Admin view of job page:

       

      Same user's view of build page:

       

      Permissions configured (the second row is the active one for logged-in and non-admin users):

       

      User roles:

        Attachments

          Issue Links

            Activity

            Hide
            danielbeck Daniel Beck added a comment -

            What kind of job is this? Freestyle, Maven, Matrix, Pipeline, Multibranch Pipeline, etc.?

            Show
            danielbeck Daniel Beck added a comment - What kind of job is this? Freestyle, Maven, Matrix, Pipeline, Multibranch Pipeline, etc.?
            Hide
            danielbeck Daniel Beck added a comment -

            My guess appears to be correct. The button is restricted to Admins for non-AbstractProject types like Pipeline.

            Workarounds: Abort from Jenkins index page (executors list) or from the build page.

            Show
            danielbeck Daniel Beck added a comment - My guess appears to be correct. The button is restricted to Admins for non-AbstractProject types like Pipeline. Workarounds: Abort from Jenkins index page (executors list) or from the build page.
            Hide
            nv035674 Nathan Vahrenberg added a comment -

            The jobs that demonstrate the issue are GitHub Organization jobs (which I believe automatically create Multibranch Pipelines) and are inside a folder, so the structure is:

            Jenkins root > team folder > GitHub organization root > repository > branch

            Where we have defined the folder and organization root, and the repository and branch are automatically discovered via Jenkinsfile.

            Show
            nv035674 Nathan Vahrenberg added a comment - The jobs that demonstrate the issue are GitHub Organization jobs (which I believe automatically create Multibranch Pipelines) and are inside a folder , so the structure is: Jenkins root > team folder > GitHub organization root > repository > branch Where we have defined the folder and organization root, and the repository and branch are automatically discovered via Jenkinsfile.
            Hide
            danielbeck Daniel Beck added a comment -

            So, Pipeline. Appears my analysis above is correct.

            Show
            danielbeck Daniel Beck added a comment - So, Pipeline. Appears my analysis above is correct.
            Hide
            nv035674 Nathan Vahrenberg added a comment -

            I believe so. Also, I just set up a quick test to try to determine if it's related to the folders at all:

            Jenkins root > folder > Maven job

            Non-admin users are able to see the 'x' icon on the Maven job even when it is inside the folder.

            Show
            nv035674 Nathan Vahrenberg added a comment - I believe so. Also, I just set up a quick test to try to determine if it's related to the folders at all: Jenkins root > folder > Maven job Non-admin users are able to see the 'x' icon on the Maven job even when it is inside the folder.

              People

              • Assignee:
                Unassigned
                Reporter:
                nv035674 Nathan Vahrenberg
              • Votes:
                1 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: