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

JNLP slave : slave.jar should update itself when Jenkins is updated

    • Icon: Improvement Improvement
    • Resolution: Duplicate
    • Icon: Minor Minor
    • core, remoting
    • None
    • any

      slave.jar should update itself when Jenkins is updated. I have a large qty of remote build agents, and when we see problems, we never know if the outdated slave.jar is relevant or not. This should be changed once and for all so that it detects the change and auto updates itself when the Jenkins server is updated.

      Competing CI servers have had this as basic functionality for years, it would be great if Jenkins supported the same.

          [JENKINS-23880] JNLP slave : slave.jar should update itself when Jenkins is updated

          boris ivan created issue -

          If you use "Let Jenkins Control this Windows Slave as Windows service" as the launch method, this is what happens.

          Vincent Latombe added a comment - If you use "Let Jenkins Control this Windows Slave as Windows service" as the launch method, this is what happens.
          Vincent Latombe made changes -
          Assignee Original: Kohsuke Kawaguchi [ kohsuke ] New: Vincent Latombe [ vlatombe ]
          Resolution New: Cannot Reproduce [ 5 ]
          Status Original: Open [ 1 ] New: Closed [ 6 ]

          boris ivan added a comment -

          Thanks for the workaround, but running as a service isn't an option for me. Windows has some very strict security regarding having 'services' writing to mapped drives (Z:, etc), even if you run that service under specific credentials. So, I need to launch the build agent from the command line, which Jenkins supports.

          I need the slave.jar to upgrade when Jenkins upgrades, in that scenario as well. Jenkins competitors do this successfully, also when launched from the command line (teamcity, etc)

          boris ivan added a comment - Thanks for the workaround, but running as a service isn't an option for me. Windows has some very strict security regarding having 'services' writing to mapped drives (Z:, etc), even if you run that service under specific credentials. So, I need to launch the build agent from the command line, which Jenkins supports. I need the slave.jar to upgrade when Jenkins upgrades, in that scenario as well. Jenkins competitors do this successfully, also when launched from the command line (teamcity, etc)
          boris ivan made changes -
          Resolution Original: Cannot Reproduce [ 5 ]
          Status Original: Closed [ 6 ] New: Reopened [ 4 ]

          Daniel Beck added a comment -

          So, I need to launch the build agent from the command line

          Is a batch file that basically does

          wget http://jenkins/jnlpJars/slave.jar
          java -jar slave.jar …

          out of the question?

          (http://gnuwin32.sourceforge.net/packages/wget.htm)

          Daniel Beck added a comment - So, I need to launch the build agent from the command line Is a batch file that basically does wget http: //jenkins/jnlpJars/slave.jar java -jar slave.jar … out of the question? ( http://gnuwin32.sourceforge.net/packages/wget.htm )
          Vincent Latombe made changes -
          Component/s New: core [ 15593 ]
          Component/s Original: windows-slaves-plugin [ 18327 ]
          Assignee Original: Vincent Latombe [ vlatombe ]
          Summary Original: slave.jar should update itself when Jenkins is updated New: JNLP slave : slave.jar should update itself when Jenkins is updated
          Vincent Latombe made changes -
          Issue Type Original: Bug [ 1 ] New: Improvement [ 4 ]

          re-tagging this issue properly.

          Vincent Latombe added a comment - re-tagging this issue properly.
          Vincent Latombe made changes -
          Priority Original: Major [ 3 ] New: Minor [ 4 ]

            Unassigned Unassigned
            borisivan boris ivan
            Votes:
            2 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved: