-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Re-add out id to Console Output
#25953
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Partially reverts 331c768. In jenkinsci#8960 the `out` id was added to `pre.console-output`'s "otherwise" case in `console.jelly`. In 331c768, the `out` id was removed from `otherwise` when console output was moved from `console.jelly` to `console-log.jelly`. This may have broken the "Copy" button in some instances. When clicked, the copy button will copy the inner text of a container with the id referred to by the `ref` attribute of the copy button. The copy button's ref attribute is `out`. Wikimedia's Jenkins has no element with the `out` id on the console page, which leads to copying `null` to the clipboard. This was filed as https://phabricator.wikimedia.org/T410633.
|
Thanks for the proposed fix. I see the same failure on weekly.ci.jenkins.io at https://weekly.ci.jenkins.io/job/freestyle/1/console . When I click the copy button, it places the text 'null' on my clipboard. The example at Wikimedia is on Jenkins 2.528.3 and yet I'm unable to duplicate the issue on ci.jenkins.io . Any hints what is different between ci.jenkins.io 2.528.3 and the Wikimedia 2.528.3? I've labeled this as a regression and proposed that it should be backported to the next Jenkins LTS. If that is approved, it will be fixed in the 2.541.1 release Jan 21, 2026. |
MarkEWaite
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR is now ready for merge. We will merge it after approximately 24 hours if there is no negative feedback.
/label ready-for-merge
|
Another regression caused on the classic UI by experimental changes 😢 |
|
Congratulations on getting your very first Jenkins core pull request merged 🎉🥳 |
|
Fixed in 2.543. |
Partially reverts 331c768. In jenkinsci#8960 the `out` id was added to `pre.console-output`'s "otherwise" case in `console.jelly`. In 331c768, the `out` id was removed from `otherwise` when console output was moved from `console.jelly` to `console-log.jelly`. This may have broken the "Copy" button in some instances. When clicked, the copy button will copy the inner text of a container with the id referred to by the `ref` attribute of the copy button. The copy button's ref attribute is `out`. Wikimedia's Jenkins has no element with the `out` id on the console page, which leads to copying `null` to the clipboard. This was filed as https://phabricator.wikimedia.org/T410633. Co-authored-by: Mark Waite <[email protected]> (cherry picked from commit abecec2)
I was wondering the same thing. We're using the official Jenkins Debian packages, so I'm unsure what about ci.jenkins.io is different exactly. In any case, thank you for checking this and for the merge! |
Partially reverts 331c768. In jenkinsci#8960 the `out` id was added to `pre.console-output`'s "otherwise" case in `console.jelly`. In 331c768, the `out` id was removed from `otherwise` when console output was moved from `console.jelly` to `console-log.jelly`. This may have broken the "Copy" button in some instances. When clicked, the copy button will copy the inner text of a container with the id referred to by the `ref` attribute of the copy button. The copy button's ref attribute is `out`. Wikimedia's Jenkins has no element with the `out` id on the console page, which leads to copying `null` to the clipboard. This was filed as https://phabricator.wikimedia.org/T410633. Co-authored-by: Mark Waite <[email protected]> (cherry picked from commit abecec2)
Partially reverts 331c768. In jenkinsci#8960 the `out` id was added to `pre.console-output`'s "otherwise" case in `console.jelly`. In 331c768, the `out` id was removed from `otherwise` when console output was moved from `console.jelly` to `console-log.jelly`. This may have broken the "Copy" button in some instances. When clicked, the copy button will copy the inner text of a container with the id referred to by the `ref` attribute of the copy button. The copy button's ref attribute is `out`. Wikimedia's Jenkins has no element with the `out` id on the console page, which leads to copying `null` to the clipboard. This was filed as https://phabricator.wikimedia.org/T410633. Co-authored-by: Mark Waite <[email protected]> (cherry picked from commit abecec2)
Partially reverts 331c768. In jenkinsci#8960 the `out` id was added to `pre.console-output`'s "otherwise" case in `console.jelly`. In 331c768, the `out` id was removed from `otherwise` when console output was moved from `console.jelly` to `console-log.jelly`. This may have broken the "Copy" button in some instances. When clicked, the copy button will copy the inner text of a container with the id referred to by the `ref` attribute of the copy button. The copy button's ref attribute is `out`. Wikimedia's Jenkins has no element with the `out` id on the console page, which leads to copying `null` to the clipboard. This was filed as https://phabricator.wikimedia.org/T410633. Co-authored-by: Mark Waite <[email protected]> (cherry picked from commit abecec2)
Partially reverts 331c768. In jenkinsci#8960 the `out` id was added to `pre.console-output`'s "otherwise" case in `console.jelly`. In 331c768, the `out` id was removed from `otherwise` when console output was moved from `console.jelly` to `console-log.jelly`. This may have broken the "Copy" button in some instances. When clicked, the copy button will copy the inner text of a container with the id referred to by the `ref` attribute of the copy button. The copy button's ref attribute is `out`. Wikimedia's Jenkins has no element with the `out` id on the console page, which leads to copying `null` to the clipboard. This was filed as https://phabricator.wikimedia.org/T410633. Co-authored-by: Mark Waite <[email protected]> (cherry picked from commit abecec2)
Partially reverts 331c768.
In #8960 the
outid was added topre.console-output's "otherwise" case inconsole.jelly.In 331c768, the
outid was removed fromotherwisewhen console output was moved fromconsole.jellytoconsole-log.jelly.This may have broken the "Copy" button in some instances.
When clicked, the copy button will copy the inner text of a container with the id referred to by the
refattribute of the copy button. The copy button's ref attribute isout.Wikimedia's Jenkins has no element with the
outid on the console page, which leads to copyingnullto the clipboard.This was filed as https://phabricator.wikimedia.org/T410633.
Proposed changelog entries
Proposed changelog category
/label bug
Proposed upgrade guidelines
N/A