* Extract menu action icon helpers into MenuActions
The overflow menu and Functions.convertActionsToJson each had their own copy
of the "does this action have an icon" check, and the menu resolved legacy
image icons to symbols inline. Move both into MenuActions so they can be
shared, with no change in behaviour.
* Add javadoc and tests for MenuActions
* Update MenuActions.java
* Simplify
docs: fix duplicated "is" in CONTRIBUTING pull request section
Removes a stray "is" from the branching note so the sentence reads
"It is a good practice to create branches instead of pushing to master."
Pure prose fix, no code or build impact.
No build commands were run; docs-only change.
Signed-off-by: Aditya Pandey <aditya060806@gmail.com>
Co-authored-by: Aditya060806 <adityapandey.cs28@gmail.com>
Guard against a null return value from AdministrativeMonitor.all().get(AdministrativeMonitorImpl.class) when updating the administrative monitor in clogCheck().
This also resolves the untriaged SpotBugs NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE exclusion for SCMTrigger$DescriptorImpl in core/src/spotbugs/excludesFilter.xml.
Don't link to a user that does not exist in the cause of a build
The cause of a build that a user started keeps the id of the user. When there
is no such user any more, for example because an administrator deleted it, the
URL of the user is null, but the views of the cause only looked at the id. The
build page linked to "null", and the experimental build page showed a broken
avatar and linked to the dashboard. The console already says that such a build
was started by an unknown or anonymous user, so look at the user instead, and
show the same.
Move the texts of the artifact list next to its view
hudson/model/Run/artifactList.jelly was split off lib/hudson/artifactList.jelly
in 6781baf183, but the properties files of the list stayed in lib/hudson. The
view finds no bundle next to it, so it prints its keys: "building" instead of
the note that a running build may have an incomplete list, and none of the
translations of the "view" link can be used.
Move the properties files, with their translations, next to the view.
* dedicated action for build time trend
* Render build time trend as svg instead of png
Use a bar chart to display the execution time of the run. Each bar is a
link to the run with a tooltip with display name, duration and
optionally the agent (not for pipeline jobs). The x-axis label is always
`#<build-number>`
* spotless
* Exclude the incorrect dead local store spotbugs warning
* address review findings
- escape quotes in tooltip
- build time trend is now an action. The links now need to go via the
parent
---------
Co-authored-by: Mark Waite <mark.earl.waite@gmail.com>
Node.js no longer distributes Corepack as of 25.0.0. With the default
corepackVersion (provided) the frontend plugin copies Corepack out of the
Node.js distribution, finds nothing, and then tries to download
corepack-provided.tgz from the npm registry, which does not exist. The build
therefore fails right after the Node.js download on Node.js 26.
Set the Corepack version explicitly in a property. 0.36.0 is the version
Node.js 24.22.3 bundles, so builds on Node.js 24 keep using the same Corepack.
Renovate keeps the property up to date like node.version.
* Bound the "**/" fallback scan in validateAntFileMask
ValidateAntFileMask.hasMatch() already bounds its DirectoryScanner so a
missing/misspelled file mask gives up after a fixed number of negative
operations instead of walking the whole workspace. However, the second
heuristic check (retrying the mask with a "**/" prefix to suggest a
nested-path fix) built its own DirectoryScanner via
FileSet.getDirectoryScanner(), which is a plain, unbounded scanner.
On a workspace with a very large number of directories, archiveArtifacts
with a missing target and allowEmptyArchive=false calls
validateAntFileMask to produce a helpful error message, and the fast,
prunable initial scan can be followed by this unbounded "**/" scan,
which walks the entire tree accumulating unmatched files/directories
until the agent JVM hits OutOfMemoryError.
Extract the bounded-scanner setup into a shared boundedScan() helper and
use it for the "**/" check too, so it also gives up after the bound
instead of running unbounded.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
* Update FilePathTest for nested directory validation
Refactor test to validate nested path handling and suggestions.
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
---------
Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Security realms such as LDAP and Active Directory ignore the case of user
IDs, so a user who signs in as "Alice" starts builds as "Alice" while
their ID is "alice". Their builds weren't labelled or listed first.
The culprits stored with a completed build include the authors of its
changes, so they are checked first, and the changes are read only for
builds the user may have changed.
Claude-Session: https://claude.ai/code/session_01CsqM69jCLL4bRkTpAsX9xu
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Do not leak CLI interrupts into pooled request threads
PlainCLIProtocol.FramedReader calls handleClose twice on EOF. The second
call could interrupt the request thread after ServerSideImpl.run had
finished its post-exit sleep but before runningThread was cleared,
leaving the interrupt flag set on a pooled Jetty thread. The next
FullDuplexHttpService download served by that thread then failed its
first wait() immediately and removed its session, so the matching
upload request failed with "No download side found". This made
Security3630Test flaky.
Guard runningThread with the instance lock and clear any pending
interrupt before returning the thread to the container.
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* Add a Recent tab to the experimental dashboard home page
The Recent tab becomes the default tab, and shows running builds, then queued builds, then recently finished builds, with the ones the current user started or contributed changes to first. Recently finished builds come from a bounded in-memory index of the latest completed build of the most recently active jobs. The tab refreshes in place every few seconds, replacing only the rows that changed.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Address review feedback on the dashboard's Recent tab
- Rank the user's finished builds before capping the list
- Leave out completed builds that an executor still holds
- Match the build's own changes rather than its culprits
- Update the running count badge on refresh
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Address more review feedback on the dashboard's Recent tab
- Remember each job's highest-numbered completed build, also when builds complete out of order
- Apply renames and deletions that happen while the recent builds are first loaded
- Show how long ago a build started, rather than when it was created
- Keep keyboard focus on a row's control when a refresh replaces it
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Restore focus after expanding sections, and recover a job whose remembered build is gone
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Keep the newer build when a job is renamed, and refocus a control whose row moved
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Remember the last completed build of every job for the Recent tab
Users who can only see a few jobs still find their recent builds when the
rest of the instance is busier.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Check each folder once when listing recently finished builds
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Keep the recent builds index ordered, so reads don't sort it
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Test that recent builds check each job in a readable folder
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Check the permission of each recently finished job, as not every folder does
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Update recent builds by job name on renames and deletions, and read the name under the lock
Moving a folder notifies each item inside it, and deleting one deletes each item first, so scanning the whole
index on every notification made large folder changes quadratic.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Hide running and queued builds in folders the user cannot read
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Expand the queued builds when the focused row moves into the hidden ones
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Show the run's app bar actions on Recent rows, as build history does
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* Remove jQuery and Handlebars from the shared vendors bundle
* Remove window-handle
window-handle only let Node-based tests inject a fake window via
setWindow(). Those tests were removed in 2022 and nothing calls
setWindow anymore, so getWindow() always returned the global window.
Use window directly and drop the dependency.
* Report body-read failures to the error callback and remove unused storage helpers
A timeout or dropped connection while reading the response body
rejected inside the success handler, so neither callback ran and the
caller waited forever. Reading the body before handling the response
sends those failures to the error handler, as jQuery did.
Also deletes util/localStorage.js and util/jenkinsLocalStorage.js,
which nothing has imported since 2023.
* Add an experimental dashboard home page with a paginated All tab
Users with the experimental dashboard flag get a home page at the root URL made of tabs. The All tab lists the top-level items a page at a time as the user scrolls, with a search across every folder, so instances with thousands of jobs render quickly. Plugins can add tabs with a TransientActionFactory for Dashboard, typically returning an ItemListTab. The views stay reachable from a Views menu.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Make the empty-state links work from the dashboard's All tab URL
The setup links on an empty instance were relative, so they broke at /all/.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Continue the All tab after the last item shown, and show the root welcome page when it is empty
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Satisfy SpotBugs about the nullable result of tryParseNumber
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Show the full names of items from inside folders in item list tabs
A plugin tab such as favourites can list items from any folder, and their short names alone are ambiguous.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Explain why the root's overflow menu follows the dashboard
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Moves the row markup of projectView-new.jelly into lib/hudson/jobListItem.jelly, so other experimental pages can render the same rows.
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
- A line ending in '\' goes on with the next line minus its leading
spaces, so 'word\' + ' next' loaded as 'wordnext'. 294 such places
in 111 files, most in Bulgarian. Put the space before the '\'.
- Words in Bulgarian, Russian and Serbian that had a Latin a/c/e/o/p/j
in them, plus a stray 'f' and a Latin 'je' in Serbian.
- Serbian <ТТ> and <а href> tags in Cyrillic, so the link and the
code formatting did not work.
TranslationTextTest checks all three.