Commit Graph
14571 Commits
Author SHA1 Message Date
Kris Stern 9b6bc6992f Remove YUI (#10135)
<!-- Comment:
A great PR typically begins with the line below.
Replace XXXXX with the numeric part of the issue ID you created in Jira.
Note that if you want your changes backported into LTS, you need to
create a Jira issue. See
https://www.jenkins.io/download/lts/#backporting-process for more
information.
-->

See JENKINS-75100

Now that the [disable by default of
YUI](https://github.com/jenkinsci/jenkins/pull/10045) has been released
for ~1 month with no complaints its time to start thinking about
removing YUI itself.

We're passed the baseline cut-off for the next LTS which was what
@MarkEWaite requested that I wait for before removing YUI fully

What I've left:
* I've removed CSS where I think its safe but I haven't removed all
mentions of `yui`.
* `l:yui` I've changed it to do nothing but its used in a few
unmaintained plugins, I could remove this, thoughts?
* There's a few TODOs that say they could be cleaned up after yui was
removed for the component, but hasn't been done yet

ATH passed:
https://github.com/jenkinsci/acceptance-test-harness/pull/1884
Bom: https://github.com/jenkinsci/bom/pull/4176

<!-- Comment:
If the issue is not fully described in Jira, add more information here
(justification, pull request links, etc.).

 * We do not require Jira issues for minor improvements.
* Bug fixes should have a Jira issue to facilitate the backporting
process.
 * Major new features should have a Jira issue.
-->

### Testing done

Clicked around a number of pages and didn't see anything wrong.

<!-- Comment:
Provide a clear description of how this change was tested.
At minimum this should include proof that a computer has executed the
changed lines.
Ideally this should include an automated test or an explanation as to
why this change has no tests.
Note that automated test coverage is less than complete, so a successful
PR build does not necessarily imply that a computer has executed the
changed lines.
If automated test coverage does not exist for the lines you are
changing, you must describe the scenario(s) in which you manually tested
the change.
For frontend changes, include screenshots of the relevant page(s) before
and after the change.
For refactoring and code cleanup changes, exercise the code before and
after the change and verify the behavior remains the same.
-->

### Proposed changelog entries

- Remove the Yahoo! User Interface library

<!-- Comment:
The changelog entry should be in the imperative mood; e.g., write "do
this"/"return that" rather than "does this"/"returns that".
For examples, see: https://www.jenkins.io/changelog/

Do not include the Jira issue in the changelog entry.
Include the Jira issue in the description of the pull request so that
the changelog generator can find it and include it in the generated
changelog.

You may add multiple changelog entries if applicable by adding a new
entry to the list, e.g.
- First changelog entry
- Second changelog entry
-->

### Proposed upgrade guidelines

N/A

<!-- Comment:
Leave the proposed upgrade guidelines in the pull request with the "N/A"
value if no upgrade guidelines are needed.
The changelog generator relies on the presence of the upgrade guidelines
section as part of its data extraction process.
-->

```[tasklist]
### Submitter checklist
- [ ] The Jira issue, if it exists, is well-described.
- [ ] The changelog entries and upgrade guidelines are appropriate for the audience affected by the change (users or developers, depending on the change) and are in the imperative mood (see [examples](https://github.com/jenkins-infra/jenkins.io/blob/master/content/_data/changelogs/weekly.yml)). Fill in the **Proposed upgrade guidelines** section only if there are breaking changes or changes that may require extra steps from users during upgrade.
- [ ] There is automated testing or an explanation as to why this change has no tests.
- [ ] New public classes, fields, and methods are annotated with `@Restricted` or have `@since TODO` Javadocs, as appropriate.
- [ ] New deprecations are annotated with `@Deprecated(since = "TODO")` or `@Deprecated(forRemoval = true, since = "TODO")`, if applicable.
- [ ] New or substantially changed JavaScript is not defined inline and does not call `eval` to ease future introduction of Content Security Policy (CSP) directives (see [documentation](https://www.jenkins.io/doc/developer/security/csp/)).
- [ ] For dependency updates, there are links to external changelogs and, if possible, full differentials.
- [ ] For new APIs and extension points, there is a link to at least one consumer.
```

### Desired reviewers

@mention

<!-- Comment:
If you need an accelerated review process by the community (e.g., for
critical bugs), mention @jenkinsci/core-pr-reviewers.
-->

Before the changes are marked as `ready-for-merge`:

```[tasklist]
### Maintainer checklist
- [ ] There are at least two (2) approvals for the pull request and no outstanding requests for change.
- [ ] Conversations in the pull request are over, or it is explicit that a reviewer is not blocking the change.
- [ ] Changelog entries in the pull request title and/or **Proposed changelog entries** are accurate, human-readable, and in the imperative mood.
- [ ] Proper changelog labels are set so that the changelog can be generated automatically.
- [ ] If the change needs additional upgrade steps from users, the `upgrade-guide-needed` label is set and there is a **Proposed upgrade guidelines** section in the pull request title (see [example](https://github.com/jenkinsci/jenkins/pull/4387)).
- [ ] If it would make sense to backport the change to LTS, a Jira issue must exist, be a _Bug_ or _Improvement_, and be labeled as `lts-candidate` to be considered (see [query](https://issues.jenkins.io/issues/?filter=12146)).
```
2025-01-12 13:27:28 +08:00
michael cirioli 7fa6b5c465 [JENKINS-75086] Allow users with Jenkins.MANAGE to configure global build discarders (#10113)
* initial commit

* this change is not actually needed

* rebuild
2025-01-11 00:19:29 +08:00
Tim JacombandBasil Crow 45e27bb9c5 Update core/src/main/java/hudson/Functions.java
Co-authored-by: Basil Crow <me@basilcrow.com>
2025-01-09 19:07:00 +00:00
Tim JacombandBasil Crow 6787247d14 Update core/src/main/java/hudson/Functions.java
Co-authored-by: Basil Crow <me@basilcrow.com>
2025-01-09 19:06:49 +00:00
Basil Crow bcda96c5ec Remove Commons Discovery (#10122) 2025-01-09 10:42:03 -08:00
Jan FaracikandTim Jacomb 331c7685ca Display Console Output on the build page (behind an experimental flag) (#10115)
Co-authored-by: Tim Jacomb <21194782+timja@users.noreply.github.com>
2025-01-09 15:27:05 +00:00
Tim Jacomb ce1ecd3224 Restore DEBUG_YUI field for now 2025-01-09 14:31:09 +00:00
Tim Jacomb e8c71ee9c5 Remove YUI suffix 2025-01-09 08:07:00 +00:00
Tim Jacomb c06f1dce00 Remove YUI 2025-01-08 14:29:34 +00:00
Kris Stern 519eb19bc8 Merge pull request #9980 from basil/OptionHandlerExtension
Register `OptionHandler`s through `META-INF/services/annotations` and Annotation Indexer rather than `META-INF/services` and Commons Discovery
2025-01-04 16:01:19 +08:00
Vincent Latombe c369723af0 Simplify AtomicFileWriter and use clearer temporary file names (#10058)
* Simplify AtomicFileWriter and use clearer temporary file names

* Uses a more readable name for the temporary file, derived from the target path
* Streamline the fallback logic for atomic move, and just let the error bubble up otherwise rather than logging then throwing which was leading to duplicate stacktraces in the system logs

Related to https://github.com/jenkinsci/jenkins/pull/2548#discussion_r79500936

* Persist fallback to non-atomic move if filesystem throws AtomicMoveNotSupportedException

* Extract to a static method

* Fix reviews
2024-12-19 09:12:07 +00:00
Basil Crow b3b5a69416 Merge branch 'master' into OptionHandlerExtension 2024-12-17 10:19:22 -10:00
Basil Crow 34aba67577 [JENKINS-75003] Zip-based tool installer configuration incorrectly rejects non-HTTP(S) URLs (regression in 2.379) (#10065)
[JENKINS-75003] Zip-based tool installer configuration incorrectly rejects non-HTTP(S) URLs
2024-12-17 07:17:43 +00:00
87e94651ac Add icons to Command Palette (#10049)
Co-authored-by: Tim Jacomb <21194782+timja@users.noreply.github.com>
Co-authored-by: Tim Jacomb <timjacomb1@gmail.com>
2024-12-16 16:27:02 +00:00
Jesse Glick ae56d43fec PeepholePermalink.Cache (#10042) 2024-12-15 19:44:48 +00:00
Basil Crow e4bff056c3 Reduce usage of Ant (#10059) 2024-12-15 19:44:26 +00:00
Jesse GlickandTim Jacomb 4943f167de Recover views after error in Jenkins.load (#10023)
* Recover views after error in `Jenkins.load`

* Prevent infinite recursion in `Jenkins/sidepanel.jelly` when `Jenkins.primaryView` is null

---------

Co-authored-by: Tim Jacomb <21194782+timja@users.noreply.github.com>
2024-12-12 21:40:26 +00:00
Jesse Glick d773eb93a1 Expose User.reload as beta API (#10039) 2024-12-12 21:40:12 +00:00
Tim Jacomb 8c9caff51d [JENKINS-73539] Disable YUI by default (#10045) 2024-12-12 21:39:25 +00:00
930c7ffe7d Overhaul search with a Command Palette (#7569)
Co-authored-by: Wadeck Follonier <Wadeck@users.noreply.github.com>
Co-authored-by: Tim Jacomb <21194782+timja@users.noreply.github.com>
Co-authored-by: Alexander Brandes <mc.cache@web.de>
Co-authored-by: Tim Jacomb <timjacomb1@gmail.com>
2024-12-09 22:19:12 +00:00
f6802dd545 [JENKINS-69549] Margins for headers and paragraphs make descriptions … (#7078)
Co-authored-by: Alexander Brandes <mc.cache@web.de>
Co-authored-by: Tim Jacomb <timjacomb1@gmail.com>
Co-authored-by: Tim Jacomb <21194782+timja@users.noreply.github.com>
2024-12-09 10:43:00 +00:00
Kris Stern d046516d5f Merge pull request #8435 from janfaracik/keyboard-shortcut-animation
Update appearance of keyboard shortcut tooltips
2024-12-08 22:47:03 +08:00
Tim Jacomb 33d8280c5a Merge branch 'master' into OptionHandlerExtension 2024-12-08 08:32:24 +00:00
Kris Stern 3beaec617b Merge pull request #9959 from timja/JENKINS-37241/autocomplete-improvements
[JENKINS-37241] Support for query parameters in autocomplete
2024-12-06 23:08:38 +08:00
Kris Stern 0f0b023b0f Merge pull request #9995 from tejasdrolia/BEE-51743
[JENKINS-74858]  Added validation for Password length in FIPS mode
2024-12-05 22:41:31 +08:00
Kris Stern 7d8d2a6f12 Merge pull request #10019 from slide/allow-subclasses-to-call-updateData
Allow subclasses of UpdateSite to call updateData
2024-12-05 21:13:22 +08:00
Tim Jacomb a1a313851e Merge branch 'master' into JENKINS-37241/autocomplete-improvements 2024-12-04 15:11:02 +00:00
Tejas 7d6b649aaa [JENKINS-74858] Resolved comments 2024-12-04 18:20:37 +05:30
Daniel Beck 171df4d105 Revert "Fixed spotbugs PATH_TRAVERSAL_IN issue in FileBoolean" (#10022)
Revert "Fixed spotbugs `PATH_TRAVERSAL_IN` issue in `FileBoolean` (#9638)"

This reverts commit e994d293e0.
2024-12-04 05:34:51 -07:00
Stefan SpiekerandMark Waite e994d293e0 Fixed spotbugs PATH_TRAVERSAL_IN issue in FileBoolean (#9638)
Co-authored-by: Mark Waite <mark.earl.waite@gmail.com>
2024-12-03 09:14:42 +00:00
Alex Earl 966e58684b Allow subclasses of UpdateSite to call updateData
The updateData method is required to be called for the
actual update data to be synced. For plugins that may
implement a different method for interacting with an
update site (e.g. an implementation of password or
API key protected update site being planned for the
Managed Update Sites plugin), we need to override
updateDirectlyNow and call updateData with the
retrieved JSON data.
2024-12-02 12:16:35 -07:00
Tejas 1c6282ee20 Merge branch 'master' into BEE-51743 2024-11-29 18:06:10 +05:30
Vincent Latombe 0235a800b8 Ensure NodeListener#onCreated is called once the Node initialization is complete (#9964) 2024-11-28 21:52:44 +00:00
Tejas 0cf9e31385 [JENKINS-74858] | Resolved some comments 2024-11-25 17:42:16 +05:30
Tejas 39171ee7fd Merge branch 'master' into BEE-51743 2024-11-20 21:51:25 +05:30
Tejas 7cfca7066e [JENKINS-74858] resolved some comments 2024-11-20 21:49:20 +05:30
Tejas afe7d250b8 BEE-51743 | Resolved comments 2024-11-20 18:03:49 +05:30
Tejas 93d34e3a94 BEE-51743 | Added validation for Password length in FIPS mode 2024-11-20 11:48:04 +05:30
github-actions[bot]andtimja ca121359ec Fill in since annotations (#9974)
Co-authored-by: timja <21194782+timja@users.noreply.github.com>
2024-11-16 20:50:47 +00:00
Basil Crow a1c8c83cf7 Register OptionHandlers through META-INF/services/annotations and Annotation Indexer rather than META-INF/services and Commons Discovery 2024-11-15 10:58:26 -08:00
Tim Jacomb d017d30898 [JENKINS-37241] Support for query parameters in autocomplete 2024-11-11 15:09:21 +00:00
Jesse Glick ec448b51c0 Clarify SECURITY-3315 error code on client side (#9930) 2024-11-09 21:46:17 +00:00
Jesse GlickandVincent Latombe abef2ccd40 Introducing ControllerToAgentCallable and ControllerToAgentFileCallable (#9921)
Co-authored-by: Vincent Latombe <vincent@latombe.net>
2024-11-09 21:46:02 +00:00
Basil CrowandMark Waite 8298257227 [JENKINS-74795] Job created via REST API attaches to default view (#9947)
Co-authored-by: Mark Waite <mark.earl.waite@gmail.com>
2024-11-08 05:49:26 -08:00
Basil Crow ac63b7f156 [JENKINS-74814] java.lang.UnsupportedOperationException: This stack walker does not have RETAIN_CLASS_REFERENCE access (#9945) 2024-11-08 05:49:00 -08:00
Jesse Glick e0a54f41da Race condition & memory leak in TypedFilter (#9925) 2024-11-02 07:25:31 -06:00
Jesse Glick 1892e21472 Job.BuildNumberAssigner (#9846)
* `Job.BuildNumberAssigner`

* Clearer API for `saveNextBuildNumber` https://github.com/jenkinsci/jenkins/pull/9846#discussion_r1792991572
2024-11-02 07:25:16 -06:00
Jesse Glick 5db2f0139c Avoid saving nextBuildNumber while loading Job (#9778) 2024-11-02 07:25:07 -06:00
github-actions[bot]andtimja 87cfc46068 Fill in since annotations (#9927)
Co-authored-by: timja <21194782+timja@users.noreply.github.com>
2024-11-01 13:34:56 +00:00
Vincent Latombe 97e1009673 When calling Nodes#setNodes, NodeListener methods should be called as required (#9905)
* When calling Nodes#setNodes, NodeListener methods should be called as required

For example, when loading a new casc configuration, it calls Nodes#setNodes, and the NodeListener methods were not called, causing listener implementations not to be notified according to the new state.

* Fix reviews
2024-10-25 15:32:29 -06:00