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

Show git commit message in build log

    Details

    • Type: New Feature
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Component/s: git-plugin
    • Labels:
      None
    • Similar Issues:

      Description

      When the git-plugin picks a commit to use based on the logic it has been given, it would be nice if there was an option to output the commit message for that commit to the build log, so that developers can easily see what is being built without having to manually compare the SHA-1. I.E. output the result of `git log -n 1`

      This could be implemented as an "Additional Behavior" that could be added to any build.

      This could also be added to the "Git Build Data" that is saved for each build.

        Attachments

          Activity

          Hide
          vgaidarji Veaceslav Gaidarji added a comment -

          Printing commit message to log was added in https://github.com/jenkinsci/git-plugin/pull/497.

          Show
          vgaidarji Veaceslav Gaidarji added a comment - Printing commit message to log was added in https://github.com/jenkinsci/git-plugin/pull/497 .
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Mark Waite
          Path:
          CONTRIBUTING.md
          build.gradle
          src/main/java/hudson/plugins/git/GitSCM.java
          src/main/java/hudson/plugins/git/browser/GitRepositoryBrowser.java
          src/main/java/hudson/plugins/git/util/RevCommitRepositoryCallback.java
          src/test/java/hudson/plugins/git/GitSCMTest.java
          http://jenkins-ci.org/commit/git-plugin/31101a39964c56384708b52f11bd135d492f7c69
          Log:
          Merge pull request #497 from vgaidarji/vgaidarji/improve-logs-output

          JENKINS-38241 Print commit message to log on checkout

          Compare: https://github.com/jenkinsci/git-plugin/compare/1ca1f494fb71...31101a39964c

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Mark Waite Path: CONTRIBUTING.md build.gradle src/main/java/hudson/plugins/git/GitSCM.java src/main/java/hudson/plugins/git/browser/GitRepositoryBrowser.java src/main/java/hudson/plugins/git/util/RevCommitRepositoryCallback.java src/test/java/hudson/plugins/git/GitSCMTest.java http://jenkins-ci.org/commit/git-plugin/31101a39964c56384708b52f11bd135d492f7c69 Log: Merge pull request #497 from vgaidarji/vgaidarji/improve-logs-output JENKINS-38241 Print commit message to log on checkout Compare: https://github.com/jenkinsci/git-plugin/compare/1ca1f494fb71...31101a39964c
          Hide
          markewaite Mark Waite added a comment -

          Fixed in git plugin 3.3.1 released 23 Jun 2017

          Show
          markewaite Mark Waite added a comment - Fixed in git plugin 3.3.1 released 23 Jun 2017

            People

            • Assignee:
              Unassigned
              Reporter:
              teeks99 Thomas Kent
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: