Skip to content
Permalink
Browse files

[FIXED JENKINS-41745] Merged #2795: non-Remoting-based CLI.

(cherry picked from commit 7290169)
  • Loading branch information
jglick committed Apr 14, 2017
1 parent 6ca1cca commit de629fc0a0d6b96b0d3ca89c59e8416f64afc4d7
Showing with 2,467 additions and 403 deletions.
  1. +15 −0 cli/pom.xml
  2. +215 −33 cli/src/main/java/hudson/cli/CLI.java
  3. +11 −1 cli/src/main/java/hudson/cli/CLIConnectionFactory.java
  4. +2 −0 cli/src/main/java/hudson/cli/CliEntryPoint.java
  5. +3 −3 cli/src/main/java/hudson/cli/CliPort.java
  6. +3 −0 cli/src/main/java/hudson/cli/Connection.java
  7. +55 −0 cli/src/main/java/hudson/cli/DiagnosedStreamCorruptionException.java
  8. +191 −0 cli/src/main/java/hudson/cli/FlightRecorderInputStream.java
  9. +28 −7 cli/src/main/java/hudson/cli/FullDuplexHttpStream.java
  10. +47 −0 cli/src/main/java/hudson/cli/HexDump.java
  11. +354 −0 cli/src/main/java/hudson/cli/PlainCLIProtocol.java
  12. +132 −0 cli/src/main/java/hudson/cli/SSHCLI.java
  13. +0 −74 cli/src/main/java/hudson/cli/SequenceOutputStream.java
  14. 0 {core → cli}/src/main/java/hudson/util/QuotedStringTokenizer.java
  15. +10 −2 cli/src/main/resources/hudson/cli/client/Messages.properties
  16. +132 −0 cli/src/test/java/hudson/cli/PlainCLIProtocolTest.java
  17. +2 −2 cli/src/test/java/hudson/cli/PrivateKeyProviderTest.java
  18. +0 −1 core/pom.xml
  19. +159 −30 core/src/main/java/hudson/cli/CLIAction.java
  20. +35 −3 core/src/main/java/hudson/cli/CLICommand.java
  21. +2 −0 core/src/main/java/hudson/cli/CliManagerImpl.java
  22. +3 −1 core/src/main/java/hudson/cli/CliProtocol.java
  23. +3 −1 core/src/main/java/hudson/cli/CliProtocol2.java
  24. +2 −0 core/src/main/java/hudson/cli/CliTransportAuthenticator.java
  25. +2 −0 core/src/main/java/hudson/cli/ClientAuthenticationCache.java
  26. +2 −0 core/src/main/java/hudson/cli/CommandDuringBuild.java
  27. +1 −0 core/src/main/java/hudson/cli/ConsoleCommand.java
  28. +1 −1 core/src/main/java/hudson/cli/HelpCommand.java
  29. +19 −4 core/src/main/java/hudson/cli/InstallPluginCommand.java
  30. +2 −0 core/src/main/java/hudson/cli/InstallToolCommand.java
  31. +9 −0 core/src/main/java/hudson/cli/LoginCommand.java
  32. +9 −0 core/src/main/java/hudson/cli/LogoutCommand.java
  33. +2 −0 core/src/main/java/hudson/cli/SetBuildParameterCommand.java
  34. +2 −0 core/src/main/java/hudson/cli/SetBuildResultCommand.java
  35. +2 −0 core/src/main/java/hudson/cli/util/ScriptLoader.java
  36. +18 −10 core/src/main/java/hudson/model/FileParameterDefinition.java
  37. +30 −105 core/src/main/java/hudson/model/FullDuplexHttpChannel.java
  38. +1 −2 core/src/main/java/hudson/model/ParameterDefinition.java
  39. +3 −2 core/src/main/java/hudson/security/AbstractPasswordBasedSecurityRealm.java
  40. +2 −0 core/src/main/java/hudson/security/CliAuthenticator.java
  41. +2 −0 core/src/main/java/hudson/security/SecurityRealm.java
  42. +80 −3 core/src/main/java/jenkins/CLI.java
  43. +4 −0 core/src/main/java/jenkins/install/SetupWizard.java
  44. +178 −0 core/src/main/java/jenkins/util/FullDuplexHttpService.java
  45. +17 −5 core/src/main/resources/hudson/cli/Messages.properties
  46. +37 −0 core/src/main/resources/jenkins/CLI/WarnWhenEnabled/message.jelly
  47. +26 −0 core/src/main/resources/jenkins/CLI/WarnWhenEnabled/message.properties
  48. +33 −0 core/src/main/resources/jenkins/CLI/config.jelly
  49. +8 −0 core/src/main/resources/jenkins/CLI/help-enabled.html
  50. +2 −17 pom.xml
  51. +0 −7 test/pom.xml
  52. +10 −4 test/src/test/groovy/hudson/cli/SetBuildParameterCommandTest.groovy
  53. +74 −0 test/src/test/java/hudson/cli/BuildCommand2Test.java
  54. +199 −2 test/src/test/java/hudson/cli/CLIActionTest.java
  55. +152 −0 test/src/test/java/hudson/cli/CLITest.java
  56. +1 −0 test/src/test/java/hudson/cli/GetJobCommandTest.java
  57. +49 −0 test/src/test/java/hudson/cli/InstallPluginCommandTest.java
  58. +8 −15 test/src/test/java/hudson/model/ComputerSetTest.java
  59. +9 −20 test/src/test/java/hudson/model/listeners/ItemListenerTest.java
  60. +2 −4 test/src/test/java/hudson/security/CliAuthenticationTest.java
  61. +25 −39 test/src/test/java/jenkins/CLITest.java
  62. +2 −2 test/src/test/java/jenkins/security/Security218BlackBoxTest.java
  63. +2 −1 test/src/test/java/jenkins/security/Security218CliTest.java
  64. +3 −1 test/src/test/java/jenkins/security/Security232Test.java
  65. +27 −0 test/src/test/resources/hudson/cli/id_rsa
  66. +1 −0 test/src/test/resources/hudson/cli/id_rsa.pub
  67. +1 −1 war/pom.xml
  68. +6 −0 war/src/main/webapp/help/parameter/file.html
@@ -34,6 +34,10 @@
<artifactId>commons-codec</artifactId>
<version>1.4</version>
</dependency>
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>remoting</artifactId>
@@ -50,6 +54,17 @@
<version>1.24</version>
</dependency>
<dependency>
<groupId>org.apache.sshd</groupId>
<artifactId>sshd-core</artifactId>
<version>1.2.0</version> <!-- TODO 1.3.0 requires Java 8 -->
<optional>true</optional> <!-- do not expose to core -->
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-jdk14</artifactId>
<optional>true</optional> <!-- ditto -->
</dependency>
<dependency> <!-- TODO remove and replace PrivateKeyProvider with SecurityUtils.createFileKeyPairProvider() as in SshClient -->
<groupId>org.jenkins-ci</groupId>
<artifactId>trilead-ssh2</artifactId>
<version>build214-jenkins-1</version>

0 comments on commit de629fc

Please sign in to comment.
You can’t perform that action at this time.