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

Show git commit message in build log

    XMLWordPrintable

Details

    • New Feature
    • Status: Closed (View Workflow)
    • Minor
    • Resolution: Fixed
    • git-plugin
    • None

    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

          markewaite Mark Waite added a comment -

          Fixed in git plugin 3.3.1 released 23 Jun 2017

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

          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

          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

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

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

          People

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

            Dates

              Created:
              Updated:
              Resolved: