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

Jenkins only displays commit but not the branch name

XMLWordPrintable

      I want to retrieve the code branch name during Java packaging. I am using the git-commit-id-plugin. In the git.properties file generated when running on my local computer, the value of git.branch is the branch name. However, in the git.properties file generated during packaging on the Jenkins environment server, the value of git.branch is the commit ID. 

      Here jenkins checks out the code in detached head mode.

      Note:- We had reached out to manitainer for this plugin and he asked to get fix from jenkins, Please find the link below for your refernce.

      https://github.com/git-commit-id/git-commit-id-maven-plugin/issues/325

            markewaite Mark Waite
            venky2291 Pasupula
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: