Commit Graph
32590 Commits
Author SHA1 Message Date
Baptiste Mathus bd2cb36a87 Be less dramatic with the dataloss criteria
As requested especially by Sam
2018-01-07 23:26:51 +01:00
Oleg Nenashev a79fdaa4b3 Revert "[JENKINS-46911] createProjectFromXML not recognizing unsafe character…" (#3218)
* Revert "[JENKINS-48447] Fixed HTTP 404 error when clicking on newView sidebar link from an other view. (#3178)"

This reverts commit 6df06fc19a.

* Revert "[JENKINS-46911] createProjectFromXML not recognizing unsafe character… (#3057)"

This reverts commit ac2a1aaf89.
2018-01-07 18:26:57 +01:00
Jochen A. Fürbacher 6df06fc19a [JENKINS-48447] Fixed HTTP 404 error when clicking on newView sidebar link from an other view. (#3178)
* [JENKINS-48447] Fixed HTTP 404 error when clicking on newView sidebar link from an other view.

* [JENKINS-48447] Fixed unit tests for NewViewLink

* [JENKINS-48447] Load url name each time object gets initialized and adapted tests.

* [JENKINS-48447] Rewrite tests for url name; fixed indenting.

* [JENKINS-48447] Fixed more identing.

* [JENKINS-48447] Added @Restricted to NewViewLink; undo URL_NAME renaming.
2018-01-07 14:43:49 +01:00
godfath3r ac2a1aaf89 [JENKINS-46911] createProjectFromXML not recognizing unsafe character… (#3057)
* [JENKINS-46911] createProjectFromXML not recognizing unsafe character '/'

* Better place for testCreateProjectCheckGoodName()

* Fix failed test

* Make changes suggested on PR review.

* Remove Failure exception, instead throw IOException. Add javadoc

* [JENKINS-46911] - Add TODO according to the comment from @jtnord.
2018-01-07 14:39:10 +01:00
Oleg Nenashev cabc857315 Merge pull request #3216 from suren-jenkins/suren-console
Add console Chinese translation
2018-01-07 14:34:11 +01:00
Gentle Yang adba0d3917 translate into Chinese (simplified) under install/SetupWizard/ (#3204)
* Create pluginSetupWizard_zh_CN.properties

* Create client-scripts_zh_CN.properties

* Create setupWizardFirstUser_zh_CN.properties

* Create proxy-configuration_zh_CN.properties

* Update setupWizardFirstUser_zh_CN.properties

* Create authenticate-security-token_zh_CN.properties

* Update client-scripts_zh_CN.properties

* Update pluginSetupWizard_zh_CN.properties

* Update client-scripts_zh_CN.properties

* Update authenticate-security-token_zh_CN.properties

* Update setupWizardFirstUser_zh_CN.properties

* Update proxy-configuration_zh_CN.properties

* Update pluginSetupWizard_zh_CN.properties

* Update pluginSetupWizard_zh_CN.properties

* Update pluginSetupWizard_zh_CN.properties

* fixed build error
2018-01-07 11:07:51 +01:00
Oleg Nenashev 96c38bec48 Merge pull request #3214 from jglick/UncaughtExceptionHandler-EOFException
UncaughtExceptionHandler should avoid reporting EOFException
2018-01-07 11:03:08 +01:00
Oleg Nenashev 93bf06335d Merge pull request #3179 from Wadeck/NEW_JOB_SMALL_CORR_FR_LANG
Correction of quote for French + space before colon
2018-01-06 17:30:09 +01:00
Oleg Nenashev c001ecf591 Merge pull request #3209 from suren-jenkins/suren-zh
Add Chinese translation
2018-01-06 17:29:15 +01:00
Jesse Glick 358f6e86f4 UncaughtExceptionHandler should avoid reporting EOFException. 2018-01-05 13:39:14 -05:00
Jesse Glick dbc8b71f59 hudson.plugins.mercurial.PipelineTest.multipleSCMs failed to call FilePath.toURI. 2018-01-05 13:10:51 -05:00
Alon Bar-Lev 52ff066b71 [JENKINS-47043] Introduce exit lifecycle to exit instead of restart
If hudson.lifecycle.ExitLifecycle is selected, jenkins will exit when
restart is requested. Exit code is taken out of
jenkins.model.Jenkins.exitCodeOnRestart, default is 5.

This is usable when there is an external watchdog such as SystemD.

SystemD service example:

   ExecStart=@/usr/bin/java jenkins $JAVA_OPTIONS -DJENKINS_HOME=${JENKINS_HOME} -Dhudson.lifecycle=hudson.lifecycle.ExitLifecycle -Djenkins.model.Jenkins.exitCodeOnRestart=55 -jar $JENKINS_WAR --debug=${JENKINS_DEBUG_LEVEL} --httpPort=${JENKINS_PORT} --httpListenAddress=${JENKINS_LISTEN_ADDRESS} $JENKINS_ARGS

Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
2018-01-05 13:42:57 +02:00
Jesse Glick 6d49377c8d EmptyImmutableList needed for Workflow 1.12- prior to https://github.com/jenkinsci/pipeline-plugin/pull/213 as demonstrated by CoberturaPublisherPipelineTest with https://github.com/jenkinsci/cobertura-plugin/pull/90. 2018-01-04 14:32:40 -05:00
Jesse Glick 1a8b8f46ba Noting target version for merge of https://github.com/jenkinsci/git-client-plugin/pull/290. 2018-01-04 14:07:38 -05:00
Jesse Glick ba5516aa7c Merge branch 'master' into whitelist-JENKINS-47736 2018-01-04 14:03:26 -05:00
Baptiste Mathus 3a5189ebc8 Introduce flags to disable force per instance or globally
The goal here is to:
* be able to selectively choose performance over integrity in some very
  specific cases
* be able to globally disable AtomicFileWriter integrity, and basically
  revert to previous behaviour by setting a system property.
  This flag is meant as an emergency one in case something goes very
  wron on some production system.
2018-01-04 14:35:39 +01:00
Kohsuke Kawaguchi c4e912900b [maven-release-plugin] prepare for next development iteration 2018-01-03 15:48:04 -08:00
Kohsuke Kawaguchi 5707ff1766 [maven-release-plugin] prepare release jenkins-2.100 jenkins-2.100 2018-01-03 15:48:04 -08:00
Jesse Glick 710c6e4b30 Merge branch 'master' into whitelist-JENKINS-47736 2018-01-03 17:54:45 -05:00
Oleg Nenashev 8eb4254b0f Merge pull request #3212 from oleg-nenashev/bug/JENKINS-48761-remoting-API
[JENKINS-48761] - Restore binary compatibility with agents running old Remoting versions
2018-01-03 23:35:56 +01:00
Oleg Nenashev 01b8ed8c71 [JENKINS-48761] - Address review comments from @jglick 2018-01-03 20:59:11 +01:00
Daniel Beck e9ecbb326c Merge pull request #3201 from dwnusbaum/JENKINS-48604
[JENKINS-48604] Do not downgrade plugins that are dependencies of detached plugins when upgrading Jenkins

(cherry picked from commit 1dc2c6d5ff)
2018-01-03 15:01:35 +01:00
Oleg Nenashev 0319362666 Merge pull request #3193 from dwnusbaum/JENKINS-48365
[JENKINS-48365] Install detached plugins when upgrading Jenkins past the version the plugins were detached

(cherry picked from commit 968b6adf00)
2018-01-03 15:01:11 +01:00
Johno Crawford 065d3c8303 [JENKINS-48505] Invoke optimistic before computeIfAbsent to avoid contention.
(cherry picked from commit dce450e1b4)
2018-01-03 14:58:34 +01:00
Jan Zuchhold 49ee85a1e7 [JENKINS-48593] - Add getSystemProperty(key) to fix hudson.consoleTailKB system property (#3200)
* Add getSystemProperty(key) to fix hudson.consoleTailKB system property

* Add Javadoc, @Restricted and delegate to SystemProperties

These changes were requested by @daniel-beck.

* PR was not merged in time for 2.96

* Changes as requested by @oleg-nenashev

(cherry picked from commit 006c51256e)
2018-01-03 14:52:21 +01:00
Oleg Nenashev 08444b29c6 Merge pull request #3164 from fcojfernandez/JENKINS-48080
[JENKINS-48080] Setup Wizard hangs if confirm password is incorrect while creating admin user

(cherry picked from commit b3ebef20ec)
2018-01-03 14:18:14 +01:00
Alexander Akbashev 8fa79061bb [FIX JENKINS-48349] Cache permission id to avoid allocating of new strings
Every request that comes from Jelly is checked against Permissions.
As result it leads to a call of `getId` method that produces the new string.
Usually it's not a problem, but in case of stop-the-world pause user requests are accumulated.
So, once pause is finished, we forcibly allocated tons of strings for
every request. That leads to new stop-the-world pause. (And this cycle
can repeat multiple times)

(cherry picked from commit b2c40cb9e0)
2018-01-03 14:10:36 +01:00
Oleg Nenashev 8a34983d45 [JENKINS-48761] - Create a smoke test for old agents 2018-01-03 13:19:48 +01:00
Oleg Nenashev 6d44f7e080 [JENKINS-48766] - Create restricted API for getting info about Remoting versions 2018-01-03 11:59:24 +01:00
surenpi 7d407a6ec0 Add console Chinese translation 2018-01-03 15:52:49 +08:00
Oleg Nenashev cf1589734f [JENKINS-48761] - Use pre-Remoting 3.0 ChannelClosedException APIs 2018-01-02 22:24:26 +01:00
Oleg Nenashev 4eb314b327 [JENKINS-48761] - Restore binary compatibility with agents running old Remoting versions 2018-01-02 22:10:37 +01:00
Jesse Glick 791646f98f Merge commit '99ca10114332e7c6fe12b676ea1919617070a488' into security-master 2018-01-02 15:47:55 -05:00
Jesse Glick 34191e78a6 Merge commit '99ca10114332e7c6fe12b676ea1919617070a488' of git://github.com/jenkinsci/jenkins 2018-01-02 15:47:31 -05:00
Jesse Glick a544cb79f8 Merge branch 'master' into whitelist-JENKINS-47736 2018-01-02 10:12:28 -05:00
Kohsuke Kawaguchi 99ca101143 [maven-release-plugin] prepare for next development iteration 2017-12-31 18:15:37 -08:00
Kohsuke Kawaguchi 7975ee0cf9 [maven-release-plugin] prepare release jenkins-2.99 jenkins-2.99 2017-12-31 18:15:37 -08:00
surenpi 9e9cdbc781 Add Chinese translation 2017-12-30 21:14:30 +08:00
Oleg Nenashev 16042bd57b Merge pull request #3196 from jglick/unmarshal-JENKINS-21017
[JENKINS-21017] When unmarshalling into an existing object, reset missing fields
2017-12-29 11:56:08 +01:00
Oleg Nenashev 7e67c03a9b Merge branch 'master' into whitelist-JENKINS-47736
# Conflicts:
#	pom.xml
2017-12-28 22:30:37 +01:00
Oleg Nenashev 29362a5b7b [JENKINS-47736] - Use the new snapshot: remoting-3.16-20171228.162243-1 2017-12-28 17:24:49 +01:00
Daniel Trebbien 67076834a2 Switch to calling Files.newBufferedReader
These changes were suggested by Extra Hints for NetBeans IDE:
http://plugins.netbeans.org/plugin/73447/
2017-12-27 19:45:30 -08:00
surenpi 72224fabb3 typo fixed 2017-12-27 09:01:21 +08:00
Oleg Nenashev 1aea337429 Bulk cleanup of code in hudson.cli.
- [x] - Remove unused imports
- [x] - Use diamond operator where possible
- [x] - Use Jenkins#get()
2017-12-26 11:52:13 +01:00
Kohsuke Kawaguchi 0ac93deba0 [maven-release-plugin] prepare for next development iteration 2017-12-25 01:03:42 -08:00
Kohsuke Kawaguchi 101a6cd44a [maven-release-plugin] prepare release jenkins-2.98 jenkins-2.98 2017-12-25 01:03:41 -08:00
Baptiste Mathus 196ca5fb63 Merge pull request #3205 from batmat/christmas-yay
Critical favicon change :-)
2017-12-24 19:16:31 +01:00
Baptiste Mathus 23677fee49 Critical favicon change :-) 2017-12-24 14:39:05 +01:00
Oleg Nenashev cb3990a4d6 Update to Remoting 3.15 and Cleanup issues in Channel#current() usages (#3145)
Pulls in fixes for: JENKINS-48133, JENKINS-48055, JENKINS-37566, JENKINS-48309, JENKINS-47965, JENKINS-48130, JENKINS-37670, JENKINS-37566, JENKINS-46724 

This change also adds some missing null/closing channel checks in the core.
In some cases the change prevents spawning threads if the channel is in the invalid state.
2017-12-22 18:02:44 +01:00
Larry Singleton 8e78ab1c66 [JENKINS-48227] Use "Files.createTempDirectory" to create temp directory (#3161)
* Use "Files.createTempDirectory" to create temp directory instead
See SonarQube critical vulnerability squid:S2976 (tag: owasp-a9)
https://next.sonarqube.com/sonarqube/coding_rules#rule_key=squid%3AS2976

* [JENKINS-48227]
Creating a utility "static Path toPath(File file) throws IOException" method,
which wraps InvalidPathException to IOException so that it will be checked.
- also fixed public static final reference
- fixed broken test cases
- added new test cases for toPath() and createTempDir()

* Revert back to public static int

* adjustments due to merges

* Add posix check to determine if Posix FileAttributes should be included
in call to Files.createTempDirectory()

* Remove reference to private element

* Updated to use explicit imports
2017-12-22 17:38:57 +01:00