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

git-changelog: specifying references

    XMLWordPrintable

Details

    Description

      Hi!

      It would be very helpful if the plugin could serve for generating changelog since last build / last successful build and so on.

      It would include specifying 'from' reference as 'last successful build' / ... and 'to' reference as 'current build'.

      Does it make sense? If I could be helpful with solving this ticket, please let me know.

      Attachments

        Activity

          trainmaster Martin Kulich added a comment -

          Hi guys,
          thank you both for your comments. I will definitely try the way Tomas suggests, I wasn't aware of the variables.

          Maybe it would be helpful to mention it in docs?

          Thanks again!

          trainmaster Martin Kulich added a comment - Hi guys, thank you both for your comments. I will definitely try the way Tomas suggests, I wasn't aware of the variables. Maybe it would be helpful to mention it in docs? Thanks again!
          hujirong Jirong Hu added a comment -

          GIT_PREVIOUS_SUCCESSFUL_COMMIT is not available, I only see these in my Windows environment:

          GIT_BRANCH=origin/master
          GIT_COMMIT=a781fbc49bda7083ebc05e28cee60de4e4258b17
          GIT_PREVIOUS_COMMIT=a781fbc49bda7083ebc05e28cee60de4e4258b17
          GIT_URL=http://github.ooop.com/DevOps/Sample.git

          And I am having this issue: http://stackoverflow.com/questions/36016043/how-to-set-up-git-changelog-in-jenkins

          hujirong Jirong Hu added a comment - GIT_PREVIOUS_SUCCESSFUL_COMMIT is not available, I only see these in my Windows environment: GIT_BRANCH=origin/master GIT_COMMIT=a781fbc49bda7083ebc05e28cee60de4e4258b17 GIT_PREVIOUS_COMMIT=a781fbc49bda7083ebc05e28cee60de4e4258b17 GIT_URL= http://github.ooop.com/DevOps/Sample.git And I am having this issue: http://stackoverflow.com/questions/36016043/how-to-set-up-git-changelog-in-jenkins
          tomasbjerre Tomas Bjerre added a comment -

          I guess you are refering to the printout from "GIt Publisher". Try to use the variables in "Git Changelog" task.

          tomasbjerre Tomas Bjerre added a comment - I guess you are refering to the printout from "GIt Publisher". Try to use the variables in "Git Changelog" task.
          hujirong Jirong Hu added a comment - - edited

          tomasbjerre, All right, I figured out. I am using "Publish Git changelog", and there is another one called "Git changelog". Thanks.

          hujirong Jirong Hu added a comment - - edited tomasbjerre , All right, I figured out. I am using "Publish Git changelog", and there is another one called "Git changelog". Thanks.
          tomasbjerre Tomas Bjerre added a comment -

          No problem =)

          tomasbjerre Tomas Bjerre added a comment - No problem =)

          People

            trainmaster Martin Kulich
            trainmaster Martin Kulich
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: