JavaScript not being loaded from badge in Build History widget

39 views
Skip to first unread message

Daniel Krämer

unread,
May 26, 2025, 7:47:30 AMMay 26
to Jenkins Developers
I am trying to add a "copy to clipboard" feature to my badges in https://github.com/jenkinsci/badge-plugin/pull/267


For reasons I do not understand, the copy.js is not properly loaded. It seems to be blocked by something when used in badge.jelly. It works just fine in other places.
The script is never being loaded from the server, eventhough the adjunct statement is filled in correctly. Putting my function in the console of the browsers DevTools does work just fine.

Any pointer that tells me what I'm doing wrong or help me bring this into the right direction would be highly appreciated.

Daniel Beck

unread,
May 26, 2025, 8:45:21 AMMay 26
to jenkin...@googlegroups.com
On Mon, May 26, 2025 at 1:47 PM 'Daniel Krämer' via Jenkins Developers <jenkin...@googlegroups.com> wrote:
For reasons I do not understand, the copy.js is not properly loaded. It seems to be blocked by something when used in badge.jelly. It works just fine in other places.
The script is never being loaded from the server, eventhough the adjunct statement is filled in correctly. Putting my function in the console of the browsers DevTools does work just fine.

Regression in 2.463, presumably due to https://github.com/jenkinsci/jenkins/pull/9148.
Reply all
Reply to author
Forward
0 new messages