Commit Graph
28 Commits
Author SHA1 Message Date
Stephen Connolly 21f1c29c89 [JENKINS-33414] Cover one final theoretical race condition 2016-03-09 14:42:03 +00:00
Stephen Connolly f68f5fb24f [FIXED JENKINS-33414] Added an API to allow identification of the Jenkins JVM
- Fix the ProxyConfiguration code to not require Jenkins class to be loaded in remote JVMs
2016-03-08 23:05:00 +00:00
Stephen Connolly d1dfbd2baf Revert "Jenkins.getInstance() should be non-null"
This reverts commit bb7c8fcedb.

Closes #2090, I'll redo this as a PR... though if that PR is subject to multiple rounds of review before being merged then I will take that of evidence of the exact problem that committing directly was supposed to resolve... namely exponentially multiplying the effort required to make actual improvements to the code base.
2016-03-08 21:09:28 +00:00
Stephen Connolly bb7c8fcedb Jenkins.getInstance() should be non-null
- It is never too late to do the right thing.
- The vast majority of usages of `Jenkins.getInstance()` in core currently assume that its return value is non-null
- This commit changes those that are written to correctly check for non-null values will call `Jenkins.getInstanceOrNull()`
- We deprecate the `Jenkins.getActiveInstance()` madness
- I checked with @kohsuke who said not to bother with a PR and just commit this strongly opinionated change direct to master as a PR will just degrade into a bikeshedding.
2016-03-07 22:08:36 +00:00
David Hoover 1709ed3a2e Add @Deprecated annotations to things documented as @deprecated. 2015-04-19 14:50:12 -07:00
ssogabe 553a3850ba Use Common HttpClient instead of URLConnection 2013-11-01 12:09:43 +09:00
ssogabe c853c4719d [FIXED JENKINS-20191] Add Test button to check proxy connection 2013-10-29 22:58:11 +09:00
Kohsuke Kawaguchi a8b609ef24 making this serializable 2012-07-23 14:10:15 -07:00
Hayato ITO dd75293fd5 fix no proxy host config behavior 2012-02-13 20:41:12 +09:00
Kohsuke Kawaguchi dec633208b Supported "no proxy host" setting and modernized the impl. 2011-12-02 23:34:16 -08:00
Seiji Sogabe 9207c21f37 [FIXED JENKINS-5271] Tools download does not appear to respect proxy settings. 2011-09-18 16:16:38 -07:00
Kohsuke Kawaguchi 07caea1865 added a new extension to manipulate the connection 2011-08-01 16:40:38 -07:00
Nigel Magnay 2adef6719a Merge remote branch 'origin/master' into momo
* origin/master: (91 commits)
  Parsing can happen in the forked Maven process. Support remoting.
  Fixed the test failures.
  Strip whitespace on maven installation.
  updated ja.
  Use relative path to validate new view name (in order to allow ViewGroups like NestedView to override)
  Added i18n.
  moved to the model package to colocate with the Result class, since I don't think this class is tied by itself to the notification.
  doc improvements
  enum to describe a result trend - i.e. change from the previous to the current result
  Recording the previous change.
  Do not include trailing periods in console links.
  doc improvements
  Added a hook to customize the XML parser behaviour.
  - Renamed from 'linked' to 'base' - Fixed the bug where multi-level base setting wasn't working properly - Improved docs
  Updated style
  Added convenience method for getting configuration run
  Initial commit
  the trunk is toward 1.416-SNAPSHOT
  creating an RC branch
  updated changelog as a part of the release
  ...

Conflicts:
	core/src/main/java/hudson/slaves/NodeProvisioner.java
	maven-plugin/src/main/java/hudson/maven/MavenModule.java
	maven-plugin/src/main/java/hudson/maven/RedeployPublisher.java
2011-06-07 09:04:40 +01:00
Nicolas De loof 3f13f6da74 Merge pull request #130 from bap2000/master
Proxy password is encrypted in xml config file, and in the UI
2011-06-03 07:55:53 +02:00
Nigel Magnay 5679d019ec Move hudson.model.Jenkins to be jenkins.model.Jenkins - part II
Just import changes, from hudson.model.Jenkins -> jenkins.model.Jenkins,
and Javadoc comments.

Signed-off-by: Nigel Magnay <nigel.magnay@gmail.com>
2011-05-29 11:06:28 +01:00
Nigel Magnay 70c1065814 Stage 1 : Create hudson.model.Jenkins, make Hudson derive from Jenkins.
Signed-off-by: Nigel Magnay <nigel.magnay@gmail.com>
2011-05-29 11:00:58 +01:00
bap2000 c4d9fe8e07 [FIXED JENKINS-4000] , [FIXED JENKINS-4002] encrypt proxy password
Proxy password is encrypted in xml config file, and in the UI
2011-05-21 14:56:47 +01:00
Dave Brosius 5571e430d1 remove wasteful duplicate method calls 2011-02-05 19:16:24 -05:00
kohsuke 66b9d9baaf fixed a possible security issue (SECURITY-3)
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@32394 71c3de6d-444a-0410-be80-ed276b4c234a
2010-06-30 15:31:02 +00:00
kohsuke f73f679c41 fixed NPE:
java.lang.NullPointerException
	at hudson.ProxyConfiguration.open(ProxyConfiguration.java:112)
	at hudson.FilePath.installIfNecessaryFrom(FilePath.java:532)
	at hudson.plugins.hadoop.PluginImpl.createHadoopVM(PluginImpl.java:109)
	at hudson.plugins.hadoop.SlaveStartTask.call(SlaveStartTask.java:58)
	at hudson.plugins.hadoop.SlaveStartTask.call(SlaveStartTask.java:41)
	at hudson.remoting.UserRequest.perform(UserRequest.java:104)
	at hudson.remoting.UserRequest.perform(UserRequest.java:48)
	at hudson.remoting.Request$2.run(Request.java:270)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
	at java.util.concurrent.FutureTask.run(FutureTask.java:138)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@26276 71c3de6d-444a-0410-be80-ed276b4c234a
2010-01-23 00:58:32 +00:00
kohsuke 29cdfb670d [FIXED HUDSON-5271] in 1.342. Automatic tool installation wasn't honoring proxy setting.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@25811 71c3de6d-444a-0410-be80-ed276b4c234a
2010-01-14 15:36:13 +00:00
abayer 91bffe3b46 Adding SaveableListener, with calls to SaveableListener.fireOnChange in Saveable.save implementations
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23502 71c3de6d-444a-0410-be80-ed276b4c234a
2009-11-05 16:11:47 +00:00
mindless 9fed9823f5 Add @Override annotations, remove unused imports,
add some copyright headers, some tab->ws


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@21654 71c3de6d-444a-0410-be80-ed276b4c234a
2009-09-14 18:08:34 +00:00
kohsuke 27042bbc4a [FIXED HUDSON-1920] Applied a patch. In 1.316.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@19683 71c3de6d-444a-0410-be80-ed276b4c234a
2009-07-14 03:55:43 +00:00
kohsuke 1a1d0d74d5 license header clean up
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@15081 71c3de6d-444a-0410-be80-ed276b4c234a
2009-02-06 20:05:24 +00:00
kohsuke 8339f02284 Added a mechanism to perform a bulk change without intermediate save().
This allows us to define more setter methods on configuration values, which in turn improves the ability to make programatic changes to the configuration, which in turn improves testability.

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@11515 71c3de6d-444a-0410-be80-ed276b4c234a
2008-08-15 23:01:06 +00:00
kohsuke 297c2b9fdf [FIXED HUDSON-1833] Update center accepts HTTP proxy username/password.
In 1.234.

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@10737 71c3de6d-444a-0410-be80-ed276b4c234a
2008-07-10 06:43:03 +00:00
kohsuke 0543909074 [FIXED HUDSON-1841] proxy setting shouldn't be global to JVM.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@10078 71c3de6d-444a-0410-be80-ed276b4c234a
2008-06-13 17:54:16 +00:00