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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Major Major
    • core
    • None
    • 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

            kohsuke Kohsuke Kawaguchi
            vladdrussian VladDRussian
            Votes:
            6 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: