Commit Graph
19413 Commits
Author SHA1 Message Date
Alexander Brandes ac1b8a13a9 Revert inlining 'since' tags in stapler documentation (#8218) 2023-07-04 00:51:28 +02:00
Vincent Latombe d99bafdebd [JENKINS-71553] Add history widget factory for job not implementing Queue.Task (#8221)
[JENKINS-71553] Add history widget factory for job not implementing Queue.Task

like hudson.model.ExternalJob
2023-07-03 11:02:32 -06:00
Markus Winter 29f59d038e update buttons for password and secretTextarea (#8179)
* update buttons

replace old style buttons with new jenkins-button

* fix test errors

* fix tests

* remove css

* simplify button lookup in tests
2023-06-30 17:55:41 +02:00
Basil CrowandMark Waite 7cbe60fa5e Non-varargs call of varargs method with inexact argument type for last parameter (#8205)
Co-authored-by: Mark Waite <mark.earl.waite@gmail.com>
2023-06-30 17:53:21 +02:00
Alexander Brandes 9e65c05201 Fill in todo annotations (#8209) 2023-06-29 20:39:53 +02:00
Jan Faracik 2fe5a55058 Display a notice when there are no logs available (#8186)
* Init

* Update index.jelly

* Update index.jelly

* Remove files

* Create component

* Add docs for the attributes
2023-06-29 11:14:10 +02:00
e1deb8cb9e [JENKINS-71038] CSP compatibility: PluginManager/installed.jelly (#7912)
* [JENKINS-71038] CSP compatibility: PluginManager/installed.jelly

* Correct responseText syntax for fetch

* Remove fonts that I've accidentally added

* Remove usages of Prototype

* Address review feedback

---------

Co-authored-by: Yaroslav Afenkin <yaroslavafenkin@users.noreply.github.com>
Co-authored-by: Tim Jacomb <timjacomb1@gmail.com>
Co-authored-by: Alexander Brandes <mc.cache@web.de>
2023-06-27 11:50:40 +02:00
YaroslavandYaroslav Afenkin 9934222d98 [JENKINS-71042] [JENKINS-71044] [JENKINS-71045] Improve CSP compatibility (#8054)
* [JENKINS-71042] Un-inline JS handlers in `UserSeedProperty/config.jelly`

* [JENKINS-71044] Make `lib/form/expandableTextbox.jelly` CSP compatible

* [JENKINS-71045] Un-inline JS in `lib/form/password.jelly`

---------

Co-authored-by: Yaroslav Afenkin <yaroslavafenkin@users.noreply.github.com>
2023-06-26 11:49:07 +02:00
7312c1c0c1 [JENKINS-71040] [JENKINS-71041] Improve CSP compatibility (#8039)
* [JENKINS-71041] Remove inline JS from `ApiTokenProperty/config.jelly`

* [JENKINS-71040] Remove inline JS from `LegacyApiTokenAdministrativeMonitor/manage.jelly`

---------

Co-authored-by: Yaroslav Afenkin <yaroslavafenkin@users.noreply.github.com>
Co-authored-by: Alexander Brandes <mc.cache@web.de>
2023-06-23 11:06:54 +02:00
cui fliter aa983a734c Fix a typo in DomainValidator's docs (#8163)
fix some typos

Signed-off-by: cui fliter <imcusg@gmail.com>
2023-06-19 13:20:49 +02:00
Jan Faracik dd81eda88a Update the Log Recorders interface (#8087)
* Init

* Move all actions to app bar (WIP)

* Update index.jelly

* Rename translation files

* Update utils.js

* Rename Add new log recorder to Add recorder
2023-06-19 12:36:34 +02:00
Basil Crow 44e40adb3d De-flake hudson.FilePathTest#archiveBug (#8155) 2023-06-16 08:46:41 +01:00
Daniel Beck 079ea13b91 Fix link from /threadDump to agent (#8143) 2023-06-16 08:44:10 +01:00
Basil Crow 8240e0736c Remove usages of org.apache.commons.io.output.NullOutputStream (#8144) 2023-06-16 08:44:01 +01:00
Basil Crow a9cbc1df87 Remove usages of org.apache.commons.io.input.NullInputStream (#8145) 2023-06-16 08:43:55 +01:00
Basil Crow 77f024ae6b Remove usages of org.apache.commons.io.output.ByteArrayOutputStream (#8146) 2023-06-16 08:43:50 +01:00
Basil Crow d3417ebec9 Forward compatibility for Commons IO 2.13.0 in hudson.Util#loadFile (#8142) 2023-06-15 09:57:18 +02:00
Takashi Harano b3c9cc8244 Add Japanese translation of Apply (#8140)
* Add Japanese translation of Apply

* Modify the copyright statement
2023-06-15 09:57:00 +02:00
Jesse Glick eaf91000cb TransientActionFactory cache simplification (#8048)
* `TransientActionFactory` cache simplification

* Fixing mocks in `HistoryPageFilterTest`
2023-06-14 09:31:28 +02:00
Basil Crow ffd2afe45b Deprecate hudson.util.NullStream (#8128) 2023-06-14 09:31:17 +02:00
Jesse Glick 9be693daae Clean up DoubleLaunchChecker (#8127) 2023-06-14 09:31:09 +02:00
Basil Crow 6b47363c22 Deprecate hudson.util.IOUtils#skip (#8126) 2023-06-14 09:30:58 +02:00
Markus Winter c886642632 [JENKINS-71429] Fix deleting users via trashcan symbol (#8131)
[JENKINS-71429] fix user delete

On manage -> Users, clicking the delete icon lead to the old
delete.jelly page that was deleted when replacing the page with a
confirmation popup.
Replace it with a confirmation link.
2023-06-12 08:23:57 -06:00
Alexander Brandes 97fcdac520 [JENKINS-71153] Remove top-level fingerprint icon (#8114)
Remove top-level fingerprint symbol
2023-06-10 12:03:13 +02:00
Vincent Latombe 96620b0aa8 Merge pull request #7932 from Vlatombe/pluggable-widgets 2023-06-08 17:47:56 +02:00
Jan Faracik a215aba136 Remove Bootstrap from pane.jelly (#8085)
Init
2023-06-08 16:18:42 +02:00
Basil Crow 41edd5faf4 Remove usages of IOUtils#toByteArray (#8098) 2023-06-08 16:18:12 +02:00
Basil Crow d54041e24a Move from javax.inject to jakarta.inject (#8065)
* Move from `javax.inject` to `jakarta.inject`

* https://github.com/jenkinsci/jenkins/pull/8065#pullrequestreview-1451239883
2023-06-05 22:49:35 +02:00
Vincent Latombe 5e27528b36 Merge branch 'master' into pluggable-widgets 2023-06-05 17:39:29 +02:00
Zbynek KonecnyandMark Waite 8b817508ad [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>
2023-06-03 11:59:29 -06:00
Alexander Brandes 1838173eb2 Don't show arrow next to restart checkbox if OS doesn't support it (#8076)
Don't show arrow next to box if OS doesn't support it
2023-06-03 11:08:07 +02:00
Jan FaracikandTim Jacomb d2bc58d83f Remove Bootstrap usages from the New Item page (#8058)
* Init

* Update newJob.jelly

* Update addform.scss

---------

Co-authored-by: Tim Jacomb <21194782+timja@users.noreply.github.com>
2023-05-31 14:58:05 +02:00
Michael KepplerandAlexander Brandes 9061e7bc23 [JENKINS-71244] Avoid relative link in update center (#7992)
* convert the relative link to an absolute one, since it might be used
in different contexts (with different depth from the server root
directory)
* update all message bundles to use the new format argument

Co-authored-by: Alexander Brandes <mc.cache@web.de>
2023-05-31 14:57:09 +02:00
6e1c6abfe3 Use jenkins-button for Repeatable buttons (#7717)
* Init

* Merge develop, update getButtonsList

* Update RepeatableTest.java

* Fix test

* Update RepeatableTest.java

* Update RepeatableTest.java

* Update RepeatableTest.java

* lint

* Update test/src/test/java/lib/form/RepeatableTest.java

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

* Reset files

---------

Co-authored-by: Tim Jacomb <timjacomb1@gmail.com>
Co-authored-by: Daniel Beck <1831569+daniel-beck@users.noreply.github.com>
Co-authored-by: Tim Jacomb <21194782+timja@users.noreply.github.com>
2023-05-31 14:56:48 +02:00
Jesse Glick fe52887da2 Lazy-load-friendly Job.getEstimatedDurationCandidates (#7998) 2023-05-29 16:00:42 +01:00
Vincent Latombe cb1d2dc532 Make Cloud#reconfigure public as it is necessary for downstream implementations (#8053) 2023-05-29 16:00:23 +01:00
Vincent Latombe 34893ce42f Fix reviews, give unique symbols 2023-05-26 10:44:46 +02:00
ab06bf517c 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>
2023-05-25 11:25:39 -06:00
Alexander Brandes 888086d439 [JENKINS-71153] Remove top level error icons (#8045)
Remove top level error icons
2023-05-25 05:56:42 -06:00
Alexander Brandes b53e5ac9a6 Replace methods in deprecated hamcrest modules (#8044) 2023-05-25 07:55:36 +01:00
Jan FaracikandAlexander Brandes 4931a1f96f Minor footer appearance tweaks (#7989)
Co-authored-by: Alexander Brandes <mc.cache@web.de>
2023-05-24 08:04:54 +01:00
Vincent Latombe 5e44136ffb Inline WidgetFactory#createWidgetsFor and be a bit more lenient. 2023-05-23 05:26:41 +02:00
Vincent Latombe ad60070ea1 Fix reviews 2023-05-23 05:19:22 +02:00
Vincent Latombe 366dd28b1a Merge branch 'master' into pluggable-widgets 2023-05-23 05:11:51 +02:00
Allan Burdajewicz a45f0601fc [JENKINS-71200] Fix elements property overload in ListView (#7942)
* [JENKINS-71200] Add test for ListView attributes overloads

* [JENKINS-71200] Fix elements property overload in ListView
2023-05-22 20:35:13 +02:00
Alexander Brandes ddadebb7e9 Address javadoc warning and setup quality gates (#8024) 2023-05-21 12:22:46 +02:00
d412838cb6 Unrestrict UserSeedChangeListener (#7997)
* Unrestrict UserSeedChangeListener

Long overdue judging from the TODO

Used in CloudBees product so it makes sense to clarify it.

* Apply suggestions from code review

Co-authored-by: Jesse Glick <jglick@cloudbees.com>

* Update core/src/main/java/jenkins/security/seed/UserSeedChangeListener.java

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

---------

Co-authored-by: Jesse Glick <jglick@cloudbees.com>
Co-authored-by: Daniel Beck <1831569+daniel-beck@users.noreply.github.com>
2023-05-21 12:19:34 +02:00
Markus WinterandAlexander Brandes a74425c39d Replace disconnect and system info symbols for agents (#8015)
* replace disconnect and system info symbols for agents

The symbol to disconnect was the same as that to delete the agent. Add a
new symbol that better fits for disconnecting (There is no fitting icon
at ionicons, so this is one from tabler-icons that I modified to have a
bigger viewport).
The symbol for System Information was still on old colored svg. Replace
this with information-circle from ionicons

* Make info theme-able

---------

Co-authored-by: Alexander Brandes <mc.cache@web.de>
2023-05-20 12:49:06 +02:00
Jesse Glick 1bc0cd0920 Broken toArray implementations in BuildReferenceMapAdapter (#7999) 2023-05-20 12:48:30 +02:00
Vincent Latombe 955ad0315d AbstractItem#doReload should not be calling SaveableListener#fireOnChange (#7984)
* Abstract#doReload should not be calling SaveableListener#fireOnChange

Was initially added as ce7e6390ee

SaveableListener.fireOnChange is typically called when saving an object,
not when loading it. This call should be removed.

* Verify new behaviour with a test

* Only make the test extension applicable to the reload test case
2023-05-20 12:47:08 +02:00