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

          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.

          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!

          This Plugin is not available in jenkins plugin manager

          deenbandhu agrawal added a comment - This Plugin is not available in jenkins plugin manager

          ansib added a comment -

          Please search in the manager for "user build vars plugin". maybe it is already in your installed plugins.

          ansib added a comment - Please search in the manager for "user build vars plugin". maybe it is already in your installed plugins.

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

              Created:
              Updated:
              Resolved: