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

SSH Slave configuration "JVM Options" requires space in front of first JVM option post 1.360 update

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Minor Minor
    • ssh-slaves-plugin
    • None
    • Linux 64bit
      Java 1.6.0_17

      Post update to 1.360 the SSH slave initiator now requires a space to be the first character when setting JVM Options in the slave configuration. An example of the issue is in the following log entry:

      [06/01/10 12:13:43] [SSH] Starting slave process: cd '/opt/hudson' && java-server -Xms1024M -Xmx2048M -XX:MaxPermSize=128M -XX:-UseGCOverheadLimit -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:+CMSClassUnloadingEnabled -jar slave.jar
      ./slave-lnx64-hs2.log:bash: java-server: command not found

      As you can see, '-server' was simply appended to the 'java' command in the slave.jar launch string causing the launch to fail.

      Hudson versions prior to 1.360 did not require a space in the JVM Options configuration to function properly.

      Workaround: Add a space as the first character in the JVM Options box of the slave configuration when defining JVM options.

            mindless Alan Harder
            dru_n dru_n
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: