Windows Service - slave.xml is always overritten causing connection issues

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

    • Type: Bug
    • Resolution: Not A Defect
    • Priority: Major
    • Component/s: core
    • Environment:
      Jenkins 1.467 running on win2k3 / winXP / win2k8 R1 / win2k8 R2, upgraded from Jenkins 1.417
      running slave 2.13 from 1.467 Jenkins
      This is also present on 1.475 jenkins

      when starting a slave via jenkins it now installs the service everytime and removes it when disconnected. The issue i am hitting is that the jenkins-slave.xml is ALWAYS getting copied to the slave now overriding out local config for JAVA as well as the connection port.

      I tried changing the jenkins-slave.xml to read only but then trying to start the issue we only get a permission issue.

      We originally setup through JNLP as service.
      wanted
      <executable>E:\jenkins\Java\jdk1.6.0_17\bin\java.exe</executable>
      <arguments>-Xrs -jar "%BASE%\slave.jar" -jnlpUrl http://master/computer/slave1/slave-agent.jnlp</arguments>
      overridden with
      <executable>javaw.exe</executable>
      <arguments>-Xrs -jar "%BASE%\slave.jar" -tcp %BASE%\port.txt</arguments>

      port.txt is not present and i haven't found any reference on it for service setup

      Checking if Java exists
      java full version "1.6.0_17-b04"
      Installing the Jenkins slave service
      Copying jenkins-slave.exe
      Copying slave.jar
      Copying jenkins-slave.xml ** always copies
      Registering the service
      Starting the service

            Assignee:
            Kohsuke Kawaguchi
            Reporter:
            VladDRussian
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: