Commit Graph

33584 Commits

Author SHA1 Message Date
Jenkins Release Bot e06f85b097 [maven-release-plugin] prepare for next development iteration 2023-07-24 17:03:20 +00:00
Jenkins Release Bot 7c7226d76c [maven-release-plugin] prepare release jenkins-2.401.3 2023-07-24 17:03:04 +00:00
Yaroslav Afenkin 9ebe216613 Merge branch 'security-stable-2.401' into stable-2.401 2023-07-18 18:12:59 +03:00
Alexander Brandes 384478ea51
Merge pull request #8270 from NotMyFault/remove-rebuilder 2023-07-14 15:05:33 +02:00
Daniel Beck 0058db2b4a
Remove Rebuilder Plugin from setup wizard options (#8258)
Co-authored-by: Daniel Beck <daniel-beck@users.noreply.github.com>
(cherry picked from commit 71a100d7c8)
2023-07-14 11:33:27 +02:00
Yaroslav Afenkin b45dacfc27 [SECURITY-3188] 2023-07-13 03:16:35 +00:00
Alexander Brandes 5f3947ac72
Merge pull request #8247 from krisstern/feat/stable-2.401/backporting-2.401.3-1
Co-authored-by: Mark Waite <mark.earl.waite@gmail.com>
Co-authored-by: Daniel Beck <1831569+daniel-beck@users.noreply.github.com>
Fix link from `/threadDump` to agent (#8143)
2023-07-11 20:41:20 +02:00
Daniel Beck a7b7774d20
Fix link from `/threadDump` to agent (#8143)
(cherry picked from commit 079ea13b91)
2023-07-11 08:51:18 +08:00
Mark Waite 922d0c4fbe
Remove incorrect text from JENKINS_HOME help page (#8161)
Since the transition to systemd, we no longer read the contents of
/etc/sysconfig/jenkins on Red Hat Enterprise Linux systems.  The changes
that a user can make with systemd are either modifying the environment
variable or they are modifying a Java property.  Since those two cases
are already covered, let's not mention the different ways of starting
the controller.

We don't actively promote the use of alternate web containers and
setting the environment variable in the web container admin tool is
already covered by the simpler statement that the environment variable
needs to be set.

We absolutely should not suggest that they modify the contents of the
jenkins.war file.  That type of change will likely be erased on the
next upgrade.

https://github.com/jenkins-infra/jenkins.io/pull/6409 review process
showed this issue.

(cherry picked from commit ccfd725284)
2023-07-11 08:50:23 +08:00
Jenkins Release Bot ac02718d17 [maven-release-plugin] prepare for next development iteration 2023-06-28 11:12:16 +00:00
Jenkins Release Bot 8a1d7d664b [maven-release-plugin] prepare release jenkins-2.401.2 2023-06-28 11:12:05 +00:00
Alexander Brandes 08ecdbb359
Merge pull request #8118 from MarkEWaite/stable-2.401-backport-eol-warning
Backport end of life warning to stable-2.401
2023-06-11 17:56:53 +02:00
Alexander Brandes d9c45b7f90
Merge pull request #8121 from basil/guice
Upgrade Guice from 5.1.0 to 6.0.0
2023-06-11 10:13:24 +02:00
Basil Crow c7ba982098 Upgrade Guice from 5.1.0 to 6.0.0 2023-06-10 10:02:38 -07:00
Zbynek Konecny 1e439adce2 [JENKINS-71394] Fedora 38 should not show EOL warning until 2024 (#8082)
Fedora 38 should not show EOL warning until 2024

Co-authored-by: Mark Waite <mark.earl.waite@gmail.com>
(cherry picked from commit 8b817508ad)
2023-06-10 06:21:11 -06:00
Mark Waite 3785dbcb03 Warn when operating system end of life is approaching (#7913)
* Ubuntu 18.04 end of life admin monitor

First prototype that includes a user interface and localized messages
with parameters to support the specific operating system.

* Use a base class for common features

Admin monitors are disabled and enabled by a user interface action.
There is not an obvious way to detect that a date has passed so that it
should be enabled again.

* Better comment

* Make the logging clearer

* Split pattern check to separate method

* Add a message to show after end of life

* Suppress most logging

* Minor logging improvements

* Use actual end of life date for Ubuntu 18.04

* Logger not needed

* Add Alpine 3.14 end of life admin monitor

* Add Alpine 3.15 end of life monitor

* Add Alpine 3.16 end of life monitor

* Add Alpine 3.17 end of life monitor

* Spotless cleanup

* Add Fedora 37, 38, and Red Hat 7

* More accurate regex to detect version

* Add Debian 10 end of life admin monitor

* Add a few tests

* Add another test

* Fix checkstyle violations

* Fix spotbugs warning

* Correct the copyright

* Make test viable on non-Linux machines

Do not depend on the existence of /etc/os-release

* Name the setup function more accurately

* Test a file with non-matching content

* Test the Alpine end of life admin monitors

* Add more tests

* Test Fedora 37 admin monitor

* Add RHEL 7 test

* Announce RHEL 7 early end of support immediately

* Use consistent logging calls

* Add Red Hat 8 to RHEL 7 as a test

* Use past date to report RHEL 7 end of life

* Remove Red Hat 8 from RHEL 7 end of life

* Log more information

* Display end of support date

Incorrect to declare end of support as the date when we begin warning
the user about end of life.

* Add descriptions of the admin monitors

* Use a better redirect URL

* Group admin monitors better by display name

* Remove unnused message.properties files

* Add description.jelly file

* Better description of the admin monitors

* Add endOfSupportDate getter

Needed for UI

* Fix minor indentation error

* Each monitor must be independently disabled

* Repurpose identifier for use in disabled property

Don't need the idenitfier anywhere except in the initial constructor
call that is later used to enable and disable the admin monitor.

* Add Red Hat 8 to RHEL 7 as a test

* Add os-release tests and data files

* Remove unused URL arg to constructor

* Reduce duplication in data

Easier to test with symbolic constants that are consistently named across
all the classes.

Includes tests of os-release files from each of the end of life operating systems

* Fix inaccurate comment

* Use constant for documentation URL

* Remove RHEL 8 from RHEL 8 Admin Monitor

* Fedora 36 security support ends 18 May 2023

* Fedora 37 support ends 15 Dec 2023

* Fix spelling error in description

* Read data file with UTF-8 character set

* Do not use extension point name in symbol

* Use single word 'Ignore' in button, not name of monitor

* Use a smaller layout for monitor name

* Include operating system version in RHEL 7 check

Includes a TODO comment to remove the RHEL 8 entry that I use for
testing and development

* Fix regex syntax error

* First prototype using a data file

* Start the conversion to a single monitor

* Latest experiments with end of life data as JSON

* More exploring and evolving

* Remove Alpine admin monitor

* Remove Fedora admin monitor

* Remove Debian admin monitor

* Remove Ubuntu admin monitor

* Throw IOException rather than check for null

IOException should be uncommon and mistakes should be detected by
automated tests

* Stop inheriting from EndOfLifeAdminMonitor

* Simplify initialization logic

Else clauses not required due to break.

* Add isActivated implementation

* Add setDisabled test method

* Minor formatting changes

* Test some additional methods

* Call super in constructor

* Minor updates from study of upstream class

* Format JSON data

* Fix formatting errors

* Fix assertion

* Better variable naming

* Explain the purpose of ignoreEndOfLife flag

* Remove unused import

* Store the pretty name, not the pattern

* Test pretty name with sample os-release data files

* Remove RedHat 7 specific monitor

* Set RHEL 8 end of life early for test

* Ongoing debugging

* Describe the monitor

* Honor start date

* Add pretty name as monitor attribute

* Add end of support date

* Remove earlier implementations

* Move end of life data

* Rename end of support to end of life

End of life is used throughout the monitor

* Improve message with after end of life date status

* Undo .gitignore change

* Rename effective date to end of life date

* Rename pretty name to operating system name

* More rename of prettyName

* Fix logging mistakes

* Add RHEL 8

* Default start date is 6 months before end of life

* Add operating system end of life patterns and dates

* Fix JSON file formatting

* Simplify logging code

* Better logging

* Add Alma and Rocky Linux tests and patterns

* Add methods to help test automation

* Remove unused methods

* Start warning RHEL 7 users immediately

* Suppress spotbugs traversal_in warning - false positive

* Throw IOException on bad data file

Fail tests quickly when a a bad data file is used

* Better exception message

* Correct RHEL 8 end of life date

* Enable isActivated test

* Increase test coverage

* Fix spelling error

Co-authored-by: Alexander Brandes <brandes.alexander@web.de>

* Remove non-breaking spaces from message

Non-breaking spaces are not recommended.

Co-authored-by: Tim Jacomb <21194782+timja@users.noreply.github.com>

* Rename class to match symbol

https://github.com/jenkinsci/jenkins/pull/7913/files#r1199814150

* Sort end of life data alphabetically

* Included OS query parameter and fragment in docs URL

The fragment may be useful in the future for analytics.  Harmless to
send the fragment to www.jenkins.io and www.jenkins.io may be able to
make use of it to direct the reader to information that is specific to
their operating system.

* Scientific Linux 8 does not exist

* Remove fragment, only need query parameter

https://github.com/jenkinsci/jenkins/pull/7913#discussion_r1200991347
is the comment that prompted the improvement.

---------

Co-authored-by: Alexander Brandes <brandes.alexander@web.de>
Co-authored-by: Tim Jacomb <21194782+timja@users.noreply.github.com>
Co-authored-by: Alexander Brandes <mc.cache@web.de>
(cherry picked from commit ab06bf517c)
2023-06-10 06:20:44 -06:00
Alexander Brandes 5347785a00
Merge pull request #8073 from basil/backport-commit-hash
Upgrade parent POM from 1.97 to 1.98
2023-06-01 00:15:56 +02:00
Basil Crow 48e8d260b8 Upgrade parent POM from 1.97 to 1.98 2023-05-31 09:39:52 -07:00
Jenkins Release Bot 5e9365608b [maven-release-plugin] prepare for next development iteration 2023-05-31 09:48:52 +00:00
Jenkins Release Bot 315b3ff534 [maven-release-plugin] prepare release jenkins-2.401.1 2023-05-31 09:48:34 +00:00
Mark Waite 151de68fc0
[JENKINS-71345] Remove 'undefined' from system dropdown menu (#8052)
[JENKINS-71345] Revert "Add updates count badge to Updates sidebar item (#7084)"

The "Manage Jenkins" / "System" drop down menu includes the extra text
"undefined" at the end of each entry.  This removes that change and
removes the updates count badge from the updates sidebar.

This reverts commit 291f5edcc5.
2023-05-26 08:33:49 -06:00
Basil Crow 2bcc2a3a72
Remove Launchable prototype code from LTS branch (#8027) 2023-05-21 15:00:49 -07:00
Alexander Brandes 17c1c4c327
Merge pull request #8003 from NotMyFault/backporting-2.401.1
Backporting to 2.401.1
2023-05-16 09:13:43 +02:00
Francis Labrie b0c576c221
[JENKINS-71160] Fix "Tmp directories are hidden" alert icon (#7891)
* Fix JENKINS-71160: "Tmp directories are hidden" alert icon.

JENKINS-71160: In the Workspace section of a Jenkins job, the icon URL reference of the "Tmp directories are hidden" alert is incorrect. It uses the old static 16x16 PING image instead of the SVG one.

* Update other icon too

---------

Co-authored-by: Alexander Brandes <mc.cache@web.de>
(cherry picked from commit c8ded5d4ec)
2023-05-15 20:51:39 +02:00
Niral Maruda 27399a080f
[JENKINS-71115] Builds filter field doesn't use full width on sub 970px windows (#7870)
Bug fix: JENKINS-71115

Removed max-width field from search-bar.scss

(cherry picked from commit cde5a55459)
2023-05-15 20:48:58 +02:00
Jesse Glick a355e746cf
[JENKINS-71182] Correct Unicode behavior of `XML_1_1` (#7924)
(cherry picked from commit 8d9e8b901c)
2023-05-15 20:48:09 +02:00
Jesse Glick ecf79c711f
[JENKINS-71139] Fail fast when serializing invalid XML 1.1 data (#7875)
* [JENKINS-71139] Reproducing `XStream2` problem with NUL

* Arguably better to switch from “quirks” to XML 1.1 mode, failing during write not just read

(cherry picked from commit 458c6865d2)
2023-05-15 20:48:03 +02:00
Alexander Brandes 5da02ac17f
Towards 2.401.1 2023-05-15 20:32:46 +02:00
Jenkins Release Bot b56709a744 [maven-release-plugin] prepare for next development iteration 2023-04-18 12:45:52 +00:00
Jenkins Release Bot 05b9f80dd8 [maven-release-plugin] prepare release jenkins-2.401 2023-04-18 12:45:41 +00:00
Alexander Brandes dc80ce743f
Fill in todo annotations (#7848) 2023-04-17 11:05:07 +02:00
dependabot[bot] ccba9764a7
Bump spring-framework-bom from 5.3.26 to 5.3.27 (#7838)
Bumps [spring-framework-bom](https://github.com/spring-projects/spring-framework) from 5.3.26 to 5.3.27.
- [Release notes](https://github.com/spring-projects/spring-framework/releases)
- [Commits](https://github.com/spring-projects/spring-framework/compare/v5.3.26...v5.3.27)

---
updated-dependencies:
- dependency-name: org.springframework:spring-framework-bom
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-16 22:17:13 +02:00
Jan Faracik 291f5edcc5
Add updates count badge to Updates sidebar item (#7084)
* Init

* Update core/src/main/resources/lib/layout/task.jelly

Co-authored-by: Alexander Brandes <brandes.alexander@web.de>

* Remove duplicated class

* Update core/src/main/resources/lib/layout/task.jelly

Co-authored-by: Daniel Beck <1831569+daniel-beck@users.noreply.github.com>

* Add support for badges in menus + manage jenkins page

* Update index.jelly

* Update ModelObjectWithContextMenu.java

* Merge with #6995

* Add tooltip in task links

* Add tooltip support to badges

* Lint

* Escape badge tooltip/text in menus

* Use xmlEscape for escaping attributes

* Support nulls

* Update breadcrumbs.js

* Update breadcrumbs.js

---------

Co-authored-by: Alexander Brandes <brandes.alexander@web.de>
Co-authored-by: Daniel Beck <1831569+daniel-beck@users.noreply.github.com>
Co-authored-by: Tim Jacomb <21194782+timja@users.noreply.github.com>
Co-authored-by: Tim Jacomb <timjacomb1@gmail.com>
Co-authored-by: Alexander Brandes <mc.cache@web.de>
2023-04-16 20:57:51 +02:00
renovate[bot] fb9031e6ac
Update dependency webpack-remove-empty-scripts to v1.0.3 (#7843)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-04-16 20:46:40 +02:00
renovate[bot] d19e912948
Update jenkins/ath Docker tag to v5541 (#7844)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-04-16 20:31:21 +02:00
Basil Crow f22a410d20
Copy multiple class names in `hetero-list.js` (#7845)
* Copy multiple class names in `hetero-list.js`

* `TypeError`: Cannot find function `forEach` in object
2023-04-15 06:54:57 -06:00
Basil Crow 6ca9b5ee5f
Remove dependency on `jenkins-js-modules` (#7827)
* Remove dependency on `jenkins-js-modules`

* Remove dependency

* HtmlUnit cannot handle the spread operator
2023-04-13 23:39:52 +02:00
Basil Crow 92a04c0d32
[JENKINS-70949] Remove Prototype $ usages from textarea.js (#7811) 2023-04-13 23:23:54 +02:00
Basil Crow 25001ba35f
Move `handlebars` out of `devDependencies` (#7828) 2023-04-13 23:21:43 +02:00
renovate[bot] b9767140c3
Update jenkins/ath Docker tag to v5537 (#7835)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-04-11 21:00:58 -07:00
renovate[bot] aa83562568
Update dependency eslint to v8.38.0 (#7832)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-04-11 10:50:15 -07:00
renovate[bot] c6ef68357f
Update jenkins/ath Docker tag to v5536 (#7833)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-04-11 10:49:20 -07:00
Jenkins Release Bot acb4ae7d9f [maven-release-plugin] prepare for next development iteration 2023-04-11 13:00:39 +00:00
Jenkins Release Bot be5dfb1f08 [maven-release-plugin] prepare release jenkins-2.400 2023-04-11 13:00:28 +00:00
renovate[bot] d39f95f26d
Update dependency webpack-remove-empty-scripts to v1.0.2 (#7829)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-04-11 08:07:49 +01:00
Basil Crow 26b8c770e6
[JENKINS-70935] [JENKINS-70952] Remove Prototype usages from `progressiveRendering.js` (#7810) 2023-04-10 11:47:12 +02:00
Basil Crow 96daec6a61
[JENKINS-70908] [JENKINS-70944] [JENKINS-70966] Remove Prototype usages from `hetero-list.js` (#7812) 2023-04-10 11:40:16 +02:00
Basil Crow b4c4553d29
Declare `@babel/preset-env`, `babel-loader`, `postcss-less`, and `stylelint-checkstyle-reporter` in `devDependencies` (#7826) 2023-04-10 11:39:53 +02:00
Basil Crow 8d834ea545
[JENKINS-70932] Remove Prototype `Event.on` usages from `hetero-list.js` (#7792) 2023-04-10 11:37:31 +02:00
Basil Crow cb26ec5636
[JENKINS-70933] Remove Prototype `Event.on` usages from `confirm.js` (#7794) 2023-04-10 11:37:05 +02:00