Skip to content

Commit

Permalink
[JENKINS-72711] Restore progress animation in build history and build…
Browse files Browse the repository at this point in the history
…time trend views (#8966)

[JENKINS-72711] Restore progress animation in build history and build time trend views

Co-authored-by: Daniel Beck <daniel-beck@users.noreply.github.com>
  • Loading branch information
daniel-beck and daniel-beck authored Feb 19, 2024
1 parent 32ee888 commit f91d1ec
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
7 changes: 7 additions & 0 deletions core/src/main/resources/hudson/model/Job/buildTimeTrend.jelly
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,13 @@ THE SOFTWARE.
<l:icon src="symbol-status-nobuilt" id="nobuilt" />
<l:icon src="symbol-status-aborted" id="aborted" />
<l:icon src="symbol-status-disabled" id="disabled" />

<l:icon src="symbol-status-blue-anime" id="blue-anime" />
<l:icon src="symbol-status-yellow-anime" id="yellow-anime" />
<l:icon src="symbol-status-red-anime" id="red-anime" />
<l:icon src="symbol-status-nobuilt-anime" id="nobuilt-anime" />
<l:icon src="symbol-status-aborted-anime" id="aborted-anime" />
<l:icon src="symbol-status-disabled-anime" id="disabled-anime" />
</template>
<h1>${%Build Time Trend}</h1>
<div align="center">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ window.buildTimeTrend_displayBuilds = function (data) {
*/
function generateSVGIcon(iconName) {
const icons = document.querySelector("#jenkins-build-status-icons");
iconName = iconName.replace("-anime", "");

return icons.content.querySelector(`#${iconName}`).cloneNode(true);
}
Expand Down
6 changes: 6 additions & 0 deletions core/src/main/resources/lib/hudson/buildListTable.jelly
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,12 @@ THE SOFTWARE.
<l:icon src="symbol-status-nobuilt" id="nobuilt" />
<l:icon src="symbol-status-aborted" id="aborted" />
<l:icon src="symbol-status-disabled" id="disabled" />
<l:icon src="symbol-status-blue-anime" id="blue-anime" />
<l:icon src="symbol-status-yellow-anime" id="yellow-anime" />
<l:icon src="symbol-status-red-anime" id="red-anime" />
<l:icon src="symbol-status-nobuilt-anime" id="nobuilt-anime" />
<l:icon src="symbol-status-aborted-anime" id="aborted-anime" />
<l:icon src="symbol-status-disabled-anime" id="disabled-anime" />
<l:icon src="symbol-terminal" id="console" />
</template>

Expand Down

0 comments on commit f91d1ec

Please sign in to comment.