Skip to content

Commit

Permalink
[JENKINS-73168] Restore 'No changes' label when there are no changes …
Browse files Browse the repository at this point in the history
…in a build (jenkinsci#9283)

Init
  • Loading branch information
janfaracik authored May 19, 2024
1 parent b52201b commit 7f44636
Showing 1 changed file with 14 additions and 9 deletions.
23 changes: 14 additions & 9 deletions core/src/main/resources/jenkins/scm/RunWithSCM/changesets.jelly
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,18 @@ THE SOFTWARE.
<?jelly escape-by-default='true'?>
<j:jelly xmlns:j="jelly:core" xmlns:st="jelly:stapler" xmlns:t="/lib/hudson">
<j:set var="changeSets" value="${it.changeSets}"/>
<j:if test="${!changeSets.isEmpty()}">
<table>
<t:summary icon="symbol-changes">
<j:forEach var="changeSet" items="${changeSets}">
<st:include it="${changeSet}" page="digest.jelly"/>
</j:forEach>
</t:summary>
</table>
</j:if>
<table>
<t:summary icon="symbol-changes">
<j:choose>
<j:when test="${!changeSets.isEmpty()}">
<j:forEach var="changeSet" items="${changeSets}">
<st:include it="${changeSet}" page="digest.jelly"/>
</j:forEach>
</j:when>
<j:otherwise>
<st:include class="hudson.scm.EmptyChangeLogSet" page="digest.jelly" />
</j:otherwise>
</j:choose>
</t:summary>
</table>
</j:jelly>

0 comments on commit 7f44636

Please sign in to comment.