Commit Graph

476 Commits

Author SHA1 Message Date
Kris Stern 184e9d2efa
Removing `throws IOException, ServletException` from most `Permission`-related methods in `Functions`; deleting `adminCheck` (#10844)
Changelog Drafter / update_draft_release (push) Waiting to run Details
Changelog Drafter / jenkins_io_draft (push) Waiting to run Details
Label conflicting PRs / main (push) Waiting to run Details
2025-07-22 18:16:15 +08:00
James Nord 2c11987d9d
fix javadoc missing @ (#10851) 2025-07-19 12:14:38 +02:00
Jesse Glick 17e452effb
Deleting long-deprecated `adminCheck` methods https://github.com/jenkinsci/jenkins/pull/10844#issuecomment-3084907459 2025-07-17 18:29:42 -04:00
Jesse Glick 46ff248457
Removing `throws IOException, ServletException` from most `Permission`-related methods in `Functions` 2025-07-16 09:48:13 -04:00
James Nord 4482619868
[JENKINS-75683] re-introduce actions for Jenkins with custom action.jelly
actions without a URL but a custom action.jelly where not shown
correctly in the header.

This re-introduces them and allows custom rendering of actions again (by
using an action.jelly).

adjust the task taglib so that it renders in the style of the header
when in the header.

Nested tasks work, but when expanded the original looses its tooltip.

move subtasks to the dropdown

use tasks class to fix layout

fix scss formatting
2025-06-19 14:28:40 +01:00
Daniel Beck 7a1a0b8d53
Add telemetry for `/extensionList/` URL (#10423)
* Add telemetry for /extensionList/ URL

* Fix URL

* Add plugin information, only collect class names

---------

Co-authored-by: Daniel Beck <daniel-beck@users.noreply.github.com>
2025-04-05 10:03:48 +01:00
Eva Müller 73185b257d
Do not modify keyboard shortcut when User-Agent header is not set (#10413)
* fix: Do not modify keyboard shortcut when User-Agent header is not set

* Add whitespace after if to pass code style check
2025-03-21 07:05:53 +00:00
Basil Crow ba900e9acf Remove unnecessary SpotBugs suppressions 2025-03-11 16:06:48 -07:00
Tim Jacomb da4b90a034
Merge branch 'master' into experimental-details-widget 2025-02-14 18:48:06 +00:00
Basil Crow e61ecca4fc
Migrate from deprecated EE 8 methods to non-deprecated equivalents (#10233)
* Migrate from deprecated EE 8 methods to non-deprecated equivalents

* Clean up `GlobalComputerRetentionCheckIntervalConfiguration` as well
2025-02-08 07:37:48 -07:00
Jan Faracik aac7d489cc Update on comments 2025-01-15 15:01:39 +00:00
Jan Faracik 2e85c62ce3 Drop isApplicable 2025-01-14 13:13:03 +00:00
Jan Faracik d6cf74cbe3
Merge branch 'master' into experimental-details-widget 2025-01-13 09:35:28 +00:00
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
Jan Faracik c6492554e5 Add isApplicable 2025-01-10 09:50:03 +00:00
Tim Jacomb 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 Jacomb 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
Jan Faracik 8cdc3a6fe7 Update Functions.java 2025-01-09 17:50:55 +00:00
Jan Faracik 8886cd9db3 Push 2025-01-09 17:50:18 +00:00
Jan Faracik 73a48c03d3 Make group of() private 2025-01-09 17:11:10 +00:00
Jan Faracik abf4d00015 Update Functions.java 2025-01-09 17:06:25 +00:00
Jan Faracik 4deafbd814 Cleanup 2025-01-09 16:58:32 +00:00
Jan Faracik 701e7a7874 Update Functions.java 2025-01-09 16:41:09 +00:00
Jan Faracik f4f8ec9bce Sorting out stuff 2025-01-09 16:40:55 +00:00
Jan Faracik 1c71f4c958 Init 2025-01-09 16:04:02 +00:00
Jan Faracik 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
Jan Faracik 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
Tim Jacomb b89371727b
Adapt for Java EE upgrade 2024-09-16 15:00:33 +01:00
Tim Jacomb f3913dd62c
Update core/src/main/java/hudson/Functions.java 2024-09-16 14:15:02 +01:00
Jan Faracik 08a248cd00
Merge branch 'master' into keyboard-shortcut-animation 2024-09-16 13:49:46 +01:00
github-actions[bot] be3d711d69
Fill in since annotations (#9721)
Co-authored-by: timja <21194782+timja@users.noreply.github.com>
2024-09-13 16:21:38 -06:00
Jan Faracik f9fad99312
Merge branch 'master' into keyboard-shortcut-animation 2024-09-13 08:54:36 +01:00
Vincent Latombe 2f6d77c70f
Merge branch 'master' into with-console-url 2024-09-04 10:48:53 +02:00
Basil Crow 7006cded64
[JENKINS-73278] Migrate core from EE 8 to EE 9 (#9672)
Co-authored-by: Kevin Guerroudj <91883215+Kevin-CB@users.noreply.github.com>
Co-authored-by: Daniel Beck <1831569+daniel-beck@users.noreply.github.com>
2024-09-03 14:59:04 -07:00
Vincent Latombe 2d30cfcf98
Fix review 2024-08-22 17:20:38 +02:00
Vincent Latombe 39d30c8828
Add WithConsoleUrl interface
This simplifies the logic of `Functions#getConsoleUrl` and makes it pluggable.
2024-08-22 15:33:03 +02:00
Jan Faracik ae0685ab82 Merge branch 'master' into keyboard-shortcut-animation 2024-08-04 15:01:26 +01:00
Basil Crow 1381726b2f
Use `isEmpty()` where possible (#9383) 2024-06-14 07:21:57 -06:00
Basil Crow d2d1d0d20f
Use pattern matching for `instanceof` (#9382) 2024-06-13 06:04:42 +01:00
Daniel Beck f925849ca7
Combine into one format string with escaped format placeholder 2024-05-19 19:39:25 +01:00
Tim Jacomb f0efb075f1
Merge branch 'master' into keyboard-shortcut-animation 2024-04-03 14:16:24 +01:00
Basil Crow 53b271283b
Deprecate `hudson.Util#XS_DATETIME_FORMATTER` (#9088)
Co-authored-by: Mark Waite <mark.earl.waite@gmail.com>
2024-03-30 07:29:29 -06:00
Basil Crow f8a6ee542d
Deprecate `Util#RFC822_DATETIME_FORMATTER` (#9085) 2024-03-30 07:23:47 -06:00
Bob Du 8197702484
Further reduce usages of `StringUtils` (#9044)
* Remove usages of StringUtils#containsIgnoreCase

Signed-off-by: Bob Du <i@bobdu.cc>

* Remove usages of StringUtils#removeStart StringUtils#removeEnd

Signed-off-by: Bob Du <i@bobdu.cc>

* Remove usages of StringUtils#defaultString

Signed-off-by: Bob Du <i@bobdu.cc>

* Remove usages of StringUtils#defaultIfBlank

Signed-off-by: Bob Du <i@bobdu.cc>

* Remove usages of StringUtils#isAlphanumeric

Signed-off-by: Bob Du <i@bobdu.cc>

* Remove usages of StringUtils.EMPTY

Signed-off-by: Bob Du <i@bobdu.cc>

* Remove usages of StringUtils#split

Signed-off-by: Bob Du <i@bobdu.cc>

* Remove usages of StringUtils#startsWithIgnoreCase

Signed-off-by: Bob Du <i@bobdu.cc>

* Remove usages of StringUtils#countMatches

Signed-off-by: Bob Du <i@bobdu.cc>

* Remove usages of StringUtils#endsWithAny

Signed-off-by: Bob Du <i@bobdu.cc>

* fix spotbugs warning

Signed-off-by: Bob Du <i@bobdu.cc>

* Use Objects.toString

Signed-off-by: Bob Du <i@bobdu.cc>

* revert unrelated change

Signed-off-by: Bob Du <i@bobdu.cc>

---------

Signed-off-by: Bob Du <i@bobdu.cc>
2024-03-27 06:38:23 -06:00
Basil Crow 3c042d12b8
Reduce usage of `StringUtils` (#8999) 2024-03-01 23:18:05 +01:00
Daniel Beck 64607784f8
[JENKINS-60866][JENKINS-71513] Apply Stapler update for CSP-compliant st:bind and renderOnDemand (#6865)
* [JENKINS-60866] Apply Stapler update for CSP-compliant st:bind

* [JENKINS-60866] Make renderOnDemand CSP-compliant

* Thanks Spotless

* Make Stapler incrementals work

* Update Stapler to new incremental

* Fixup bad merge

* Update Stapler, add test demonstrating st:bind working

* Address review feedback

* Add test for null bind, update Stapler

* Checkstyle

* More tests

* Use released Stapler

---------

Co-authored-by: Daniel Beck <daniel-beck@users.noreply.github.com>
Co-authored-by: Basil Crow <me@basilcrow.com>
2024-02-24 07:34:33 +01:00
Alexander Brandes 50bc384abd
Fill in since todo (#8839) 2024-01-08 09:42:13 +00:00