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

Getting "Invalid id:" error when trying to create a very simple changelog

    XMLWordPrintable

Details

    Description

      I installed the latest version of the plugin.
      I then attempted to configure it to handle the most simple case possible; generating a CHANGELOG.txt file based on the difference between $GIT_PREVIOUS_COMMIT and $GIT_COMMIT

      I get this error. Here is the console log:

      Checking out Revision 67e061dcfa6c9edf6fce28c40939418a0c334ea3 (origin/foo)
      > git config core.sparsecheckout # timeout=10
      > git checkout -f 67e061dcfa6c9edf6fce28c40939418a0c334ea3
      > git rev-list 67e061dcfa6c9edf6fce28c40939418a0c334ea3 # timeout=10
      [workspace] $ /bin/sh -xe /tmp/hudson770153796434746119.sh
      + echo GIT_COMMIT is 67e061dcfa6c9edf6fce28c40939418a0c334ea3
      GIT_COMMIT is 67e061dcfa6c9edf6fce28c40939418a0c334ea3
      + echo GIT_PREVIOUS_COMMIT is 67e061dcfa6c9edf6fce28c40939418a0c334ea3
      GIT_PREVIOUS_COMMIT is 67e061dcfa6c9edf6fce28c40939418a0c334ea3
      + echo GIT_PREVIOUS_SUCCESSFUL_COMMIT is 67e061dcfa6c9edf6fce28c40939418a0c334ea3
      GIT_PREVIOUS_SUCCESSFUL_COMMIT is 67e061dcfa6c9edf6fce28c40939418a0c334ea3

      + exit 0

      --- Git Changelog —
      ---
      Creating changelog CHANGELOG.txtInvalid id: 67e061dcfa6c9edf6fce28c40939418a0c334ea3

      Attachments

        Activity

          mcsf M Chon added a comment -

          Actual changes in Build 17 I was hoping to be displayed

          mcsf M Chon added a comment - Actual changes in Build 17 I was hoping to be displayed
          tomasbjerre Tomas Bjerre added a comment -

          If you dont add a template, nothing will be displayed.

          tomasbjerre Tomas Bjerre added a comment - If you dont add a template, nothing will be displayed.
          mcsf M Chon added a comment -

          OK, I found a template and pasted it in and it seems to be working.
          I haven't tried all the test cases, just $GIT_PREVIOUS_COMMIT and $GIT_COMMIT (which is the use case I care about).
          The documentation is a little confusing.
          Anyhow, seems to be fixed. Thanks.

          mcsf M Chon added a comment - OK, I found a template and pasted it in and it seems to be working. I haven't tried all the test cases, just $GIT_PREVIOUS_COMMIT and $GIT_COMMIT (which is the use case I care about). The documentation is a little confusing. Anyhow, seems to be fixed. Thanks.
          mcsf M Chon added a comment -

          OK, Version 1.18 now shows up as a "stable" update.

          mcsf M Chon added a comment - OK, Version 1.18 now shows up as a "stable" update.

          BTW, do the post steps "Git changelog" and "Publish Git changelog" come from different plugins or the same plugin?

          That's the same plugin, but a different code base behind. As it does similar things, it was put together in one plugin.

          paulwellnerbou Paul Wellner Bou added a comment - BTW, do the post steps "Git changelog" and "Publish Git changelog" come from different plugins or the same plugin? That's the same plugin, but a different code base behind. As it does similar things, it was put together in one plugin.

          People

            tomasbjerre Tomas Bjerre
            mcsf M Chon
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: