Commit Graph
98 Commits
Author SHA1 Message Date
Kohsuke Kawaguchi c498c0f6a7 Needs to use SocketChannelStream to avoid deadlock.
streams created from SocketChannel doesn't allow concurrent read/write
by different threads, which appear to be a bug in NIO.
2014-04-09 14:54:44 -07:00
Oliver Gondža 000b93fe70 Merge pull request #1147 from olivergondza/expose-key-reading
Expose PrivateKeyProvider
2014-03-11 12:17:02 +01:00
Oliver Gondža 63ceab84a5 Test PrivateKeyProvider 2014-03-10 22:21:50 +01:00
Oliver Gondža 66d61328cc Expose PrivateKeyProvider 2014-03-05 19:47:33 +01:00
Kohsuke Kawaguchi 8901dbe49c Exposing it outside 2014-02-14 18:29:21 -08:00
Fernando Boaglio 587992c372 Translation pt_BR - Jenkins Meetup Sao Paulo 2013-12-08 09:08:38 -02:00
Jesse Glick a0e19f14bc Merge branch 'fork_fix-nas-exception2' of github.com:marco-miller/jenkins into marco-miller-fork_fix-nas-exception2 2013-11-20 09:57:33 -05:00
Jesse Glick 4825967fe3 Deleting code using @IgnoreJRERequirement for Java 5 compatibility. 2013-11-15 08:43:40 -05:00
Marco Miller 8067edd97d Throw IOException if negative int from port-based cli connection stream.
-Instead of failing at initializing array with negative size.
Introducing PowerMock test for the zero-size array case.
Negative-size case not tested thx to unhelping PowerMock behavior.
Using ConnectionMockTest instead of ConnectionTest; needed by PowerMock.
2013-11-14 10:46:24 -05:00
Kohsuke Kawaguchi 344ba8de31 improved error diagnostics 2013-11-05 12:29:51 -08:00
Kohsuke Kawaguchi b2730f3d31 error stream isn't always available 2013-11-05 12:29:51 -08:00
Stephen Connolly 0ab7988297 [FIXED JENKINS-12629] Using jenkins-cli connecting to HTTPS port fails due to hostname mismatch in certificate.
- NoCheckTrustManager needed to implement X509TrustManager not just plain TrustManager
2013-09-25 09:48:55 +01:00
Jesse Glick 128ba43413 Fixing a few warnings. 2013-08-09 23:49:52 -04:00
Kohsuke Kawaguchi 5e21aae8f8 this is just a warning and not fatal 2013-06-07 10:58:10 +03:00
Kohsuke Kawaguchi dc94b7d063 [FIXED JENKINS-8686]
As I mentioned in the comment, I doubt if this makes any behaviour change, but this seems like a sensible defensive measure that wouldn't hurt.
2013-04-02 09:58:50 -07:00
Simon Wiest ba13905b24 Minor update of the German localization strings. 2013-03-06 21:39:22 +01:00
Simon Wiest c8a1242951 Changed 'Hudson' into 'Jenkins' in CLI error message. 2013-03-05 21:47:15 +01:00
Pei-Tang Huang bbf1a08f03 Align to commit 2edf32221f. 2013-02-23 23:20:13 +08:00
Pei-Tang Huang 0d864db7f5 Merge branch 'master' of https://github.com/jenkinsci/jenkins 2013-02-23 23:01:34 +08:00
Kohsuke Kawaguchi 2edf32221f [FIXED JENKINS-12629]
Added the -noCertificateCheck option (the option name is consistent with
the slave.jar) that lets users bypass the HTTPS certificate check.

This allows trivial man-in-the-middle attack, so HTTPS will no longer be
HTTPS.
2013-02-22 16:07:11 -08:00
Pei-Tang Huang 427726b85f Add/update Chinese (traditional) translation. 2013-02-20 12:57:44 +08:00
Jesse Glick 9252468e8f CLIConnectionFactory.basicAuth was defined but never used.
Fixed to pass basic auth to HTTP connections when included in user info portion of URL (e.g. as API token).
2013-02-16 10:22:40 -08:00
Jesse Glick adeed34c6c Diagnostics in case crumbIssuer replies with HTML junk.
(Or should we just check the status code?)
2013-02-11 20:35:22 -05:00
Jesse Glick 68b05412ba Improved logging in case both connectViaCliPort and connectViaHttp fail. 2013-02-11 19:21:28 -05:00
Jesse Glick 9bb9d446b5 More efficient to contact crumbIssuer just once and get both name and value. 2013-02-08 17:38:17 -05:00
Kohsuke Kawaguchi 2dc6e811e5 excluding this from animal sniffer check 2012-09-28 14:17:30 -07:00
Kohsuke Kawaguchi 25d990c539 Implemented transport security to CLI connection.
It uses Diffie Hellman to come up with one-time session key, then have
the server sign this session key to allow the client to verify that
there's no man in the middle.
2012-05-24 15:49:37 -07:00
Kohsuke Kawaguchi fd5aa2bc56 bit of simplification 2012-05-24 11:02:09 -07:00
Kohsuke Kawaguchi a5691ea056 avoid using deprecated method 2012-05-24 11:01:16 -07:00
Manolo Carrasco 1f5bc9bdd6 Update Spanish translation 2012-05-22 12:32:33 +02:00
Kohsuke Kawaguchi 76efb9eecb improved error diagnostics 2012-05-21 17:03:08 -07:00
Richard Mortimer ea1b80aebe [FIXED JENKINS-12037] CLI - I/O error in channel Chunked connection
Use a ping timeout of 3/4 of the ping interval instead of the default
4 minute timeout.
This happens to workaround an issue in the remoting PingThread
implementation which causes the ping to busy wait for the timeout
period instead of keeping the channel alive.
2012-03-30 00:39:09 +01:00
Kohsuke Kawaguchi bf7565293a Fixed a socket file descriptor leak. 2012-03-21 18:46:05 -07:00
Kohsuke Kawaguchi 707490aee3 Use a smaller time out.
On iptables protected system, full time out can take 30 secs, which is
too long.
2012-02-27 13:22:54 -08:00
Seiji Sogabe 939d13c86c Updated japanese translations. 2012-01-29 11:14:26 +09:00
Kohsuke Kawaguchi 7360f45d54 this breaks in Java5 so at least giving the user better message 2012-01-27 17:33:58 -08:00
Vojtech Juranek d6eb3cfb88 Added support for ecnrypted key files 2012-01-27 17:31:03 -08:00
Kohsuke Kawaguchi a2e6b59241 made it easier to add parameters to the connection in the future 2012-01-22 15:34:06 -08:00
Kohsuke Kawaguchi 2dfe417c9c added a mechanism to pass in the authorization header separately, so that we can deal with OAuth, etc. 2012-01-22 15:34:06 -08:00
Kohsuke Kawaguchi 1c06615adc added a new constructor to specify the authorization header separately 2012-01-22 15:34:06 -08:00
Kohsuke Kawaguchi 760f9030a8 CLI now supports using HTTP proxy for tunneling its TCP/IP connection 2011-12-19 14:15:50 -08:00
Kohsuke Kawaguchi 721111b196 unused parameter 2011-12-19 14:15:49 -08:00
Kohsuke Kawaguchi 9713527367 Advertise the host name to enable direct connection. 2011-12-19 12:15:34 -08:00
Kohsuke Kawaguchi eec37460da [FIXED JENKINS-11873] don't say proceeding with anonouymous because we might not 2011-12-16 18:42:38 -08:00
Kohsuke Kawaguchi c9958b7ee2 CLI jar now has the version number in the manifest as well as the
"-version" option.
2011-11-14 16:08:57 -08:00
Richard Mortimer 92496f99e4 [FIXED JENKINS-11130] SEVERE: I/O error in channel Chunked connection when using jenkins-cli.jar
When using HTTP full duplex connections the upstream channel can be idle for
long periods of time and the webserver will time the connection out. Jenkins
sees this and terminates the downstream channel causing the unexpected closure
of the read channel in the CLI client.

Timeout of 15 seconds is based on the 20 second default timeout as seen in
Ubuntu Oneiric Tomcat 6 installations.
2011-11-07 14:56:15 -08:00
Richard Mortimer 87995e97b0 Flush HTTP input and error streams after searching for the X-Hudson-CLI-Port
property. This releases the HTTP connection in a friendly way and allows the
webserver to recycle the connection a little quicker.
2011-11-07 14:56:15 -08:00
Kohsuke Kawaguchi 5f756c6170 [FIXED JENKINS-10611] fall back to HTTP if direct TCP connection doesn't
work.
2011-08-09 18:20:03 -07:00
Kohsuke Kawaguchi a70e867590 Jenkins! 2011-07-25 12:57:24 -07:00
Kohsuke Kawaguchi 69d95cb2d0 added more convenience method 2011-06-23 23:57:08 -07:00