jenkinsci / jenkinsci/git-plugin

[JENKINS-15227] changelog.xml is NOT a xml style file

Open
#2,192 3 comments 0 reactions 0 assignees View on GitHub
component:changelog-history-plugin component:git-plugin imported-jira-issue priority:trivial resolution:unresolved
Dominant language
Java
Stars
694
Forks
1.1k
Avg merge
1h 29m
Merged PRs (30d)
3

Description

Afer using GIT plugin, the changelog.xml under jobs/job_name/date_time/ is as text/plain style file not a xml style file which leads to interpretion issue by using a jelly script to publish the git commits logs































CHANGES

${spc}Revision ${cs.revision} by



${aUser.displayName}:

${cs.user}:



(${cs.msgAnnotated})




${spc}${p.editType.name}
${p.value}



No Changes






email display:

Revision 1127083ecf3db6518d6788c746ae082e8bf50447 by :(modify 9 files for testing)

edit

edit

edit

edit

edit

edit

edit

edit

edit

---
Originally reported by pepsisky, imported from: changelog.xml is NOT a xml style file


  • status: Open
  • priority: Trivial
  • component(s): changelog-history-plugin, git-plugin
  • resolution: Unresolved
  • votes: 3
  • watchers: 6
  • imported: 2025-12-02

Raw content of original issue

Afer using GIT plugin, the changelog.xml under jobs/job_name/date_time/ is as text/plain style file not a xml style file which leads to interpretion issue by using a jelly script to publish the git commits logs

<j:set var="changeSet" value="${build.changeSet}" />
<j:if test="${changeSet!=null}">
<j:set var="hadChanges" value="false" />
<TABLE width="100%">
<TR><TD class="bg1" colspan="2"><B>CHANGES</B></TD></TR>
<j:forEach var="cs" items="${changeSet.logs}" varStatus="loop">
<j:set var="hadChanges" value="true" />
<j:set var="aUser" value="${cs.hudsonUser}"/>
<TR>
<TD colspan="2" class="bg2">${spc}Revision <B>${cs.revision}</B> by
<B><j:choose>
<j:when test="${aUser!=null}">${aUser.displayName}: </j:when>
<j:otherwise>${cs.user}: </j:otherwise>
</j:choose></B>
<B>(${cs.msgAnnotated})</B>
</TD>
</TR>
<j:forEach var="p" items="${cs.paths}">
<TR>
<TD width="10%">${spc}${p.editType.name}</TD>
<TD>${p.value}</TD>
</TR>
</j:forEach>
</j:forEach>
<j:if test="${!hadChanges}">
<TR><TD colspan="2">No Changes</TD></TR>
</j:if>
</TABLE>
<BR/>
</j:if>

email display:

Revision 1127083ecf3db6518d6788c746ae082e8bf50447 by :(modify 9 files for testing)
edit
edit
edit
edit
edit
edit
edit
edit
edit


Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.