Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-8026

hudson-cli.jar conncet to hudson issue <using groovy script

    • Icon: Bug Bug
    • Resolution: Incomplete
    • Icon: Major Major
    • other
    • None

      I'm enviroment
      WindowsXpSp3,JDKu22
      hudson.war 1.384

      >sample.groovy
      new File(".").eachFile

      { println it }

      hudson-cli.jar conncet to hudson.war, end of groovy script is hudson rais console error ocuuerd
      and
      groovy script action changed(location hudson-cli.jar)

      D:\workspace36\hudson>c:\opt\jdk/bin/java -jar hudson.war --httpPort=9090 --httpsPort=9091
      Running from: D:\workspace36\hudson\hudson.war
      [Winstone 2010/11/08 09:53:36] - Beginning extraction from war file
      hudson home directory: D:\workspace36\hudson
      Using one-time self-signed certificate
      [Winstone 2010/11/08 09:53:37] - HTTP Listener started: port=9090
      [Winstone 2010/11/08 09:53:37] - AJP13 Listener started: port=8009
      2010/11/08 9:53:37 hudson.model.Hudson$4 onAttained
      情報: Started initialization
      2010/11/08 9:53:37 hudson.model.Hudson$4 onAttained
      情報: Listed all plugins
      2010/11/08 9:53:37 hudson.model.Hudson$4 onAttained
      情報: Prepared all plugins
      2010/11/08 9:53:37 hudson.model.Hudson$4 onAttained
      情報: Started all plugins
      2010/11/08 9:53:37 hudson.model.Hudson$4 onAttained
      情報: Augmented all extensions
      2010/11/08 9:53:37 hudson.model.Hudson$4 onAttained
      情報: Loaded all jobs
      [Winstone 2010/11/08 09:53:37] - Winstone Servlet Engine v0.9.10 running: controlPort=disabled
      [Winstone 2010/11/08 09:53:38] - HTTPS Listener started: port=9091
      2010/11/08 9:53:38 hudson.model.Hudson$4 onAttained
      情報: Completed initialization
      2010/11/08 9:53:38 hudson.TcpSlaveAgentListener <init>
      情報: JNLP slave agent listener started on TCP port 4844
      2010/11/08 9:54:12 hudson.model.DownloadService$Downloadable doPostBack
      情報: Obtained the updated data file for hudson.tasks.Maven.MavenInstaller
      2010/11/08 9:54:12 hudson.model.DownloadService$Downloadable doPostBack
      情報: Obtained the updated data file for hudson.tasks.Ant.AntInstaller
      2010/11/08 9:54:12 hudson.model.DownloadService$Downloadable doPostBack
      情報: Obtained the updated data file for hudson.tools.JDKInstaller
      2010/11/08 9:54:14 hudson.model.UpdateSite doPostBack
      情報: Obtained the latest update center data file for UpdateSource default
      2010/11/08 9:54:54 hudson.TcpSlaveAgentListener$ConnectionHandler run
      情報: Accepted connection #1 from /127.0.0.1:4950
      2010/11/08 9:54:56 hudson.remoting.Channel$ReaderThread run
      致命的: I/O error in channel CLI channel from /127.0.0.1
      java.net.SocketException: Connection reset
      at java.net.SocketInputStream.read(SocketInputStream.java:168)
      at java.io.FilterInputStream.read(FilterInputStream.java:116)
      at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
      at java.io.BufferedInputStream.read(BufferedInputStream.java:237)
      at java.io.ObjectInputStream$PeekInputStream.peek(ObjectInputStream.java:2248)
      at java.io.ObjectInputStream$BlockDataInputStream.peek(ObjectInputStream.java:2541)
      at java.io.ObjectInputStream$BlockDataInputStream.peekByte(ObjectInputStream.java:2551)
      at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1296)
      at java.io.ObjectInputStream.readObject(ObjectInputStream.java:350)
      at hudson.remoting.Channel$ReaderThread.run(Channel.java:948)

      D:\workspace36\hudson>c:\opt\jdk/bin/java -jar war/WEB-INF/hudson-cli.jar -s http://localhost:9090 groovy sample.groovy
      .\hudson-134.war
      .\hudson-cli.bat
      .\hudson.bat
      .\hudson.model.UpdateCenter.xml
      .\hudson.war
      .\hudson.war.tmp
      .\HudsonでAndroidする - hidecheckの日記.htm
      .\HudsonでAndroidする - hidecheckの日記_files

      copy to war/WEB-INF/hudson-cli.jar ./ , but not exception occured (groovy action changed...)

      D:\workspace36\hudson>c:\opt\jdk/bin/java -jar hudson-cli.jar -s http://localhost:9090 groovy sample.groovy
      .\hudson-134.war
      .\hudson-cli.bat
      .\hudson-cli.jar
      .\hudson.bat
      .\hudson.model.UpdateCenter.xml
      .\hudson.war
      .\hudson.war.tmp
      .\HudsonでAndroidする - hidecheckの日記.htm
      .\HudsonでAndroidする - hidecheckの日記_files
      .\jobs
      .\nodeMonitors.xml

      move to hudson-cli.jar locate foloder , but not exception occured (groovy action changed...)

      D:\workspace36>c:\opt\jdk/bin/java -jar hudson-cli.jar -s http://localhost:9090 groovy sample.groovy
      .\hudson-134.war
      .\hudson-cli.bat
      .\hudson-cli.jar
      .\hudson.bat
      .\hudson.model.UpdateCenter.xml
      .\hudson.war
      .\hudson.war.tmp
      .\HudsonでAndroidする - hidecheckの日記.htm
      .\HudsonでAndroidする - hidecheckの日記_files
      .\jobs
      .\nodeMonitors.xml
      .\plugins
      .\queue.xml.bak
      .\sample.groovy
      .\sample2.groovy
      .\secret.key
      .\start.bat
      .\test.groovy
      .\updates
      .\userContent
      .\war

            kohsuke Kohsuke Kawaguchi
            kimukou_26 kimukou_26
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: