Applying Patches
Last modified: 20 April 2023To apply the patch for vss-native.exe
:
Shutdown TeamCity server
Open
<TeamCity Server>/webapps/root/WEB-INF/classes/bin
Backup existing
vss-native.exe
Copy new file replacing the original one
Start the server
To apply full VSS plugin patch:
Shutdown TeamCity server
Open
<TeamCity Server>/webapps/root/WEB-INF/classes/bin
Backup existing
vss-native.exe
Copy new file replacing the original one
Open
<TeamCity Server>/webapps/root/WEB-INF/classes/jetbrains/buildServer/buildTriggers/vcs/vss
folderBackup all files there. Make sure no extra files are created under
<TeamCity Server>/webapps/root/WEB-INF/classes
pathRemove all files under that path
Unpack all class files from archive to
<TeamCity Server>/webapps/root/WEB-INF/
Start the server
Capturing Logs From VSS-native
Copy to some folder vss-native.exe
. This file can be found under TeamCity temp folder. The name would be TC-VSS-NATIVE-<some numbers>.exe
. Run this program with /log
switch. For commandline documentation, please start the process.
Microsoft Team Foundation Server Integration
To apply the patch for tfs-native.exe
:
Shutdown TeamCity server
Open
<TeamCity Server>/webapps/root/WEB-INF/classes/bin
folderBackup existing
tfs-native.exe
Copy new file replacing the original one
Start server
To apply full VSS plugin patch:
Shutdown TeamCity server
Open
<TeamCity Server>/webapps/root/WEB-INF/classes/bin
Backup existing
tfs-native.exe
Copy new file replacing the original one
Open
<TeamCity Server>/webapps/root/WEB-INF/classes/jetbrains/buildServer/buildTriggers/vcs/tfs
Backup all files there. (Make sure the are no extra files created under
<TeamCity Server>/webapps/root/WEB-INF/classes
path)Remove all files under that path
Unpack all class files from archive to
<TeamCity Server>/webapps/root/WEB-INF/
Start the server
Capturing Logs From TFS-native
Copy to some folder tfs-native.exe
. This file can be found under TeamCity temp
folder. The name would be TC-TFS-NATIVE-<set of digits>.exe
. Run this program with /log
switch. For command-line parameters help, just run the process with no parameters. Log files would be created under TEMP
directory in TeamCity.NET
folder. For each process new log file is created.
.NET Runners
To patch .NET part of .NET runners:
Open
<TeamCity Server>/webapps/root/update/plugins/
Copy
dotNetPlugin.zip
to temp folderBackup
dotNetPlugin.zip
Extract
dotNetPlugin.zip
Replace contents of
/bin
folder with new files.Pack files again. Make sure there is no files in the root of archive.
Replace
dotNetPlugin.zip
file on the server.All build agents should upgrade automatically.
Run the builds.
To enable logging from .NET runners:
Open
<TeamCity Server>/webapps/root/update/plugins/
Copy
dotNetPlugin.zip
totemp
folderBackup
dotNetPlugin.zip
Extract
dotNetPlugin.zip
Copy
/bin/teamcity-log4net-debug.xml
to/bin/teamcity-log4net.xml
You may patch Log4NET config file if needed.
Pack files again. Make sure there are no files in the root of archive.
Replace
dotNetPlugin.zip
file on the server.All build agents should upgrade automatically.
Run the builds.
By default all log files will be stored under <TeamCity agent>/temp/buildTmp/TeamCity.NET
folder, log files are created for each process.
Thanks for your feedback!