Commit Graph
750 Commits
Author SHA1 Message Date
Jesse Glick 4c1910a10b Silence an annoying message. 2017-04-04 13:24:20 -04:00
Jesse Glick c74999f00c Found a race condition which could explain random CI hangs of CLIActionTest.authenticate. 2017-04-04 11:26:57 -04:00
Jesse Glick 71d7562db6 Merge branch 'master' into SSH-CLI-JENKINS-41745 2017-04-04 11:03:59 -04:00
Jesse Glick 9812db70d3 Improved handling of stream closure.
Making interrupt of `build -s` work in `-http` mode.
Does not solve `ReadPendingException`s.
2017-04-03 18:52:59 -04:00
Jesse Glick f1689367c3 Test failure on Windows, perhaps specific to filesystem type of TemporaryFolder.
java.nio.file.FileSystemException: …\.ssh\known_hosts: Incorrect function.
        at sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:86)
        at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:90)
        at sun.nio.fs.WindowsAclFileAttributeView.getFileSecurity(WindowsAclFileAttributeView.java:88)
        at sun.nio.fs.WindowsAclFileAttributeView.getOwner(WindowsAclFileAttributeView.java:121)
        at sun.nio.fs.FileOwnerAttributeViewImpl.getOwner(FileOwnerAttributeViewImpl.java:91)
        at java.nio.file.Files.getOwner(Files.java:2079)
        at org.apache.sshd.common.util.io.IoUtils.getFileOwner(IoUtils.java:272)
        at org.apache.sshd.common.util.io.ModifiableFileWatcher.validateStrictConfigFilePermissions(ModifiableFileWatcher.java:240)
        at org.apache.sshd.client.keyverifier.DefaultKnownHostsServerKeyVerifier.reloadKnownHosts(DefaultKnownHostsServerKeyVerifier.java:79)
        at org.apache.sshd.client.keyverifier.KnownHostsServerKeyVerifier.verifyServerKey(KnownHostsServerKeyVerifier.java:161)
        at …
Interactive testing of known_hosts on XP works as expected.
2017-04-03 17:06:53 -04:00
Oleg Nenashev 33f458d358 Merge pull request #2519 from oleg-nenashev/findbugs/JENKINS-36720-medium-level-fb
[JENKINS-36720] - Cleanup of SOME medium FindBugs issues
2017-04-03 22:45:34 +02:00
Jesse Glick 466d74d15e Merge branch 'master' into SSH-CLI-JENKINS-41745 2017-04-03 12:54:04 -04:00
Kohsuke Kawaguchi 0fac1f84f3 [maven-release-plugin] prepare for next development iteration 2017-04-02 18:15:20 -07:00
Kohsuke Kawaguchi 6e2a00eb8b [maven-release-plugin] prepare release jenkins-2.53 2017-04-02 18:15:20 -07:00
Daniel Beck bde09f70af Merge pull request #2816 from stephenc/jenkins-42934
[JENKINS-42934] Avoid using new FileInputStream / new FileOutputStream
2017-03-30 12:46:10 +02:00
Kohsuke Kawaguchi a3b939849c [maven-release-plugin] prepare for next development iteration 2017-03-26 19:20:17 -07:00
Kohsuke Kawaguchi a538c67277 [maven-release-plugin] prepare release jenkins-2.52 2017-03-26 19:20:17 -07:00
Jesse Glick 60632c0e98 Added -strictHostKey option to CLI in -ssh mode.
[FIXED JENKINS-33595] Picks up https://github.com/jenkinsci/sshd-module/pull/11
to turn off SSHD by default, but expose it to tests which wish to enable it.
2017-03-24 17:12:05 -04:00
Jesse Glick e69ba0f024 Merge branch 'master' into SSH-CLI-JENKINS-41745 2017-03-24 15:26:59 -04:00
Daniel Beck a00a6993ec Merge branch 'master' of github.com:jenkinsci/jenkins into update-german-translation 2017-03-24 01:58:19 +01:00
Stephen Connolly f0cd7ae8ff [JENKINS-42934] Avoid using new FileInputStream / new FileOutputStream 2017-03-20 12:50:46 +00:00
Kohsuke Kawaguchi 4948d6c556 [maven-release-plugin] prepare for next development iteration 2017-03-19 22:07:24 -07:00
Kohsuke Kawaguchi c196792f45 [maven-release-plugin] prepare release jenkins-2.51 2017-03-19 22:07:24 -07:00
Tristan FAURE 3ff8ce4853 [JENKINS-42627] CLI is not translated to French (#2787)
[JENKINS-42627] French translation for CLI
2017-03-19 21:33:17 +01:00
Jesse Glick 289db88154 Using Logger consistently for all messages that are not expected to be stdout/stderr. 2017-03-17 11:20:44 -04:00
Jesse Glick 59d50136a4 Merge branch 'master' into SSH-CLI-JENKINS-41745 2017-03-17 10:39:13 -04:00
Oleg Nenashev 9536ad2182 Merge branch 'master' into findbugs/JENKINS-36720-medium-level-fb 2017-03-17 14:10:47 +01:00
Yoann Dubreuil 1b3121db24 [JENKINS-42191] Enhance CLI HTTP proxy support (#2711)
* Enhance CLI HTTP proxy support

Fix few issues around proxy support in CLI:

* make proxy support work with recent Squid version which reply with HTTP/1.1 even if request is HTTP 1.0
* close the socket connected to the proxy if the connection failed
* output an error message when proxy connection failed
* don't do a reverse DNS lookup, instead use the host string provided in X-Jenkins-CLI-Host headers (we don't know if the DNS resolver on the
proxy will be able to resolve the name correctly, or like us).

* Use stdout to output CLI proxy connection error message

* Use the logger to output the error message, not System.out

* Add a 'verbose' option to the CLI to turn logging on

This should help people diagnosing connection issues with the CLI.

* [JENKINS-42191] Set log level to FINEST when -v is passed
2017-03-17 14:09:16 +01:00
Jesse Glick 9ffb5d87f5 Hoping to fix an unreproducible test hang. 2017-03-13 19:14:15 -04:00
Jesse Glick 82cd1bdacf Deleteing apparently unused class SequenceOutputStream. 2017-03-13 17:06:50 -04:00
Jesse Glick b8ad3606e7 Marking various APIs, and a couple of commands, deprecated when they assume a Remoting-based CLI. 2017-03-13 17:06:18 -04:00
Jesse Glick 12ae48ebb4 Deprecating --username/--password and login/logout in favor of new -auth option passing BASIC authentication to /cli endpoint.
Simpler, does not rely on Remoting, allows use of API tokens, and bypasses JENKINS-12543.
(You could actually do this before but only by embedding userinfo in the -s URL, especially awkward for usernames containing @.)
2017-03-13 16:33:09 -04:00
Jesse Glick 4df2bf1a1c Merge branch 'master' into SSH-CLI-JENKINS-41745 2017-03-13 12:28:40 -04:00
Jesse Glick 624ba59d97 Allow tests to run which use CLI.<init> in process. 2017-03-13 12:20:08 -04:00
Jesse Glick 7da0d39000 Argument processing mistake. 2017-03-13 11:53:20 -04:00
Kohsuke Kawaguchi fcef7b5d67 [maven-release-plugin] prepare for next development iteration 2017-03-12 16:33:27 -07:00
Kohsuke Kawaguchi c71a9ef88b [maven-release-plugin] prepare release jenkins-2.50 2017-03-12 16:33:27 -07:00
Jesse Glick 8302b85024 Draft of a new CLI transport that can operate over CLIAction with the regular HTTP(S) port. 2017-03-11 13:10:02 -05:00
Jesse Glick 2fe2487bab FindBugs, and more clearly stating which transport is in use. 2017-03-10 17:44:51 -05:00
Jesse Glick 492dbbed10 [JENKINS-41745] Make jenkins-cli.jar connect to the SSH port by default. 2017-03-10 16:05:55 -05:00
Daniel Beck 6351cf8c6c Jenkins! 2017-03-09 14:37:44 +01:00
Kohsuke Kawaguchi 76b5ba7f46 [maven-release-plugin] prepare for next development iteration 2017-03-05 23:09:15 -08:00
Kohsuke Kawaguchi 62d32415f4 [maven-release-plugin] prepare release jenkins-2.49 2017-03-05 23:09:15 -08:00
Kohsuke Kawaguchi 3d1893e5bf [maven-release-plugin] prepare for next development iteration 2017-02-26 13:08:21 -08:00
Kohsuke Kawaguchi 84c78cfee1 [maven-release-plugin] prepare release jenkins-2.48 2017-02-26 13:08:20 -08:00
Daniel Beck 2a03dda885 Reference redirectors and jenkins.io as much as possible (#2756)
* Reference redirectors and jenkins.io as much as possible

* Something went wrong, so this is a troubleshooting URL

* More specific redirect URLs
2017-02-25 19:56:01 +01:00
Kohsuke Kawaguchi 0e67ad4e73 [maven-release-plugin] prepare for next development iteration 2017-02-19 13:57:51 -08:00
Kohsuke Kawaguchi 39c45a064d [maven-release-plugin] prepare release jenkins-2.47 2017-02-19 13:57:51 -08:00
Kohsuke Kawaguchi 27d04591c1 [maven-release-plugin] prepare for next development iteration 2017-02-13 04:39:17 -08:00
Kohsuke Kawaguchi 0a3d0a5468 [maven-release-plugin] prepare release jenkins-2.46 2017-02-13 04:39:17 -08:00
Kohsuke Kawaguchi 9a205e5f79 [maven-release-plugin] prepare for next development iteration 2017-02-06 02:56:53 -08:00
Kohsuke Kawaguchi 7a26891889 [maven-release-plugin] prepare release jenkins-2.45 2017-02-06 02:56:53 -08:00
Kohsuke Kawaguchi 07f32fec4f [maven-release-plugin] prepare for next development iteration 2017-02-01 05:31:36 -08:00
Kohsuke Kawaguchi 5828e963ac [maven-release-plugin] prepare release jenkins-2.44 2017-02-01 05:31:35 -08:00
Kohsuke Kawaguchi e612721e0b [maven-release-plugin] prepare for next development iteration 2017-01-29 16:36:35 -08:00