[JIRA] (JENKINS-60005) Use WinSW .NET 4 version for auto-upgrade instead of .NET 2

4 views
Skip to first unread message

medianick@gmail.com (JIRA)

unread,
Oct 31, 2019, 12:21:03 PM10/31/19
to jenkinsc...@googlegroups.com
Nick Jones updated an issue
 
Jenkins / Improvement JENKINS-60005
Use WinSW .NET 4 version for auto-upgrade instead of .NET 2
Change By: Nick Jones
Component/s: windows-slave-installer-module
Component/s: remoting
Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo

medianick@gmail.com (JIRA)

unread,
Oct 31, 2019, 12:21:04 PM10/31/19
to jenkinsc...@googlegroups.com
Nick Jones created an issue
Issue Type: Improvement Improvement
Assignee: Jeff Thompson
Components: remoting
Created: 2019-10-31 16:20
Environment: Jenkins 2.190.2 LTS on Windows Server (master and agents)
Priority: Minor Minor
Reporter: Nick Jones

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?

medianick@gmail.com (JIRA)

unread,
Oct 31, 2019, 12:22:02 PM10/31/19
to jenkinsc...@googlegroups.com
Nick Jones assigned an issue to Unassigned
Change By: Nick Jones
Assignee: Jeff Thompson
Reply all
Reply to author
Forward
0 new messages