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

Aborted builds should report the name of the user that terminated the build

    • Icon: New Feature New Feature
    • Resolution: Fixed
    • Icon: Minor Minor
    • core
    • None

      If a user terminates a build, the build report page should list the name of the user that aborted the build (similar to how the name of the user that started a build is done).

          [JENKINS-5754] Aborted builds should report the name of the user that terminated the build

          Clint Wong created issue -
          Alan Harder made changes -
          Component/s New: gui [ 15492 ]
          Alan Harder made changes -
          Link New: This issue is duplicated by JENKINS-6915 [ JENKINS-6915 ]

          evgeny_goldin added a comment -

          I would add something to that: when a build is stopped it's surprising to see Hudson displaying an exception thrown in the log.
          I think if it simply displays "A build was stopped by Xyz" in the log it will be more clear.

          evgeny_goldin added a comment - I would add something to that: when a build is stopped it's surprising to see Hudson displaying an exception thrown in the log. I think if it simply displays "A build was stopped by Xyz" in the log it will be more clear.

          Fred G added a comment -

          This issue has been fixed in Jenkins version 1.426.

          Fred G added a comment - This issue has been fixed in Jenkins version 1.426.
          Fred G made changes -
          Assignee New: Clint Wong [ crwong ]
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]
          Jenkins IRC Bot made changes -
          Component/s New: core [ 15593 ]
          Component/s Original: gui [ 15492 ]
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 135846 ] New: JNJira + In-Review [ 187058 ]

          How could i get this username in my groovy code in pipeline

          deenbandhu agrawal added a comment - How could i get this username in my groovy code in pipeline

          ansib added a comment -

          deenbandhu_agrawal, i think the right place for your question is stackoverflow or the irc channel from jenkins.

          Maybe you take a look at this Plugin: Build User Vars Plugin

          You can use it, like this:

           

          node {
            wrap([$class: 'BuildUser']) {
              def user = env.BUILD_USER_ID
            }
          }
          

          It must be wrapped into a node!

          ansib added a comment - deenbandhu_agrawal , i think the right place for your question is stackoverflow or the irc channel from jenkins. Maybe you take a look at this Plugin: Build User Vars Plugin You can use it, like this:   node { wrap([$class: 'BuildUser' ]) { def user = env.BUILD_USER_ID } } It must be wrapped into a node!

            crwong Clint Wong
            crwong Clint Wong
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: