Commit Graph
920 Commits
Author SHA1 Message Date
Tim Lander e9ee7ee3aa Stop premature scroll bar on long build labels
The build name width did not take into account the width/offset of the build icon. This resulted in a scroll bar being added prematurely.
Screenshot of change: https://i.imgur.com/RmercIT.png
2018-08-03 10:57:43 +08:00
Thorsten Scherler 90670e05c1 [JENKINS-50447] New design and slim down of login page (#3380)
* [JENKINS-50447] New design and slim down of login page

The change will provide a new designed login page that is using no external deps to prevent any possible malvious javascript.
We still allow the user to use the legacy login page, which has not changed the behaviour.

[JENKINS-50447] Implement error case and use final svg jenkins logo

[JENKINS-50447] remove mock up logo

[JENKINS-50447] Fix feet back from jlong

[JENKINS-50447_squash] Use theme css which only contains values to be overriden. Drop ie js since with the theme css it is not needed anymore

* [JENKINS-50447_squash] Fix expression to evaluate when to show an error and when to simply redirect

* eslint - formating changes and fix offences

* [JENKINS-50447_squash] Use system property to controll whether or not to use the legacy login

* [JENKINS-50447_squash] prevent that the jsessionId appears in the url which should fix most tests

* [JENKINS-50447_squash] Fix cli test by adding pageDecorators magic from layout.jelly

* [JENKINS-50447_squash] remove pageDecorators because they assume existence of js that we do not have

* [JENKINS-50447] New design and slim down of login page

The change will provide a new designed login page that is using no external deps to prevent any possible malvious javascript.
We still allow the user to use the legacy login page, which has not changed the behaviour.

[JENKINS-50447] Implement error case and use final svg jenkins logo

[JENKINS-50447] remove mock up logo

[JENKINS-50447] Fix feet back from jlong

[JENKINS-50447_squash] Use theme css which only contains values to be overriden. Drop ie js since with the theme css it is not needed anymore

[JENKINS-50447_squash] Fix expression to evaluate when to show an error and when to simply redirect

eslint - formating changes and fix offences

[JENKINS-50447_squash] Use system property to controll whether or not to use the legacy login

[JENKINS-50447_squash] prevent that the jsessionId appears in the url which should fix most tests

[JENKINS-50447_squash] Fix cli test by adding pageDecorators magic from layout.jelly

[JENKINS-50447_squash] remove pageDecorators because they assume existence of js that we do not have

[JENKINS-50447_squash] make login page extensible with pagedecorators

[JENKINS-50447_squash] drop legacy support

* Make theme customisable by using a magic package for css and header. Limiting the implemetation of those to one.

* [JENKINS-50447_squash] Creating a specific decorator for login which only returns one instance

* [JENKINS-50447_squash] using rounded corner

* JENKINS-50447 remove legacy code

* [JENKINS-50447_squash] Fix comments from @amuniz about javadoc and uniqueness of css for login

* [JENKINS-50447_squash] Fix click on label span to toggle the select of the checkbox

* [JENKINS-50447_squash] fix comments from @daniel-beck

* [JENKINS-50447_squash] Fix license headers

* [JENKINS-50447_squash] Implement loading/restarting and signup with same design

* [JENKINS-50447_squash] Implement the loading/restarting view and signup with same design as the login page

* [JENKINS-50447_squash] Remove limitation that only one validation error can be shown at a time

* [JENKINS-50447_squash] implement password strength checker

* [JENKINS-50447_squash] Fix different comments from @daniel-beck regarding titles. Further enhanced spacing of label and input

* [JENKINS-50447_squash] Fix restart screen css. Fix comments regarding signup page.

* [JENKINS-50447_squash] fix tabindex flow

* harmonize design
- of checkboxes using jdl styles.
- distance of headers

* [JENKINS-50447] Fix comments from @daniel-beck
- fix some accessibility issues
-- html has now a lang tag
-- define main region
- fix missplaced }
- fix when server down for real that we still show the loading page

* [JENKINS-50447_squash] should never ended up here
2018-06-17 18:02:37 +02:00
Josh Soref 83420bcb3e grammar improvements for patternJobNamingStrategy
whether or not
conform ... conforms
2018-05-28 00:18:50 -04:00
Wadeck Follonier 17b94a044a [JENKINS-31661] Check the root url (Admin monitor + Wizard) (#3082)
* [JENKINS-31661] Add an administrative monitor to check the root url configuration
- add the monitor + test

* - corrections requested by Oleg in code review

* - add a field to fill during SetupWizard for the rootUrl (default value using javascript but editable)
- WIP : missing the translation

* - revert whitespace change

* - little refactoring of js methods

* - translation added

* - modification requested during PR by Jesse

* - renaming proposed by Keith

* - rework to have a new page in the SetupWizard for the root URL

* Correct relevant non-conflicting merge changes

* - in case of skip => also skip the instance configuration
- terminate => finish (+ uppercase)
- replace double single quotes
- add help message in the wizard to inform admins
- correct the installState serialization problem
- update working (admin monitor + wizard)

* address Daniel's comment
- skip all steps will show two messages instead of one (like before when clicking on skip twice)
- skip => not now
- remove margin and adjust padding for the wizard forms
- add the "if possible"

* address Arnaud's comment on the sauter vs passer

* address Liam's comment

* correct previous commit typo

* correct previous commit typo (2)

* add blank end line

* address James' comment

* address Daniel's comment

* address Devin's comment
- implement error management in the wizard
- provide different message in the monitor in case of null / invalid url
- add an helper to validate URL (even with _ in domain)
- add @Restricted

* - also update the monitor test to be consistent with its new behavior

* address Devin's comments

* correct header files

* include relevant classes for the url validation from commons-validator:1.6

* Move Apache classes in a more standard package
2018-04-26 16:58:29 +02:00
Kohsuke Kawaguchi bcab1f086f [INFRA-1502] bake the new UC root CA.
The current UC root CA will expire in 2021. Since this key certificate
is baked into jenkins.war, it needs a plenty of time to rotate. I think
two years window would be sufficient, but since I looked, we might as
well start now.

The new key is also now 4096 bits, upgraded from previous 2048 bits.

I've also used the opportunity to remove old hudson-community root CA,
which was used during the transition period from me leaving Sun and the
birth of Jenkins. It's been long since we stopped using this cert, so no
need to honor it anymore.
2018-04-08 13:03:22 -07:00
ikedam d0ff4135e9 [FIXED JENKINS-21613] combobox now recovers form.onsubmit to the one just before override. 2018-03-25 12:37:44 +09:00
Sorin Sbarnea a30ada7907 [JENKINS-47020] - Improve job search experience (#3324)
* Increase search results limit from 20 to 100

Signed-off-by: Sorin Sbarnea <ssbarnea@redhat.com>

* Enlarge search box size

Increase the max number of results from 10 to 25.
Increase width of results from 25em to 35em
in order to suit longer job names.

This still fits even small 13" screens and improves
user experience.

Signed-off-by: Sorin Sbarnea <ssbarnea@redhat.com>
2018-03-24 12:09:34 +01:00
Jesse Glick 7948315142 [JENKINS-46386] Make SystemProperties safe to call from agent JVMs. 2018-03-21 16:24:26 -04:00
Daniel Beck 9bc4c95d44 Revert "Merge pull request #3277 from uhafner/prototype-1.7.3"
This reverts commit 46510e2d2d, reversing
changes made to 29f146c7c2.
2018-03-11 13:23:45 +01:00
Literallie 12031d7d59 [JENKINS-45387] Fix validation error displaying in setup wizard's "create first admin" form (#3116)
* [JENKINS-45387] Improve setup wizard account creation in security realm

This commit adds an additional account creation method to the
security realm, that allows to create a new user account (as the system)
and is intended to be used by the setup wizard.

The main difference to the existing method is that the new method does
not force the Stapler to send a response, but instead throws an
exception if invalid data is submitted. This allows to call this from
the setup wizard, and send the response there. (This is necessary
because the setup wizard method has a response return type and
there is no way to access the response already send in the realm)

Further, it splits the private createAccount() method for
clarity as well as to allow code reuse from the new method.

* [JENKINS-45387] Fix SetupWizard sending responses twice on create admin

This commit fixes an issue where the SetupWizard class would send
two responses (indirectly) when invalid form data was provided for
creating the first admin account.

* [Fix JENKINS-45387] Setup wizard not displaying first account errors

This commit fixes the setup wizard not displaying HTML error
responses upon first account creation.

Previously, it just froze (buttons were not re-enabled) and didn't
display responses. (Probably caused by XSS policies on the iframe)

* [JENKINS-45387] Add some @Restricted annotations

As per
https://github.com/jenkinsci/jenkins/pull/3116#discussion_r172031063
https://github.com/jenkinsci/jenkins/pull/3116#discussion_r172051979
2018-03-08 00:06:57 +01:00
kshultzCB 898291b233 Very small readability change to some inline help 2018-03-06 11:40:56 -05:00
Oleg Nenashev 6117535d66 Merge pull request #3322 from suren-jenkins/suren-zh
Add Chinese translation
2018-03-04 15:34:35 +01:00
surenpi 7d8dcaad78 Add Chinese translation 2018-03-03 23:02:13 +08:00
Oleg Nenashev 46510e2d2d Merge pull request #3277 from uhafner/prototype-1.7.3
[FIXED JENKINS-49319] Upgrade to PrototypeJS 1.7.3
2018-03-03 12:49:12 +01:00
suren 5fafb0bd1b Add Chinese translation (#3287)
* Add Chinese translation for Job Naming Strategy

* Add Chinese translation

* Localized for apply component
2018-02-28 10:24:14 +01:00
John Lamb e0070aa698 Improve sortable.js to work with BFA table (#3125)
* Improve sortable.js to work with BFA table

The Failure Cause Management table generated by the Build Failure
Analyzer
plugin (<https://wiki.jenkins.io/display/JENKINS/Build+Failure+Analyzer>)
doesn't render dates in a manner that sortable.js can recognize. This
commit improves the matching and sorting for date-like strings to
accommodate a broader variety of date/time strings, and uses the js Date
class to ensure accurate greater/equal/less than results.

* Remove commented patterns in sortable.js
2018-02-24 15:11:35 +01:00
Kseniia Nenasheva 5c8cc45900 [JENKINS-49387][JENKINS-49520] - Validation errors (#3292)
* Fixes for validation

* Fix for an empty agent.nExecutors
2018-02-18 12:05:52 +01:00
tfennelly 88aec821d9 Removed prototypejs extended create syntax support check (always returning false) 2018-02-04 00:55:45 +01:00
Kohsuke Kawaguchi 96ceca6d0e [JENKINS-11618] Adding back the 'toJSON' instance method.
This change, in parallel to a fix in stapler bind.js, would maximize the
backward compatibility.
2018-02-04 00:55:18 +01:00
Kohsuke Kawaguchi 3ebecc3cf7 Backporting 918fc6e6ca
made to work with <textarea>s, too.

git-svn-id:
https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@8172
71c3de6d-444a-0410-be80-ed276b4c234a
2018-02-04 00:54:00 +01:00
Kohsuke Kawaguchi 182da887b0 Disabling automatic JSON evaluation.
This is an adopted version of 8b1e071d22.
Since 1.7 has a flag to disable this behaviour, I think a better fix is
to disable this flag by default.
2018-02-04 00:50:59 +01:00
Kohsuke Kawaguchi 8d31484297 Cherry-picking c6acb5b8d5 2018-02-04 00:50:34 +01:00
Kohsuke Kawaguchi 54e654faec [JENKINS-11618] backporting the fix here.
I actually applied the diff from
6904bb61e31595b70260840937114e79a646da5d in keyboard-shortcuts-plugin
2018-02-04 00:49:56 +01:00
Ulli Hafner 3d2e29bc4d Revert "Reverted to plain vanilla 1.7."
This reverts commit a5aa65fae4.
2018-02-04 00:36:54 +01:00
Ulli Hafner a5aa65fae4 Reverted to plain vanilla 1.7. 2018-02-03 20:14:08 +01:00
Ulli Hafner 5ed43002d7 [FIXED JENKINS-49319] Upgrade to Prototype 1.7.3. 2018-02-01 21:17:34 +01:00
Kseniia Nenasheva 2eda7816e8 [JENKINS-47793] - Jenkins master and agent configuration pages do not verify negative executor numbers (#3141)
* Fixed Regexps for number & positive-number

* Progress saving

* Fix for validation

* bug fixing

* bug fixing

* Address comments

* Address comments

* Address comments from @jglick

* Whitespace cleanup

* Address comment for @jglick
2018-01-30 17:33:53 +01:00
Manuel Recena 6f2769e69a [JENKINS-43786] Overhaul of Manage Jenkins page (#2857)
* [JENKINS-43786] Initial source code modifications

* [JENKINS-43786] Adding a customized Bootstrap version and some messages were adapted

* [JENKINS-43786] Some Monitors included in the core have been adapted

* [JENKINS-43786] Reverting an unexisting typo

* [JENKINS-43786] Applying final styles

* [JENKINS-43786] Addressing more use cases

* [JENKINS-43786] Revisiting how the buttons are shown

* [JENKINS-43786] Adjustments in the administrative monitor pop-up

* [JENKINS-43786] Added more use cases related with administrative messages

* [JENKINS-43786] Adapted the Administrative Monitors provided by Jenkins core

* [JENKINS-43786] Addressed the @daniel-beck's review

* [JENKINS-43786] Wrong indent

* [JENKINS-43786] Better semantic HTML

* [JENKINS-43786] Better semantic HTML

* [JENKINS-43786] Applying the same criteria for listing items

* [JENKINS-43786] Adapted tests

* [JENKINS-43786] Removing redirect links in the administrative monitor descriptions

* [JENKINS-43786] Adapted Administrative Monitor

* [JENKINS-43786] Reverted Redirect URLs

* [JENKINS-43786] Applying the same code style

* [JENKINS-43786] Applying the same code style

* [JENKINS-43786] Apply a common HTML markup to the Administrative Monitors in core

* [JENKINS-43786] One more Administrative Monitor updated

* [JENKINS-43786] Polishing some details

* [JENKINS-43786] Deprecating CSS Styles

* [JENKINS-43786] We are ready for deprecating anything

* [JENKINS-43786] We are ready for deprecating anything

* [JENKINS-43786] Details
2018-01-21 14:28:51 +01:00
Manuel Blechschmidt d9d3efb10d * JENKINS-48957 exclude whole jaxrs otherwise jackson is automatically added 2018-01-16 10:30:07 +01:00
Manuel Blechschmidt 6923dbc4f8 * JENKINS-48957 added jboss-deployment-structure to remove using of jackson from wildfly 2018-01-16 09:25:17 +01:00
Jez Halford cf9885bdb1 Revert the logo 2018-01-09 11:40:35 +00:00
surenpi 72224fabb3 typo fixed 2017-12-27 09:01:21 +08:00
Baptiste Mathus 23677fee49 Critical favicon change :-) 2017-12-24 14:39:05 +01:00
surenpi 24442d8d24 Add Chinese translation for parameter build 2017-12-16 17:54:20 +08:00
surenpi eb7582a53d Add Chinese translation for slave agent configure 2017-12-15 21:07:16 +08:00
surenpi ed80256916 Add Chinese translation 2017-12-06 11:58:49 +08:00
Francisco Javier Fernandez Gonzalez 9b4e831c13 [JENKINS-48080] Shows errors 2017-11-29 13:58:02 +01:00
Kseniia Nenasheva 95db56e850 [JENKINS-47115] - Add trim option to String Parameter (#3106)
* [JENKINS-47115] - Add trim option to String Parameter

* Add help information

* Address comments

* Address comments

* Address comments

* Address comments
2017-11-12 15:49:11 +01:00
Jesse Glick 209a5ad1a5 Merge commit 'c2aca606e3dc45384c38785e1ced4780733bd906' into security-master 2017-10-30 10:18:02 -04:00
Jesse Glick 474a9891a3 Merge branch 'security-stable-2.73' into security-master 2017-10-24 12:02:35 -04:00
Jesse Glick 4d67aea8aa Merge branch 'security-stable-2.60' into security-stable-2.73 2017-10-24 12:02:24 -04:00
Jesse Glick 44a7a871e4 Merge branch 'security-stable-2.46' into security-stable-2.60 2017-10-24 12:02:12 -04:00
Daniel Beck f67068170b [SECURITY-641] Escape autocompletion suggestions 2017-10-24 12:01:03 -04:00
Alessandro Menti 2934c7b945 Update the Italian localization 2017-10-12 20:34:05 +02:00
Bernhard Grünewaldt 3bc9c86556 Rss Bar and Legend Link (Job List Footer) Added Classes and IDs to enable easy styling for external themes (#2989)
* ui classes to enable easy styling

* fix align right html to css

* move css to style.css

* Revert "move css to style.css"

This reverts commit f26162a0f3.

* move css to style.css (without unrelated spaces changed)

* remove ids and use classes
2017-09-02 18:50:17 -07:00
Alexander Shopov 252564aa69 Bulgarian translation of HTML files 2017-08-20 12:37:16 +02:00
Daniel Beck 2e6e619935 [JENKINS-45459] Fix 'shortened' Jenkins version in upgrade wizard 2017-07-12 00:05:57 +02:00
Xi Qi df21a13cd6 [FIXED JENKINS-44417] - Fix Warning image size to support retina display (#2306) 2017-05-22 14:10:50 +02:00
kzantow c553801a2b JENKINS-41778 - setup wizard issues when failures
(cherry picked from commit a3bf6a9801)
2017-05-02 15:21:42 +02:00
Jesse Glick 12647e5a03 Merge branch 'security-stable-2.46' into security-master 2017-04-18 17:10:34 -04:00