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

Branch used by manifest is incorrectly compared to generate changelogs

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • repo-plugin
    • None

      When not using the default value for manifest branch, the method getLastState in class RepoScm does not retrieve a valid last state. This leads to an empty changelog.

      This is due to the string comparison :
      if (lastState != null && lastState.getBranch() == manifestBranch)

      It does not work unless branch is 'null'.

      Something like that works better :
      if (lastState != null
      && ((lastState.getBranch() == null && manifestBranch == null)

      (lastState.getBranch().equals(manifestBranch)))) {

            Unassigned Unassigned
            ymorgan Yves-Marie Morgan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: