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

Jenkins CLI is not giving enough information to builds that it kicks off

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Component/s: cli, core
    • Labels:
      None
    • Similar Issues:

      Description

      When I kick off a build using jenkins-cli.jar, the causes element is as follows:

      "causes": [

      { "shortDescription": "Started by command line by kallan" }

      ]

      When I kick off the same build from the web UI, I have access to more information:

      "causes": [

      { "shortDescription": "Started by user Kyle Allan", "userId": "kallan", "userName": "Kyle Allan" }

      ]

      When Jenkins is working in conjunction with: Email-ext Plugin, version 2.22, this is not enough information to trigger the code to send an email to 'Requestors' (the individual who kicks off the build). The relevant code for this logic can be found in https://github.com/jenkinsci/email-ext-plugin/blob/master/src/main/java/hudson/plugins/emailext/ExtendedEmailPublisher.java#L463

        Attachments

          Activity

          Hide
          kallan Kyle Allan added a comment -

          I will be forking and submitting a pull request to fix this bug shortly.

          Show
          kallan Kyle Allan added a comment - I will be forking and submitting a pull request to fix this bug shortly.
          Show
          kallan Kyle Allan added a comment - https://github.com/jenkinsci/jenkins/pull/522
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Kyle Allan
          Path:
          changelog.html
          cli/pom.xml
          core/pom.xml
          core/src/main/java/hudson/Extension.java
          core/src/main/java/hudson/Launcher.java
          core/src/main/java/hudson/model/AbstractBuild.java
          core/src/main/java/hudson/model/RunMap.java
          maven-plugin/pom.xml
          maven-plugin/src/main/java/hudson/maven/reporters/MavenArtifactRecord.java
          plugins/pom.xml
          pom.xml
          test/pom.xml
          ui-samples-plugin/pom.xml
          war/pom.xml
          http://jenkins-ci.org/commit/jenkins/90743996dad6af9a51cc3449b15da60464045c47
          Log:
          Merge remote-tracking branch 'upstream/master' into JENKINS-14393

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Kyle Allan Path: changelog.html cli/pom.xml core/pom.xml core/src/main/java/hudson/Extension.java core/src/main/java/hudson/Launcher.java core/src/main/java/hudson/model/AbstractBuild.java core/src/main/java/hudson/model/RunMap.java maven-plugin/pom.xml maven-plugin/src/main/java/hudson/maven/reporters/MavenArtifactRecord.java plugins/pom.xml pom.xml test/pom.xml ui-samples-plugin/pom.xml war/pom.xml http://jenkins-ci.org/commit/jenkins/90743996dad6af9a51cc3449b15da60464045c47 Log: Merge remote-tracking branch 'upstream/master' into JENKINS-14393
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: vjuranek
          Path:
          core/src/main/java/hudson/cli/BuildCommand.java
          http://jenkins-ci.org/commit/jenkins/4f0bd429ed54d416d3c3199da4f67633d61cbaa7
          Log:
          Merge pull request #522 from RiotGames/JENKINS-14393

          Fix for JENKINS-14393: Expose more information about who triggered a build via jenkins-cli.jar

          Compare: https://github.com/jenkinsci/jenkins/compare/e1562239910b...4f0bd429ed54

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: vjuranek Path: core/src/main/java/hudson/cli/BuildCommand.java http://jenkins-ci.org/commit/jenkins/4f0bd429ed54d416d3c3199da4f67633d61cbaa7 Log: Merge pull request #522 from RiotGames/ JENKINS-14393 Fix for JENKINS-14393 : Expose more information about who triggered a build via jenkins-cli.jar Compare: https://github.com/jenkinsci/jenkins/compare/e1562239910b...4f0bd429ed54
          Show
          jglick Jesse Glick added a comment - https://github.com/jenkinsci/jenkins/commit/33735a4 also.
          Hide
          jglick Jesse Glick added a comment -

          BTW include the text [FIXED JENKINS-14393] in one of your commits to ensure that JIRA gets updated when the fix is pushed.

          Show
          jglick Jesse Glick added a comment - BTW include the text [FIXED JENKINS-14393] in one of your commits to ensure that JIRA gets updated when the fix is pushed.
          Hide
          ingunawa Indra Gunawan added a comment - - edited

          May I know which version of Jenkins includes this fix?

          Thank you.
          -Indra

          Show
          ingunawa Indra Gunawan added a comment - - edited May I know which version of Jenkins includes this fix? Thank you. -Indra
          Hide
          jglick Jesse Glick added a comment -

          1.477

          Show
          jglick Jesse Glick added a comment - 1.477

            People

            • Assignee:
              Unassigned
              Reporter:
              kallan Kyle Allan
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: