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

Use WinSW .NET 4 version for auto-upgrade instead of .NET 2

    XMLWordPrintable

    Details

    • Similar Issues:
    • Released As:
      Jenkins 2.248

      Description

      I recently updated some older agent nodes to use the latest WinSW release (2.2.0, at present) and thought I'd switch to the WinSW.NET4.exe version, as it does not require the additional jenkins-slave.exe.config file specifying this particular runtime (vs. the default of .NET 2). The agent service installed and started fine, but the Jenkins master then attempted to auto-upgrade the jenkins-slave.exe on the agent, as shown by the "Scheduled overwrite of jenkins-slave.exe on the next service startup" message in the agent log (from https://github.com/jenkinsci/windows-slave-installer-module/blob/master/src/main/java/org/jenkinsci/modules/windows_slave_installer/SlaveExeUpdater.java#L99). Sure enough, the .NET 4 version of jenkins-slave.exe I'd put onto my agents got replaced with a .NET 2 version from the Jenkins master, and then the agent service wouldn't start because I lacked a jenkins-slave.exe.config file there.

      I realize that the auto-update can be disabled via the org.jenkinsci.modules.windows_slave_installer.disableAutoUpdate setting on the master, but could we have the Jenkins master use the .NET 4 version of WinSW instead, so this isn't necessary?

        Attachments

          Activity

          Hide
          oleg_nenashev Oleg Nenashev added a comment -

          We have just published a new Windows Support Policy: https://www.jenkins.io/doc/administration/requirements/windows/ . This policy explicitly deprecates .NET Framework 2.0, and hence we can proceed with this patch. https://github.com/jenkinsci/windows-slave-installer-module/pull/43 by Next Turn implements the change

          Show
          oleg_nenashev Oleg Nenashev added a comment - We have just published a new Windows Support Policy:  https://www.jenkins.io/doc/administration/requirements/windows/  . This policy explicitly deprecates .NET Framework 2.0, and hence we can proceed with this patch.  https://github.com/jenkinsci/windows-slave-installer-module/pull/43  by Next Turn implements the change
          Hide
          oleg_nenashev Oleg Nenashev added a comment -

          Released in Jenkins 2.248

          Show
          oleg_nenashev Oleg Nenashev added a comment - Released in Jenkins 2.248

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            medianick Nick Jones
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: