• Icon: Improvement Improvement
    • Resolution: Won't Fix
    • Icon: Major Major
    • git-plugin
    • None

      GIT_COMMIT env variable provides SHA of the current commit being build.

      Please also provide GIT_COMMIT_SHORT env variable that contains the short format of SHA that is easier to read and to use as build qualifier.

      e.g. 81995adb1726ffdd1ab9c8911fe2bfa2a96f6679 would be shown as 81995ad

      Links:
      https://stackoverflow.com/questions/5694389/get-the-short-git-version-hash#answer-5694416

      https://git-scm.com/docs/git-rev-parse

       

          [JENKINS-44449] Provide GIT_COMMIT_SHORT environment variable

          Björn Michael created issue -
          Björn Michael made changes -
          Description Original: _GIT_COMMIT_ env variable provides SHA of the current commit being build.

          Please also provide _GIT_COMMIT_SHORT_ env variable that contains the short format of SHA that is easier to read and to use as build qualifier.

          e.g. _81995adb1726ffdd1ab9c8911fe2bfa2a96f6679_ would be shown as _81995ad_

          Links:
          [https://stackoverflow.com/questions/5694389/get-the-short-git-version-hash#answer-5694416]
          [https://www.kernel.org/pub/software/scm/git/docs/git-rev-parse.html]

           
          New: _GIT_COMMIT_ env variable provides SHA of the current commit being build.

          Please also provide _GIT_COMMIT_SHORT_ env variable that contains the short format of SHA that is easier to read and to use as build qualifier.

          e.g. _81995adb1726ffdd1ab9c8911fe2bfa2a96f6679_ would be shown as _81995ad_

          Links:
           [https://stackoverflow.com/questions/5694389/get-the-short-git-version-hash#answer-5694416]
           [https://www.kernel.org/pub/software/scm/git/docs/git-rev-parse.html|https://git-scm.com/docs/git-rev-parse]
          Björn Michael made changes -
          Description Original: _GIT_COMMIT_ env variable provides SHA of the current commit being build.

          Please also provide _GIT_COMMIT_SHORT_ env variable that contains the short format of SHA that is easier to read and to use as build qualifier.

          e.g. _81995adb1726ffdd1ab9c8911fe2bfa2a96f6679_ would be shown as _81995ad_

          Links:
           [https://stackoverflow.com/questions/5694389/get-the-short-git-version-hash#answer-5694416]
           [https://www.kernel.org/pub/software/scm/git/docs/git-rev-parse.html|https://git-scm.com/docs/git-rev-parse]
          New: _GIT_COMMIT_ env variable provides SHA of the current commit being build.

          Please also provide _GIT_COMMIT_SHORT_ env variable that contains the short format of SHA that is easier to read and to use as build qualifier.

          e.g. _81995adb1726ffdd1ab9c8911fe2bfa2a96f6679_ would be shown as _81995ad_

          Links:
           [https://stackoverflow.com/questions/5694389/get-the-short-git-version-hash#answer-5694416
          ] [https://git-scm.com/docs/git-rev-parse]

           
          Björn Michael made changes -
          Description Original: _GIT_COMMIT_ env variable provides SHA of the current commit being build.

          Please also provide _GIT_COMMIT_SHORT_ env variable that contains the short format of SHA that is easier to read and to use as build qualifier.

          e.g. _81995adb1726ffdd1ab9c8911fe2bfa2a96f6679_ would be shown as _81995ad_

          Links:
           [https://stackoverflow.com/questions/5694389/get-the-short-git-version-hash#answer-5694416
          ] [https://git-scm.com/docs/git-rev-parse]

           
          New: _GIT_COMMIT_ env variable provides SHA of the current commit being build.

          Please also provide _GIT_COMMIT_SHORT_ env variable that contains the short format of SHA that is easier to read and to use as build qualifier.

          e.g. _81995adb1726ffdd1ab9c8911fe2bfa2a96f6679_ would be shown as _81995ad_

          Links:
          [https://stackoverflow.com/questions/5694389/get-the-short-git-version-hash#answer-5694416]

          [https://git-scm.com/docs/git-rev-parse]

           
          Mark Waite made changes -
          Assignee Original: Mark Waite [ markewaite ]
          Björn Michael made changes -
          Link New: This issue relates to JENKINS-26100 [ JENKINS-26100 ]
          Mark Waite made changes -
          Resolution New: Won't Fix [ 2 ]
          Status Original: Open [ 1 ] New: Closed [ 6 ]

            Unassigned Unassigned
            bjmi Björn Michael
            Votes:
            6 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: