From 29bc5f747262065126e347abaf18f187d7e2fe32 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 17 Aug 2023 17:33:51 -0700 Subject: [PATCH 01/32] Bump org.jenkins-ci.plugins:structs from 324.va_f5d6774f3a_d to 325.vcb_307d2a_2782 (#8389) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- test/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/pom.xml b/test/pom.xml index f47fab8029de..11a2057e69ab 100644 --- a/test/pom.xml +++ b/test/pom.xml @@ -221,7 +221,7 @@ THE SOFTWARE. org.jenkins-ci.plugins structs - 324.va_f5d6774f3a_d + 325.vcb_307d2a_2782 test From 5c723b667310fd4b562e3ad3db8d2c67f989addb Mon Sep 17 00:00:00 2001 From: Mustafa Ulu Date: Fri, 18 Aug 2023 17:35:07 +0300 Subject: [PATCH 02/32] Turkish localization fixes for the job configuration page (#8368) --- .../main/resources/hudson/model/Job/configure_tr.properties | 4 ++++ core/src/main/resources/hudson/model/Messages_tr.properties | 4 ++-- core/src/main/resources/jenkins/model/Messages_tr.properties | 2 +- .../main/resources/jenkins/triggers/Messages_tr.properties | 1 + .../lib/hudson/project/config-builders_tr.properties | 1 + .../lib/hudson/project/config-concurrentBuild_tr.properties | 2 +- .../lib/hudson/project/config-disableBuild_tr.properties | 3 +++ .../lib/hudson/project/config-publishers2_tr.properties | 3 ++- .../lib/hudson/project/config-publishers_tr.properties | 2 +- .../resources/lib/hudson/project/makeDisabled_tr.properties | 3 ++- 10 files changed, 18 insertions(+), 7 deletions(-) create mode 100644 core/src/main/resources/jenkins/triggers/Messages_tr.properties diff --git a/core/src/main/resources/hudson/model/Job/configure_tr.properties b/core/src/main/resources/hudson/model/Job/configure_tr.properties index 478b231c0282..dbd3cbfc3dd8 100644 --- a/core/src/main/resources/hudson/model/Job/configure_tr.properties +++ b/core/src/main/resources/hudson/model/Job/configure_tr.properties @@ -24,4 +24,8 @@ Strategy=Strateji name={0} isim Description=Açıklama LOADING=YÜKLENİYOR +Configuration=Konfigürasyon +Configure=Konfigürasyonu Düzenle +General=Genel Save=Kaydet +Apply=Uygula diff --git a/core/src/main/resources/hudson/model/Messages_tr.properties b/core/src/main/resources/hudson/model/Messages_tr.properties index fbf4917f3fb3..d7356b3d3fe7 100644 --- a/core/src/main/resources/hudson/model/Messages_tr.properties +++ b/core/src/main/resources/hudson/model/Messages_tr.properties @@ -101,11 +101,11 @@ Run.UnableToDelete={0} silinemiyor: {1} View.Permissions.Title=Görüntü Permalink.LastBuild=Son yapılandırma -Permalink.LastStableBuild=Son stabil yapılandırma +Permalink.LastStableBuild=Son kararlı yapılandırma Permalink.LastSuccessfulBuild=Son başarılı yapılandırma Permalink.LastFailedBuild=Son başarısız yapılandırma ManageJenkinsAction.DisplayName=Jenkins''i Yönet -ParametersDefinitionProperty.DisplayName=Bu yapılandırma parametreleştirilmiştir. +ParametersDefinitionProperty.DisplayName=Bu projeyi parametrik hale getir ManagementLink.Category.CONFIGURATION=Sistem Konfigürasyonu ManagementLink.Category.SECURITY=Güvenlik diff --git a/core/src/main/resources/jenkins/model/Messages_tr.properties b/core/src/main/resources/jenkins/model/Messages_tr.properties index f3108bf971ec..ea0bb121c326 100644 --- a/core/src/main/resources/jenkins/model/Messages_tr.properties +++ b/core/src/main/resources/jenkins/model/Messages_tr.properties @@ -33,4 +33,4 @@ Hudson.ViewName=Hepsi ParameterizedJobMixIn.build_now=Şimdi Yapılandır BlockedBecauseOfBuildInProgress.shortDescription=Yapılandırma #{0} zaten işlemde {1} BlockedBecauseOfBuildInProgress.ETA=\ (ETA: {0}) -BuildDiscarderProperty.displayName=Eski Yapılandırmalardan Kurtul +BuildDiscarderProperty.displayName=Eski yapılandırmalardan kurtul diff --git a/core/src/main/resources/jenkins/triggers/Messages_tr.properties b/core/src/main/resources/jenkins/triggers/Messages_tr.properties new file mode 100644 index 000000000000..9f075b4628ae --- /dev/null +++ b/core/src/main/resources/jenkins/triggers/Messages_tr.properties @@ -0,0 +1 @@ +ReverseBuildTrigger.build_after_other_projects_are_built=Başka projeler yapılandırıldıktan sonra yapılandırma tetikle diff --git a/core/src/main/resources/lib/hudson/project/config-builders_tr.properties b/core/src/main/resources/lib/hudson/project/config-builders_tr.properties index 4a9473f35148..0164548aeaba 100644 --- a/core/src/main/resources/lib/hudson/project/config-builders_tr.properties +++ b/core/src/main/resources/lib/hudson/project/config-builders_tr.properties @@ -21,4 +21,5 @@ # THE SOFTWARE. Build=Yapılandırma +Build\ Steps=Yapılandırma Adımları Add\ build\ step=Yapılandırma adımı ekle diff --git a/core/src/main/resources/lib/hudson/project/config-concurrentBuild_tr.properties b/core/src/main/resources/lib/hudson/project/config-concurrentBuild_tr.properties index 9f65dcded217..8e01433317f8 100644 --- a/core/src/main/resources/lib/hudson/project/config-concurrentBuild_tr.properties +++ b/core/src/main/resources/lib/hudson/project/config-concurrentBuild_tr.properties @@ -1,3 +1,3 @@ # This file is under the MIT License by authors -title.concurrentbuilds=Eğer gerekliyse eş zamanlı yaplandırmaları çalıştır +title.concurrentbuilds=Gerekirse yaplandırmaları eşzamanlı çalıştır diff --git a/core/src/main/resources/lib/hudson/project/config-disableBuild_tr.properties b/core/src/main/resources/lib/hudson/project/config-disableBuild_tr.properties index 7503a2947110..f879e6502115 100644 --- a/core/src/main/resources/lib/hudson/project/config-disableBuild_tr.properties +++ b/core/src/main/resources/lib/hudson/project/config-disableBuild_tr.properties @@ -22,3 +22,6 @@ Disable\ this\ project=Yapılandırmayı devre dışı bırak No\ new\ builds\ will\ be\ executed\ until\ the\ project\ is\ re-enabled.=Proje yeniden devreye alınana kadar yeni yapılandırma çalıştırılmayacaktır. +Enabled=Etkin +Disabled=Devre Dışı +Enable\ or\ disable\ the\ current\ project=Bu projeyi etkinleştir veya devre dışı bırak diff --git a/core/src/main/resources/lib/hudson/project/config-publishers2_tr.properties b/core/src/main/resources/lib/hudson/project/config-publishers2_tr.properties index 62d71e587eb2..d674ffa65745 100644 --- a/core/src/main/resources/lib/hudson/project/config-publishers2_tr.properties +++ b/core/src/main/resources/lib/hudson/project/config-publishers2_tr.properties @@ -20,4 +20,5 @@ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN # THE SOFTWARE. -Post-build\ Actions=Yapılandırma-sonrası Aksiyonlar +Post-build\ Actions=Yapılandırma Sonrası Aksiyonlar +Add\ post-build\ action=Yapılandırma sonrası aksiyonu ekle diff --git a/core/src/main/resources/lib/hudson/project/config-publishers_tr.properties b/core/src/main/resources/lib/hudson/project/config-publishers_tr.properties index 62d71e587eb2..0ebb2a0a5cca 100644 --- a/core/src/main/resources/lib/hudson/project/config-publishers_tr.properties +++ b/core/src/main/resources/lib/hudson/project/config-publishers_tr.properties @@ -20,4 +20,4 @@ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN # THE SOFTWARE. -Post-build\ Actions=Yapılandırma-sonrası Aksiyonlar +Post-build\ Actions=Yapılandırma Sonrası Aksiyonlar diff --git a/core/src/main/resources/lib/hudson/project/makeDisabled_tr.properties b/core/src/main/resources/lib/hudson/project/makeDisabled_tr.properties index 12685be25f23..f13c9b783140 100644 --- a/core/src/main/resources/lib/hudson/project/makeDisabled_tr.properties +++ b/core/src/main/resources/lib/hudson/project/makeDisabled_tr.properties @@ -20,5 +20,6 @@ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN # THE SOFTWARE. -Disable\ Project=Projeyi devre dışı bırak +Disable\ Project=Projeyi Devre Dışı Bırak This\ project\ is\ currently\ disabled=Bu proje şimdilik devre dışı +Enable=Etkinleştir From 9d9041713ad87dafbe8be286e78ab2768d320047 Mon Sep 17 00:00:00 2001 From: Yaroslav <91559310+yaroslavafenkin@users.noreply.github.com> Date: Fri, 18 Aug 2023 17:35:53 +0300 Subject: [PATCH 03/32] [JENKINS-71514] Remove `eval` call in hudson-behavior.js (#8370) Co-authored-by: Yaroslav Afenkin --- war/src/main/webapp/scripts/hudson-behavior.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/war/src/main/webapp/scripts/hudson-behavior.js b/war/src/main/webapp/scripts/hudson-behavior.js index 258dfbdf395a..4197fa903207 100644 --- a/war/src/main/webapp/scripts/hudson-behavior.js +++ b/war/src/main/webapp/scripts/hudson-behavior.js @@ -1395,14 +1395,12 @@ function rowvgStartEachRow(recursive, f) { (function () { var cmdKeyDown = false; var mode = e.getAttribute("script-mode") || "text/x-groovy"; - var readOnly = eval(e.getAttribute("script-readOnly")) || false; // eslint-disable-next-line no-unused-vars var w = CodeMirror.fromTextArea(e, { mode: mode, lineNumbers: true, matchBrackets: true, - readOnly: readOnly, onKeyEvent: function (editor, event) { function saveAndSubmit() { editor.save(); From 02fbe762ad62aa5c52cfd148cff3fdfc5186001c Mon Sep 17 00:00:00 2001 From: Mysterious_Dev <40738104+Mysterious-Dev@users.noreply.github.com> Date: Fri, 18 Aug 2023 16:36:16 +0200 Subject: [PATCH 04/32] Many French translations for plugin panels (#8382) Co-authored-by: Olivier Lamy --- .../resources/hudson/Messages_fr.properties | 2 ++ .../PluginManager/sidepanel_fr.properties | 27 +++++++++++++++++++ .../model/UpdateCenter/index_fr.properties | 6 +---- 3 files changed, 30 insertions(+), 5 deletions(-) create mode 100644 core/src/main/resources/hudson/PluginManager/sidepanel_fr.properties diff --git a/core/src/main/resources/hudson/Messages_fr.properties b/core/src/main/resources/hudson/Messages_fr.properties index 1c948734def7..543ae2f0dcba 100644 --- a/core/src/main/resources/hudson/Messages_fr.properties +++ b/core/src/main/resources/hudson/Messages_fr.properties @@ -49,6 +49,8 @@ Util.day ={0} j Util.month ={0} mo. Util.year ={0} an. +UpdateCenter.DownloadButNotActivated=La mise à jour a été téléchargée avec succès. Elle sera activée lors du prochain démarrage + FilePath.TildaDoesntWork=''~'' n''est supporté que sur les shells Unix. PluginManager.PortNotANumber=Le port n''est pas un nombre diff --git a/core/src/main/resources/hudson/PluginManager/sidepanel_fr.properties b/core/src/main/resources/hudson/PluginManager/sidepanel_fr.properties new file mode 100644 index 000000000000..c2f09529615c --- /dev/null +++ b/core/src/main/resources/hudson/PluginManager/sidepanel_fr.properties @@ -0,0 +1,27 @@ +# The MIT License +# +# Copyright (c) 2023, Damian Szczepanik +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in +# all copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +# THE SOFTWARE. + +Updates=Mises à jour +Available\ plugins=Plugins disponibles +Installed\ plugins=Plugins installés +Advanced\ settings=Paramètres avancés +Download\ progress=Progression des téléchargements diff --git a/core/src/main/resources/hudson/model/UpdateCenter/index_fr.properties b/core/src/main/resources/hudson/model/UpdateCenter/index_fr.properties index d4484e9b7c4c..2a47892a3281 100644 --- a/core/src/main/resources/hudson/model/UpdateCenter/index_fr.properties +++ b/core/src/main/resources/hudson/model/UpdateCenter/index_fr.properties @@ -20,8 +20,4 @@ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN # THE SOFTWARE. -Update\ Center=Centre de mise à jour -warning=Une fois l''installation terminée, Jenkins doit être redémarré \ - pour prendre en compte les nouveaux plugins. -Installing\ Plugins/Upgrades=Installation/Mise à jour des Plugins -Schedule\ Restart=Programmer un redémarrage +Download\ progress=Progression du téléchargement From 4ef934e4c46a7a434863d160696a6f1474e564e6 Mon Sep 17 00:00:00 2001 From: Daniel Beck <1831569+daniel-beck@users.noreply.github.com> Date: Fri, 18 Aug 2023 16:36:45 +0200 Subject: [PATCH 05/32] [JENKINS-71833] Fix link to job in slow trigger admin monitor (#8387) Co-authored-by: Daniel Beck --- .../hudson/triggers/SlowTriggerAdminMonitor/message.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/resources/hudson/triggers/SlowTriggerAdminMonitor/message.groovy b/core/src/main/resources/hudson/triggers/SlowTriggerAdminMonitor/message.groovy index ca56053f434a..77bcedd36ebd 100644 --- a/core/src/main/resources/hudson/triggers/SlowTriggerAdminMonitor/message.groovy +++ b/core/src/main/resources/hudson/triggers/SlowTriggerAdminMonitor/message.groovy @@ -35,7 +35,7 @@ dl { td(val.fullJobName) } else { td { - a(job.getFullDisplayName(), href: job.getUrl(), class: 'model-link') + a(job.getFullDisplayName(), href: rootURL + '/' + job.getUrl(), class: 'model-link') } } td(Util.getTimeSpanString(val.duration)) From a17f0f63c9fac78d3afc4f7864aa0399d6f1c7b4 Mon Sep 17 00:00:00 2001 From: Jan Faracik <43062514+janfaracik@users.noreply.github.com> Date: Fri, 18 Aug 2023 15:38:27 +0100 Subject: [PATCH 06/32] Remove unused CSS variables (#8354) --- war/src/main/js/add-item.scss | 2 - war/src/main/js/widgets/variables.scss | 16 ----- war/src/main/scss/abstracts/theme.scss | 69 ++++------------------ war/src/main/scss/base/style.scss | 16 ----- war/src/main/scss/modules/page-header.scss | 1 - 5 files changed, 12 insertions(+), 92 deletions(-) delete mode 100644 war/src/main/js/widgets/variables.scss diff --git a/war/src/main/js/add-item.scss b/war/src/main/js/add-item.scss index b9ef9eb9e930..e033c98a5de5 100644 --- a/war/src/main/js/add-item.scss +++ b/war/src/main/js/add-item.scss @@ -1,5 +1,3 @@ -@use "widgets/variables"; - /* * Widget styles */ diff --git a/war/src/main/js/widgets/variables.scss b/war/src/main/js/widgets/variables.scss deleted file mode 100644 index 4137129e1b39..000000000000 --- a/war/src/main/js/widgets/variables.scss +++ /dev/null @@ -1,16 +0,0 @@ -:root { - --medium-translucent: rgba(255, 255, 255, 0.75); - - --shade-hint: rgba(0, 0, 0, 0.025); - --shade: rgba(0, 0, 0, 0.1); - - --line-blue: #69c; - --line-green: #acb; - - --danger: #d24939; - --danger-line: #be3a2b; - --danger-dark: #a23225; - --danger-dark-line: #942e22; - - --input-line-height: 2.25em; -} diff --git a/war/src/main/scss/abstracts/theme.scss b/war/src/main/scss/abstracts/theme.scss index c2bb35014d07..abc5fd3cb928 100644 --- a/war/src/main/scss/abstracts/theme.scss +++ b/war/src/main/scss/abstracts/theme.scss @@ -51,12 +51,13 @@ $semantics: ( // branding --secondary: hsl(240, 10%, 50%); - --focus: #3fb3f7; + --focus-input-border: #063f61; + --focus-input-glow: #{color.change(#0b6aa2, $alpha: 0.25)}; + + // Deprecated --focus-btn-primary: #{color.change(#0b6aa2, $alpha: 0.5)}; --focus-btn-secondary: #{color.change(#0b6aa2, $alpha: 0.5)}; --focus-btn-danger: #{color.change(#cc0003, $alpha: 0.5)}; - --focus-input-border: #063f61; - --focus-input-glow: #{color.change(#0b6aa2, $alpha: 0.25)}; // State colors --primary-hover: #0587d4; @@ -71,36 +72,23 @@ $semantics: ( // Background colors --background: var(--white); - // Borders - --line-green: #acb; - --medium-translucent: rgba(255, 255, 255, 0.75); - - // Page header colors - --logo-bg: var(--white); + // Header --brand-link-color: var(--secondary); --header-link-color: var(--white); --header-link-color-active: #f5f5f5; - --header-link-outline: var(--focus); --header-search-border: var(--white); --search-input-color: var(--brand-link-color); --search-bg: var(--white); --search-box-completion-bg: var(--primary-hover); --search-box-shadow: 0 1px 7px 0 rgba(0, 0, 0, 0.3); - - // Header classic colors --header-bg-classic: #000; --header-link-bg-classic-hover: #404040; --header-link-bg-classic-active: #404040; - - // Header dimensions --header-item-border-radius: 4px; // Breadcrumbs bar --breadcrumbs-bar-background: hsla(240, 20%, 96.5%, 0.8); - // Footer - --footer-background: hsla(240, 20%, 96.5%, 0.8); - // Alert call outs --alert-success-text-color: #155724; --alert-success-bg-color: #d4edda; @@ -118,19 +106,19 @@ $semantics: ( // Typography --text-color-secondary: var(--secondary); - // Button generic + // Deprecated - Button generic --btn-font-weight: bold; --btn-text-color: var(--white); --btn-font-size: var(--font-size-xs); --btn-line-height: 1rem; --btn-large-font-size: var(--font-size-sm); --btn-large-line-height: 1.25rem; - // Button primary + // Deprecated - Button primary --button-color--primary: var(--background); --btn-primary-bg: #063f61; --btn-primary-bg-hover: lighten(#063f61, 7.5%); --btn-primary-bg-active: lighten(#063f61, 12%); - // Button primary + // Deprecated - Button primary --btn-secondary-color: var(--secondary); --btn-secondary-bg: var(--btn-text-color); --btn-secondary-border: var(--medium-grey); @@ -143,7 +131,7 @@ $semantics: ( --btn-secondary-color--active: var(--primary-active); --btn-secondary-bg--active: var(--btn-secondary-bg); --btn-secondary-border--active: var(--primary-active); - // Button link + // Deprecated - Button link --btn-link-color: var(--accent-color); --btn-link-font-weight: var(--link-font-weight); --btn-link-color--hover: var(--primary-hover); @@ -151,10 +139,6 @@ $semantics: ( --btn-link-color--active: var(--primary-active); --btn-link-bg--active: var(--light-grey); - // Help area - --help-area-bg-color: var(--very-light-grey); - --configure-job-help-area-bg-color: var(--medium-translucent); - // Table --table-background: var(--panel-header-bg-color); --table-header-foreground: var(--text-color); @@ -250,25 +234,7 @@ $semantics: ( --tabs-item-foreground--selected: var(--link-color); --tabs-border-radius: calc((10px + 34px) / 2); - // Deprecated - --tab-link-border-radius: 10px; - --tab-link-border-width: 2px; - --tab-link-padding-x: 0.75rem; - --tab-link-padding-y: 0.375rem; - --tab-link-font-weight: bold; - --tab-link-text-color: var(--text-color-secondary); - --tab-link-bg: transparent; - --tab-link-border-color: var(--light-grey); - --tab-link-text-color--hover: var(--tab-link-text-color); // Redundant? - --tab-link-bg--hover: var(--light-grey); - --tab-link-border-color--hover: var(--tab-link-bg--hover); // Redundant? - --tab-link-text-color--active: var(--tab-link-text-color); // Redundant? - --tab-link-bg--active: var(--light-grey); - --tab-link-border-color--active: var(--tab-link-checked-bg); // Redundant? - --tab-link-checked-text-color: var(--white); - --tab-link-checked-bg: var(--dark-grey); - --tab-link-checked-border-color: var(--tab-link-checked-bg); - // Tabbar baseline + // Deprecated - Tabbar baseline --tab-baseline-width: 2px; --tab-baseline-color: var(--light-grey); --tab-baseline-default-display: none; @@ -310,21 +276,14 @@ $semantics: ( --standard-transition: 0.3s ease; --elastic-transition: 0.3s cubic-bezier(0, 0.68, 0.5, 1.5); - // Pop out menus + // Deprecated - Pop out menus --menu-text-color: black; --menu-bg-color: var(--white); --menu-selected-color: #b3d4ff; --menu-box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3); - // Manage component - --manage-option-bg-color--hover: var(--very-light-grey); - --manage-option-bg-color--active: var(--light-grey); - --manage-option-border-color: var(--medium-grey); - - // Add form widget / configure job + // Deprecated - Add form widget / configure job --light-bg-color: #eee; - --bright-bg-color: #f9f9f9; - --brightest-bg-color: var(--white); --light-bg-color--hover: rgba(255, 255, 255, 0.65); --add-item-btn-decorator-border-color: #acb; --add-item-btn-decorator-bg-color: rgba(245, 249, 239, 0.75); @@ -341,10 +300,6 @@ $semantics: ( // Auto complete --auto-complete-bg-color--prehighlight: #b3d4ff; - // Call to action - --call-to-action-link-color: #000; - --call-to-action-text-color: var(--alert-info-text-color); - // Default button --button-background: hsla(240, 25%, 75%, 0.1); --button-background--hover: hsla(240, 25%, 75%, 0.175); diff --git a/war/src/main/scss/base/style.scss b/war/src/main/scss/base/style.scss index 22acd9884ee4..ca452ac136a5 100644 --- a/war/src/main/scss/base/style.scss +++ b/war/src/main/scss/base/style.scss @@ -156,22 +156,6 @@ a.tip:hover span { text-align: left; } -.call-to-action { - display: table; - margin-bottom: 5px; - padding: 10px; - background-color: var(--alert-info-bg-color); - border-left: 4px solid #577baa; - color: var(--call-to-action-text-color); -} - -.call-to-action a, -.call-to-action a:visited { - color: var(--call-to-action-link-color); - font-weight: bold; - font-size: larger; -} - img { vertical-align: middle; border: 0; diff --git a/war/src/main/scss/modules/page-header.scss b/war/src/main/scss/modules/page-header.scss index 3b1211777e01..13e63d91a771 100644 --- a/war/src/main/scss/modules/page-header.scss +++ b/war/src/main/scss/modules/page-header.scss @@ -57,7 +57,6 @@ a.page-header__brand-link { padding: 0.5rem; margin-right: 0 !important; font-weight: bold; - outline-color: var(--header-link-outline); &:link, &:visited { From 6b25ba210c8d62cfd621e48d69a35651dd963603 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sat, 19 Aug 2023 09:59:45 +0200 Subject: [PATCH 07/32] Update dependency prettier to v3.0.2 (#8396) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- war/package.json | 2 +- war/yarn.lock | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/war/package.json b/war/package.json index 363ea601b452..86bef7ee869b 100644 --- a/war/package.json +++ b/war/package.json @@ -38,7 +38,7 @@ "postcss-loader": "7.3.3", "postcss-preset-env": "9.1.1", "postcss-scss": "4.0.6", - "prettier": "3.0.1", + "prettier": "3.0.2", "sass": "1.65.1", "sass-loader": "13.3.2", "style-loader": "3.3.3", diff --git a/war/yarn.lock b/war/yarn.lock index 57535318721c..19677a13e7e0 100644 --- a/war/yarn.lock +++ b/war/yarn.lock @@ -4368,7 +4368,7 @@ __metadata: postcss-loader: 7.3.3 postcss-preset-env: 9.1.1 postcss-scss: 4.0.6 - prettier: 3.0.1 + prettier: 3.0.2 sass: 1.65.1 sass-loader: 13.3.2 sortablejs: 1.15.0 @@ -6091,12 +6091,12 @@ __metadata: languageName: node linkType: hard -"prettier@npm:3.0.1": - version: 3.0.1 - resolution: "prettier@npm:3.0.1" +"prettier@npm:3.0.2": + version: 3.0.2 + resolution: "prettier@npm:3.0.2" bin: prettier: bin/prettier.cjs - checksum: e1f3f16c7fe0495de3faa182597871f74927d787cce3c52095a66ff5d7eacc05173371d5f58bf12141a0a1b6bfe739a338531d6cf18b92c7256c1319f2c84e73 + checksum: 118b59ddb6c80abe2315ab6d0f4dd1b253be5cfdb20622fa5b65bb1573dcd362e6dd3dcf2711dd3ebfe64aecf7bdc75de8a69dc2422dcd35bdde7610586b677a languageName: node linkType: hard From a52c2634e95535413d8680929b07eff058bea759 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sat, 19 Aug 2023 10:00:05 +0200 Subject: [PATCH 08/32] Update dependency postcss to v8.4.28 (#8398) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- war/package.json | 2 +- war/yarn.lock | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/war/package.json b/war/package.json index 86bef7ee869b..b17678f16c79 100644 --- a/war/package.json +++ b/war/package.json @@ -34,7 +34,7 @@ "eslint-config-prettier": "9.0.0", "handlebars-loader": "1.7.3", "mini-css-extract-plugin": "2.7.6", - "postcss": "8.4.27", + "postcss": "8.4.28", "postcss-loader": "7.3.3", "postcss-preset-env": "9.1.1", "postcss-scss": "4.0.6", diff --git a/war/yarn.lock b/war/yarn.lock index 19677a13e7e0..59ebeeb428f1 100644 --- a/war/yarn.lock +++ b/war/yarn.lock @@ -4364,7 +4364,7 @@ __metadata: jquery: 3.7.0 lodash: 4.17.21 mini-css-extract-plugin: 2.7.6 - postcss: 8.4.27 + postcss: 8.4.28 postcss-loader: 7.3.3 postcss-preset-env: 9.1.1 postcss-scss: 4.0.6 @@ -6073,14 +6073,14 @@ __metadata: languageName: node linkType: hard -"postcss@npm:8.4.27, postcss@npm:^8.4.21, postcss@npm:^8.4.24, postcss@npm:^8.4.25": - version: 8.4.27 - resolution: "postcss@npm:8.4.27" +"postcss@npm:8.4.28, postcss@npm:^8.4.21, postcss@npm:^8.4.24, postcss@npm:^8.4.25": + version: 8.4.28 + resolution: "postcss@npm:8.4.28" dependencies: nanoid: ^3.3.6 picocolors: ^1.0.0 source-map-js: ^1.0.2 - checksum: 1cdd0c298849df6cd65f7e646a3ba36870a37b65f55fd59d1a165539c263e9b4872a402bf4ed1ca1bc31f58b68b2835545e33ea1a23b161a1f8aa6d5ded81e78 + checksum: f605c24a36f7e400bad379735fbfc893ccb8d293ad6d419bb824db77cdcb69f43d614ef35f9f7091f32ca588d130ec60dbcf53b366e6bf88a8a64bbeb3c05f6d languageName: node linkType: hard From 7560bb5a5c25c152a566eb2edeee96bcef443500 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 19 Aug 2023 18:08:10 +0100 Subject: [PATCH 09/32] Bump org.jenkins-ci.plugins:display-url-api from 2.3.8 to 2.3.9 (#8397) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- test/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/pom.xml b/test/pom.xml index 11a2057e69ab..e94559ee386d 100644 --- a/test/pom.xml +++ b/test/pom.xml @@ -95,7 +95,7 @@ THE SOFTWARE. org.jenkins-ci.plugins display-url-api - 2.3.8 + 2.3.9 From 2c28368086bfc0a2b5a8a07d5160e4a15a217a87 Mon Sep 17 00:00:00 2001 From: Jan Faracik <43062514+janfaracik@users.noreply.github.com> Date: Sat, 19 Aug 2023 18:08:21 +0100 Subject: [PATCH 10/32] Remove 'track-mouse' JS (#8391) --- core/src/main/resources/lib/layout/pane.jelly | 2 +- .../main/webapp/scripts/hudson-behavior.js | 22 ------------------- 2 files changed, 1 insertion(+), 23 deletions(-) diff --git a/core/src/main/resources/lib/layout/pane.jelly b/core/src/main/resources/lib/layout/pane.jelly index 7e10c3d59d71..e7c4a04a8245 100644 --- a/core/src/main/resources/lib/layout/pane.jelly +++ b/core/src/main/resources/lib/layout/pane.jelly @@ -52,7 +52,7 @@ THE SOFTWARE. -
+
diff --git a/war/src/main/webapp/scripts/hudson-behavior.js b/war/src/main/webapp/scripts/hudson-behavior.js index 4197fa903207..7f682b1bc33e 100644 --- a/war/src/main/webapp/scripts/hudson-behavior.js +++ b/war/src/main/webapp/scripts/hudson-behavior.js @@ -1786,28 +1786,6 @@ function rowvgStartEachRow(recursive, f) { }, ); - Behaviour.specify(".track-mouse", "-track-mouse", ++p, function (element) { - var DOM = YAHOO.util.Dom; - - element.addEventListener("mouseenter", function () { - element.classList.add("mouseover"); - - var mousemoveTracker = function (event) { - var elementRegion = DOM.getRegion(element); - if ( - event.x < elementRegion.left || - event.x > elementRegion.right || - event.y < elementRegion.top || - event.y > elementRegion.bottom - ) { - element.classList.remove("mouseover"); - document.removeEventListener("mousemove", mousemoveTracker); - } - }; - document.addEventListener("mousemove", mousemoveTracker); - }); - }); - window.addEventListener("load", function () { // Add a class to the bottom bar when it's stuck to the bottom of the screen const el = document.querySelector("#bottom-sticker"); From 7ad6a020d319a982cedd65857f245246e34dc47e Mon Sep 17 00:00:00 2001 From: Jan Faracik <43062514+janfaracik@users.noreply.github.com> Date: Sat, 19 Aug 2023 18:08:35 +0100 Subject: [PATCH 11/32] Remove unused CSS classes (#8372) Co-authored-by: Daniel Beck <1831569+daniel-beck@users.noreply.github.com> Co-authored-by: Tim Jacomb <21194782+timja@users.noreply.github.com> --- war/src/main/scss/base/style.scss | 245 +----------------------------- 1 file changed, 1 insertion(+), 244 deletions(-) diff --git a/war/src/main/scss/base/style.scss b/war/src/main/scss/base/style.scss index ca452ac136a5..e1957b7f01c1 100644 --- a/war/src/main/scss/base/style.scss +++ b/war/src/main/scss/base/style.scss @@ -22,19 +22,6 @@ * THE SOFTWARE. */ -/* Panel */ -@media (width >= 1600px) { - body#jenkins.j-hide-left #main-panel { - max-width: 75%; - } -} - -@media (width >= 2000px) { - body#jenkins.j-hide-left #main-panel { - max-width: 85%; - } -} - form { margin: 0; } @@ -97,23 +84,6 @@ td.no-wrap { border-radius: var(--form-input-border-radius); } -/* #header .login { - position: relative; - top: 6px; - color: white; - margin-right: 10px; -} - -#header .login a, #header .login a:visited { - color: white; - text-decoration: none; -} - -#header .login a:hover { - text-decoration: underline; - color: #ccc; -} */ - a.lowkey:link { text-decoration: none; color: inherit; @@ -170,17 +140,6 @@ table.tab { border-collapse: collapse; } -td.selected_tab { - vertical-align: middle; - border: 1px #090 solid; - background: #fff; -} - -td.tab_filler { - background: #fff; - border-bottom: 1px #090 solid; -} - td.tab { vertical-align: middle; border: 1px #090 solid; @@ -230,10 +189,6 @@ pre.console { white-space: nowrap; } -.setting-checkbox { - font-weight: 500; -} - .setting-help { margin-left: 0.5rem; margin-right: 0.5rem; @@ -288,84 +243,15 @@ pre.console { flex-shrink: 1; } -/* div that looks like a hyperlink */ -.pseudoLink { - cursor: pointer; -} - .advancedBody { display: none; } -.scm_info { - width: 480px; -} - -.build-keep { - font-weight: bold; -} - -.task-header { - display: block; - border-bottom: 1px #090 solid; - font-weight: bold; - font-size: var(--font-size-xs); -} - .jenkins-not-applicable { color: darkgrey; font-style: italic; } -.smallfont { - font-size: 9px; -} - -#foldertab { - padding: 4px 0; - margin-left: 0; - border-bottom: 1px solid #090; - font: - bold 12px Helvetica, - Arial, - sans-serif; -} - -#foldertab li { - list-style: none; - margin: 0; - display: inline; -} - -#foldertab li a { - padding: 4px 0.5em; - margin-left: 3px; - border: 1px solid #090; - border-bottom: none; - background: #090; - text-decoration: none; -} - -#foldertab li a:link { - color: white; -} - -#foldertab li a:visited { - color: white; -} - -#foldertab li a:hover { - color: white; - background: #6c0; - border-color: #6c0; -} - -#foldertab li a#current { - background: white; - border-bottom: 1px solid white; - color: black; -} - .changeset-message { padding: 0.8rem 1rem; border-radius: 10px; @@ -382,25 +268,6 @@ pre.console { color: gray; } -#login-field { - vertical-align: middle; - padding-right: 1em; - width: 1px; -} - -#login-field span { - white-space: nowrap; - color: white; -} - -#login-field a { - /* - link inside login field should be always white. - If I set this to inherit, it won't work in IE7 - */ - color: white; -} - .bottom-sticker, #bottom-sticker { position: sticky; @@ -535,76 +402,6 @@ img.icon-help { vertical-align: text-top; } -/* ====================== project view tab bar ===================================== */ -#viewList { - border: none; - margin-bottom: 0; - width: 100%; - white-space: nowrap; -} - -#viewList td { - padding: 0; -} - -#viewList td.inactive { - border: solid 1px #ccc; - border-bottom-color: #bbb; -} - -#viewList td.inactive:hover { - background-color: #777; -} - -#viewList td.inactive a { - text-decoration: none; - color: #444; -} - -#viewList td.inactive a:hover { - color: #f1f1f1; -} - -#viewList td.noleft { - border-left: none; -} - -#viewList td.noright { - border-right: none; -} - -#viewList td.active { - border: solid 1px #bbb; - padding: 0.5em; - border-bottom: none; - vertical-align: middle; - background-color: rgb(240, 240, 240); - font-weight: bold; - white-space: nowrap; -} - -#viewList td.filler { - border: none; - border-bottom: solid 1px #bbb; - width: 100%; - text-align: right; -} - -#viewList a { - display: block; - padding: 0.5em; - white-space: nowrap; -} - -#projectstatus .header { - border-bottom: 1px solid var(--bigtable-header-border-color); -} - -#projectstatus > thead > th { - text-align: left; - // padding: 7px 0px; -} - /* ============================ list view entries ======================== */ div.listview-jobs { max-height: 300px; @@ -613,24 +410,6 @@ div.listview-jobs { padding-left: 15px; } -/* ============================ parameters form ========================== */ - -table.parameters { - border-collapse: collapse; -} - -table.parameters > tbody > tr:first-child > td { - padding-top: 4px; -} - -table.parameters .setting-description { - padding-bottom: 4px; -} - -table.parameters > tbody:hover { - background-color: var(--table-parameters-bg--hover); -} - /* ============================ health report hover ========================== */ .healthReport a { @@ -1051,24 +830,6 @@ textarea { resize: vertical; } -/* - * TODO(andipabst): Not used after https://github.com/jenkinsci/jenkins/pull/4299, - * remove once there are no more dependencies - */ -#plugins .compatWarning { - white-space: normal; - margin-top: 0.5em; - padding-left: 2em; - color: #f00; -} - -#plugins .securityWarning { - white-space: normal; - margin-top: 0.5em; - padding-left: 2em; - color: #f00; -} - /* ========================= progress bar ========================= */ table.progress-bar { @@ -1143,6 +904,7 @@ table.progress-bar.red td.progress-bar-done { } /* ========================= tags/labels ================== */ +// Used in core/src/main/java/hudson/util/TagCloud.java#getClassName /* tag0 is the least important tag in a tag cloud */ .tag0 { @@ -1265,11 +1027,6 @@ select.select-ajax-pending { } /* ========================= Button styles ================= */ -.btn-box { - display: block; - margin-top: 2em; -} - #disable-project { margin-top: 6px; } From 7f3fa048ca0c8094a552d02d5863c49fc06ea42a Mon Sep 17 00:00:00 2001 From: Jesse Glick Date: Sat, 19 Aug 2023 13:08:49 -0400 Subject: [PATCH 12/32] [JENKINS-61452] Tolerate corrupt Base64 in `PlainTextConsoleOutputStream` (#8378) --- .../console/PlainTextConsoleOutputStream.java | 12 ++++++++- .../console/AnnotatedLargeTextTest.java | 26 ++++++++++++++++++- 2 files changed, 36 insertions(+), 2 deletions(-) diff --git a/core/src/main/java/hudson/console/PlainTextConsoleOutputStream.java b/core/src/main/java/hudson/console/PlainTextConsoleOutputStream.java index f3b5bd8adf7e..70bc85b7b110 100644 --- a/core/src/main/java/hudson/console/PlainTextConsoleOutputStream.java +++ b/core/src/main/java/hudson/console/PlainTextConsoleOutputStream.java @@ -28,6 +28,10 @@ import java.io.DataInputStream; import java.io.IOException; import java.io.OutputStream; +import java.nio.charset.Charset; +import java.util.logging.Level; +import java.util.logging.Logger; +import org.apache.commons.lang.StringEscapeUtils; /** * Filters out console notes. @@ -36,6 +40,8 @@ */ public class PlainTextConsoleOutputStream extends LineTransformationOutputStream.Delegating { + private static final Logger LOGGER = Logger.getLogger(PlainTextConsoleOutputStream.class.getName()); + /** * */ @@ -64,7 +70,11 @@ protected void eol(byte[] in, int sz) throws IOException { int rest = sz - next; ByteArrayInputStream b = new ByteArrayInputStream(in, next, rest); - ConsoleNote.skip(new DataInputStream(b)); + try { + ConsoleNote.skip(new DataInputStream(b)); + } catch (IOException x) { + LOGGER.log(Level.FINE, "Failed to skip annotation from \"" + StringEscapeUtils.escapeJava(new String(in, next, rest, Charset.defaultCharset())) + "\"", x); + } int bytesUsed = rest - b.available(); // bytes consumed by annotations written += bytesUsed; diff --git a/test/src/test/java/hudson/console/AnnotatedLargeTextTest.java b/test/src/test/java/hudson/console/AnnotatedLargeTextTest.java index dcd3b96c3210..825bd2b60460 100644 --- a/test/src/test/java/hudson/console/AnnotatedLargeTextTest.java +++ b/test/src/test/java/hudson/console/AnnotatedLargeTextTest.java @@ -27,6 +27,7 @@ import static org.hamcrest.MatcherAssert.assertThat; import static org.hamcrest.Matchers.containsString; import static org.hamcrest.Matchers.hasItem; +import static org.hamcrest.Matchers.matchesRegex; import static org.junit.Assert.assertEquals; import hudson.MarkupText; @@ -52,7 +53,7 @@ public class AnnotatedLargeTextTest { public static JenkinsRule r = new JenkinsRule(); @Rule - public LoggerRule logging = new LoggerRule().record(ConsoleAnnotationOutputStream.class, Level.FINE).capture(100); + public LoggerRule logging = new LoggerRule().record(ConsoleAnnotationOutputStream.class, Level.FINE).record(PlainTextConsoleOutputStream.class, Level.FINE).capture(100); @Test public void smokes() throws Exception { @@ -138,6 +139,29 @@ public void badMac() throws Exception { + "AAA\\u001B[0myour home.\\n\"")); // TODO assert that this is IOException: MAC mismatch } + @Issue("JENKINS-61452") + @Test + public void corruptedNote() throws Exception { + ByteBuffer buf = new ByteBuffer(); + PrintStream ps = new PrintStream(buf, true, StandardCharsets.UTF_8); + ps.print("Some text.\n"); + ps.print("Go back to " + TestNote.encodeTo("/root", "your home") + ".\n"); + ps.print("More text.\n"); + String original = buf.toString(); + String corrupted = original.replace("+", "\u0000"); + buf = new ByteBuffer(); + buf.write(corrupted.getBytes()); + AnnotatedLargeText text = new AnnotatedLargeText<>(buf, StandardCharsets.UTF_8, true, null); + ByteArrayOutputStream baos = new ByteArrayOutputStream(); + text.writeLogTo(0, baos); + assertThat(baos.toString(StandardCharsets.UTF_8), matchesRegex("Some text[.]\nGo back to .*your home[.]\nMore text[.]\n")); + assertThat(logging.getMessages(), hasItem(matchesRegex("Failed to skip annotation from .+"))); + StringWriter w = new StringWriter(); + text.writeHtmlTo(0, w); + assertThat(w.toString(), matchesRegex("Some text[.]\nGo back to .*your home[.]\nMore text[.]\n")); + assertThat(logging.getMessages(), hasItem(matchesRegex("Failed to resurrect annotation from .+"))); + } + /** Simplified version of {@link HyperlinkNote}. */ static class TestNote extends ConsoleNote { private final String url; From b9cb7d4789d1116e6e02bd0ae27ec8706e082bad Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 21 Aug 2023 09:26:26 +0200 Subject: [PATCH 13/32] Update Yarn to v3.6.2 (#8401) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Alexander Brandes --- war/package.json | 2 +- war/pom.xml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/war/package.json b/war/package.json index b17678f16c79..f81857f5701e 100644 --- a/war/package.json +++ b/war/package.json @@ -62,5 +62,5 @@ "defaults", "not IE 11" ], - "packageManager": "yarn@3.6.1" + "packageManager": "yarn@3.6.2" } diff --git a/war/pom.xml b/war/pom.xml index 963a3b0d50fc..809ecf86c968 100644 --- a/war/pom.xml +++ b/war/pom.xml @@ -50,8 +50,8 @@ THE SOFTWARE. 1.22.19 - 3.6.1 - 811210abb5fb5751da12ead8a9cbc0c150b07e43ac9cbedec6752d22abfd2bd6 + 3.6.2 + 506981787ad29ec22e9c904a0d630c3b03b2e5c078b074990404aabbf2fb007b From 7fb3cfe114ab7daa332546a82335298dae91fc5b Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 21 Aug 2023 09:26:43 +0200 Subject: [PATCH 14/32] Update dependency postcss-scss to v4.0.7 (#8400) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- war/package.json | 2 +- war/yarn.lock | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/war/package.json b/war/package.json index f81857f5701e..0466a98c8b52 100644 --- a/war/package.json +++ b/war/package.json @@ -37,7 +37,7 @@ "postcss": "8.4.28", "postcss-loader": "7.3.3", "postcss-preset-env": "9.1.1", - "postcss-scss": "4.0.6", + "postcss-scss": "4.0.7", "prettier": "3.0.2", "sass": "1.65.1", "sass-loader": "13.3.2", diff --git a/war/yarn.lock b/war/yarn.lock index 59ebeeb428f1..69141cdd076d 100644 --- a/war/yarn.lock +++ b/war/yarn.lock @@ -4367,7 +4367,7 @@ __metadata: postcss: 8.4.28 postcss-loader: 7.3.3 postcss-preset-env: 9.1.1 - postcss-scss: 4.0.6 + postcss-scss: 4.0.7 prettier: 3.0.2 sass: 1.65.1 sass-loader: 13.3.2 @@ -6013,12 +6013,12 @@ __metadata: languageName: node linkType: hard -"postcss-scss@npm:4.0.6": - version: 4.0.6 - resolution: "postcss-scss@npm:4.0.6" +"postcss-scss@npm:4.0.7": + version: 4.0.7 + resolution: "postcss-scss@npm:4.0.7" peerDependencies: postcss: ^8.4.19 - checksum: 133a1cba31e2e167f4e841e66ec6a798eaf44c7911f9182ade0b5b1e71a8198814aa390b8c9d5db6b01358115232e5b15b1a4f8c5198acfccfb1f3fdbd328cdf + checksum: 579aa6807bf4934dd9bd3f8a257736c1121e189f2aa23853512e2a1be1005bac0136020d08e626998bcd3537080a1403f7a03a8cae277f3e0e314eb3c779db9c languageName: node linkType: hard From 70effdf2dd7935fda493cc9f88a857f1e6b592f1 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 21 Aug 2023 12:49:56 -0700 Subject: [PATCH 15/32] Bump org.jenkins-ci.plugins:script-security from 1269.v639888f5e366 to 1271.vdede89739a_81 (#8408) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- test/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/pom.xml b/test/pom.xml index e94559ee386d..5073b1052f2a 100644 --- a/test/pom.xml +++ b/test/pom.xml @@ -101,7 +101,7 @@ THE SOFTWARE. org.jenkins-ci.plugins script-security - 1269.v639888f5e366 + 1271.vdede89739a_81 From 0d9a2603ec8fe8b820ab77b0d3e9fc648c31c9cf Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 21 Aug 2023 12:50:13 -0700 Subject: [PATCH 16/32] Bump org.jenkins-ci.main:jenkins-test-harness from 2053.v0ea_6fc5d99b_f to 2058.va_7b_41a_286207 (#8409) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- test/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/pom.xml b/test/pom.xml index 5073b1052f2a..2440a09e1b19 100644 --- a/test/pom.xml +++ b/test/pom.xml @@ -116,7 +116,7 @@ THE SOFTWARE. ${project.groupId} jenkins-test-harness - 2053.v0ea_6fc5d99b_f + 2058.va_7b_41a_286207 test From 8abf635fe92eb1e2303d73d88a21c61f5aeb0bb4 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 21 Aug 2023 12:50:42 -0700 Subject: [PATCH 17/32] Update dependency sass to v1.66.0 (#8402) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- war/package.json | 2 +- war/yarn.lock | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/war/package.json b/war/package.json index 0466a98c8b52..d44a45f8cd2c 100644 --- a/war/package.json +++ b/war/package.json @@ -39,7 +39,7 @@ "postcss-preset-env": "9.1.1", "postcss-scss": "4.0.7", "prettier": "3.0.2", - "sass": "1.65.1", + "sass": "1.66.0", "sass-loader": "13.3.2", "style-loader": "3.3.3", "stylelint": "15.10.2", diff --git a/war/yarn.lock b/war/yarn.lock index 69141cdd076d..432c19b91922 100644 --- a/war/yarn.lock +++ b/war/yarn.lock @@ -4369,7 +4369,7 @@ __metadata: postcss-preset-env: 9.1.1 postcss-scss: 4.0.7 prettier: 3.0.2 - sass: 1.65.1 + sass: 1.66.0 sass-loader: 13.3.2 sortablejs: 1.15.0 style-loader: 3.3.3 @@ -6412,16 +6412,16 @@ __metadata: languageName: node linkType: hard -"sass@npm:1.65.1": - version: 1.65.1 - resolution: "sass@npm:1.65.1" +"sass@npm:1.66.0": + version: 1.66.0 + resolution: "sass@npm:1.66.0" dependencies: chokidar: ">=3.0.0 <4.0.0" immutable: ^4.0.0 source-map-js: ">=0.6.2 <2.0.0" bin: sass: sass.js - checksum: 33e325fc80cd07489992e0814cd4929496f87493ffe78c423c2dbafa5746a574e6f3bde20c2a3e4ea47b16ee3d6bc5afcf1d36b405227b829d6c4c9ddcc7f8e2 + checksum: ae292e6a41a8812c0206c528885969e2f6f35870397e6d5bc33477927fd09faffda196aefe2cfe49e0c57f1448129b522f845bb134f3b6a131b184e3be86cf92 languageName: node linkType: hard From a4589ec6d86b7b08794da7e4c9714ccdc0864eff Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 21 Aug 2023 12:51:21 -0700 Subject: [PATCH 18/32] Bump org.apache.ant:ant from 1.10.13 to 1.10.14 (#8405) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- bom/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bom/pom.xml b/bom/pom.xml index 537d08f11a36..f2373994789c 100644 --- a/bom/pom.xml +++ b/bom/pom.xml @@ -189,7 +189,7 @@ THE SOFTWARE. org.apache.ant ant - 1.10.13 + 1.10.14 org.apache.commons From 7a783c3e175543db8b94128b760ff95b484fbaac Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 21 Aug 2023 12:52:11 -0700 Subject: [PATCH 19/32] Bump org.springframework.security:spring-security-bom from 5.8.5 to 5.8.6 (#8407) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- bom/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bom/pom.xml b/bom/pom.xml index f2373994789c..7f0162f63cf5 100644 --- a/bom/pom.xml +++ b/bom/pom.xml @@ -64,7 +64,7 @@ THE SOFTWARE. org.springframework.security spring-security-bom - 5.8.5 + 5.8.6 pom import From e9886db619e511a5acf8a873d51b13591dcf9c47 Mon Sep 17 00:00:00 2001 From: Jan Faracik <43062514+janfaracik@users.noreply.github.com> Date: Mon, 21 Aug 2023 22:23:41 +0100 Subject: [PATCH 20/32] Move app bar for plugins (#8376) * Move app bar for plugins, make sidebar sticky * Update _updateSite.js * Remove sticky side panel --- core/src/main/resources/hudson/PluginManager/available.jelly | 2 -- core/src/main/resources/hudson/PluginManager/installed.jelly | 2 -- core/src/main/resources/hudson/PluginManager/sidepanel.jelly | 1 + core/src/main/resources/hudson/PluginManager/updates.jelly | 2 -- war/src/main/scss/form/search-bar.scss | 1 + 5 files changed, 2 insertions(+), 6 deletions(-) diff --git a/core/src/main/resources/hudson/PluginManager/available.jelly b/core/src/main/resources/hudson/PluginManager/available.jelly index 212deb493567..b0fa8f8fe5a3 100644 --- a/core/src/main/resources/hudson/PluginManager/available.jelly +++ b/core/src/main/resources/hudson/PluginManager/available.jelly @@ -32,8 +32,6 @@ THE SOFTWARE. - -
- - diff --git a/core/src/main/resources/hudson/PluginManager/sidepanel.jelly b/core/src/main/resources/hudson/PluginManager/sidepanel.jelly index 6c45382c9e03..21755b32072d 100644 --- a/core/src/main/resources/hudson/PluginManager/sidepanel.jelly +++ b/core/src/main/resources/hudson/PluginManager/sidepanel.jelly @@ -28,6 +28,7 @@ THE SOFTWARE. + diff --git a/core/src/main/resources/hudson/PluginManager/updates.jelly b/core/src/main/resources/hudson/PluginManager/updates.jelly index 6bf1982d89fe..25402731273b 100644 --- a/core/src/main/resources/hudson/PluginManager/updates.jelly +++ b/core/src/main/resources/hudson/PluginManager/updates.jelly @@ -35,8 +35,6 @@ THE SOFTWARE. - -
Date: Mon, 21 Aug 2023 23:25:19 +0200 Subject: [PATCH 21/32] [JENKINS-71848] Remove admin monitors popup from `/manage/` again (#8388) [JENKINS-71848] Remove admin monitors popup from /manage/ again Co-authored-by: Daniel Beck --- .../management/AdministrativeMonitorsDecorator.java | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/core/src/main/java/jenkins/management/AdministrativeMonitorsDecorator.java b/core/src/main/java/jenkins/management/AdministrativeMonitorsDecorator.java index eb9685f54ba0..cc1d5214e0ae 100644 --- a/core/src/main/java/jenkins/management/AdministrativeMonitorsDecorator.java +++ b/core/src/main/java/jenkins/management/AdministrativeMonitorsDecorator.java @@ -28,6 +28,7 @@ import hudson.Extension; import hudson.diagnosis.ReverseProxySetupMonitor; import hudson.model.AdministrativeMonitor; +import hudson.model.ManageJenkinsAction; import hudson.model.PageDecorator; import hudson.util.HudsonIsLoading; import hudson.util.HudsonIsRestarting; @@ -53,9 +54,6 @@ public class AdministrativeMonitorsDecorator extends PageDecorator { private final Collection ignoredJenkinsRestOfUrls = new ArrayList<>(); public AdministrativeMonitorsDecorator() { - // redundant - ignoredJenkinsRestOfUrls.add("manage"); - // otherwise this would be added to every internal context menu building request ignoredJenkinsRestOfUrls.add("contextMenu"); @@ -165,6 +163,11 @@ public Collection getMonitorsToDisplay() { return null; } + // Don't show on Manage Jenkins + if (o instanceof ManageJenkinsAction) { + return null; + } + // don't show for some URLs served directly by Jenkins if (o instanceof Jenkins) { String url = a.getRestOfUrl(); From c1a6c6c9ddf432e8eae3db68d3ee13c1f762d785 Mon Sep 17 00:00:00 2001 From: Markus Winter Date: Mon, 21 Aug 2023 23:27:55 +0200 Subject: [PATCH 22/32] Replace hetero-list YUI button and menu with new style button and tippy.js menu (#8340) * refresh hetero-list UI use new button style replace the YUI menu with a tippy menu * fix lint errors * avoid blanks * prettier * keep button in div * fix test * fix test #2 * convert inputs to buttons for plugins * prettier * remove unnecessary style definition * remove adjunct * adjust filter --------- Co-authored-by: Tim Jacomb <21194782+timja@users.noreply.github.com> --- .../filter-menu-button/filter-menu-button.js | 70 ----- .../main/resources/lib/form/hetero-list.jelly | 5 +- .../lib/form/hetero-list/hetero-list.js | 201 ------------- .../test/java/lib/form/HeteroListTest.java | 8 +- .../js/components/dropdowns/hetero-list.js | 276 ++++++++++++++++++ war/src/main/js/components/dropdowns/index.js | 2 + .../main/js/components/dropdowns/templates.js | 9 +- war/src/main/js/components/dropdowns/utils.js | 9 +- war/src/main/js/util/keyboard.js | 50 +++- war/src/main/js/util/symbols.js | 2 + war/src/main/scss/modules/buttons.scss | 3 +- war/src/main/scss/modules/dropdowns.scss | 46 ++- 12 files changed, 389 insertions(+), 292 deletions(-) delete mode 100644 core/src/main/resources/lib/form/filter-menu-button/filter-menu-button.js delete mode 100644 core/src/main/resources/lib/form/hetero-list/hetero-list.js create mode 100644 war/src/main/js/components/dropdowns/hetero-list.js diff --git a/core/src/main/resources/lib/form/filter-menu-button/filter-menu-button.js b/core/src/main/resources/lib/form/filter-menu-button/filter-menu-button.js deleted file mode 100644 index e81ccc43fe7a..000000000000 --- a/core/src/main/resources/lib/form/filter-menu-button/filter-menu-button.js +++ /dev/null @@ -1,70 +0,0 @@ -// prettier-ignore -window.createFilterMenuButton = function ( - button, - menu, - menuAlignment, - menuMinScrollHeight -) { - var MIN_NUM_OPTIONS = 5; - var menuButton = new YAHOO.widget.Button(button, { - type: "menu", - menu: menu, - menualignment: menuAlignment, - menuminscrollheight: menuMinScrollHeight, - }); - - var filter = _createFilterMenuButton(menuButton._menu); - - menuButton._menu.element.appendChild(filter); - menuButton._menu.showEvent.subscribe(function () { - _applyFilterKeyword(menuButton._menu, filter.firstElementChild); - filter.style.display = - _getItemList(menuButton._menu).children.length >= MIN_NUM_OPTIONS - ? "" - : "NONE"; - }); - menuButton._menu.setInitialFocus = function () { - setTimeout(function () { - filter.firstElementChild.focus(); - }, 0); - }; - - return menuButton; -}; - -function _createFilterMenuButton(menu) { - const filterInput = document.createElement("input"); - filterInput.classList.add("jenkins-input"); - filterInput.setAttribute("placeholder", "Filter"); - filterInput.setAttribute("spellcheck", "false"); - filterInput.setAttribute("type", "search"); - - filterInput.addEventListener("input", (event) => - _applyFilterKeyword(menu, event.currentTarget), - ); - filterInput.addEventListener("keypress", (event) => { - if (event.key === "Enter") { - event.preventDefault(); - } - }); - - const filterContainer = document.createElement("div"); - filterContainer.appendChild(filterInput); - - return filterContainer; -} - -function _applyFilterKeyword(menu, filterInput) { - const filterKeyword = (filterInput.value || "").toLowerCase(); - const itemList = _getItemList(menu); - let item, match; - for (item of itemList.children) { - match = item.innerText.toLowerCase().includes(filterKeyword); - item.style.display = match ? "" : "NONE"; - } - menu.align(); -} - -function _getItemList(menu) { - return menu.body.children[0]; -} diff --git a/core/src/main/resources/lib/form/hetero-list.jelly b/core/src/main/resources/lib/form/hetero-list.jelly index 66fe2dd91773..b817c936c4e8 100644 --- a/core/src/main/resources/lib/form/hetero-list.jelly +++ b/core/src/main/resources/lib/form/hetero-list.jelly @@ -107,8 +107,6 @@ THE SOFTWARE. - -
@@ -156,7 +154,8 @@ THE SOFTWARE.
- +
diff --git a/core/src/main/resources/lib/form/hetero-list/hetero-list.js b/core/src/main/resources/lib/form/hetero-list/hetero-list.js deleted file mode 100644 index a51423bf6e0b..000000000000 --- a/core/src/main/resources/lib/form/hetero-list/hetero-list.js +++ /dev/null @@ -1,201 +0,0 @@ -// @include lib.form.filter-menu-button.filter-menu-button - -// do the ones that extract innerHTML so that they can get their original HTML before -// other behavior rules change them (like YUI buttons.) -Behaviour.specify( - "DIV.hetero-list-container", - "hetero-list", - -100, - function (e) { - if (isInsideRemovable(e)) { - return; - } - - // components for the add button - var menu = document.createElement("SELECT"); - // In case nested content also uses hetero-list - var btn = Array.from(e.querySelectorAll("INPUT.hetero-list-add")).pop(); - if (!btn) { - return; - } - YAHOO.util.Dom.insertAfter(menu, btn); - - var prototypes = e.lastElementChild; - while (!prototypes.classList.contains("prototypes")) { - prototypes = prototypes.previousElementSibling; - } - var insertionPoint = prototypes.previousElementSibling; // this is where the new item is inserted. - - // extract templates - var templates = []; - var children = prototypes.children; - for (var i = 0; i < children.length; i++) { - var n = children[i]; - var name = n.getAttribute("name"); - var tooltip = n.getAttribute("tooltip"); - var descriptorId = n.getAttribute("descriptorId"); - // YUI Menu interprets this