Agent System Properties

I have an agent which has .NET V3.5 SDK installed but the System Properties only show up to .NET 2.0?

Is there a way to make it re-check it's properties?

Cheers

Jan.

10 comments

Hello Jan,

Thank you for the question. You may define all those properties by hand
using /conf/buildagent.properties file. But it is an issue for Agent properties autodetection. Could you please write .NET 3.5 version (BETA, BETA2, RTM), Do you have VS2008 installed, what version, Could you please send us ]]>/conf/buildagent.properties

--
Eugene Petrenko
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

I have an agent which has .NET V3.5 SDK installed but the System
Properties only show up to .NET 2.0?

Is there a way to make it re-check it's properties?

Cheers

Jan.



0

I installed the .NET 3.5 SDK and subsequently Visual Studio 2008 RTM on the machine.

My buildagent.properties is as follows:

#Generated properties (see buildAgent.dist.properties for description)
#Fri Nov 30 14:24:35 GMT 2007
serverUrl=http\://iblon333444\:8081
name=iblon111333
workDir=../work
env.JAVA_HOME=c\:
BuildAgent
jre
ownPort=9090

Is there a way I could force it to regenerate?

0

Hello Jan,

Buildagent properties are being looked on every agent start. Please try
to restart build agent to refresh them.
Than check found agent properties on the TeamCity web interface/Agents/]]>/system properties.
Actually I have VS2008 on my Machine too. What path do you expect to see
as .NET 3.5 SDK?
BTW. TeamCity Build agent is able to detect WindowsSDK6 and WindowsSDK6A.

Thanks!

--
Eugene Petrenko
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

I installed the .NET 3.5 SDK and subsequently Visual Studio 2008 RTM
on the machine.

My buildagent.properties is as follows:

#Generated properties (see buildAgent.dist.properties for description)
#Fri Nov 30 14:24:35 GMT 2007
serverUrl=http\://iblonpsd32v098\:8081
name=iblongsw548216
workDir=../work
env.JAVA_HOME=c\:
BuildAgent
jre
ownPort=9090
Is there a way I could force it to regenerate?



0

Tried restarting, no change.

I was expecting to see:
-


DotNetFramework3.5
DotNetFramework3.5_Path C:\WINDOWS\Microsoft.NET\Framework\v3.5
DotNetFramework3.5_x86
DotNetFramework3.5_x86_Path C:\WINDOWS\Microsoft.NET\Framework\v3.5
-



Which is what I see on other agents.

It does show the following however:
-


VS2008
VS2008_Path C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE
WindowsSDK6.0
WindowsSDK6.0A
WindowsSDK6.0A_Path C:\Program Files\Microsoft SDKs\Windows\v6.0A
WindowsSDK6.0_Path C:\Program Files\Microsoft SDKs\Windows\v6.0A
-


0

Hello Jan,

BuildAgent decides to register .NET 3.5 properties iff under the folder
C:\WINDOWS\Microsoft.NET\Framework\v3.5 it is able to locate the following
files
"AddInProcess.exe",
"csc.exe",
"MSBuild.exe",
"Microsoft.WinFx.targets",
"vbc.exe"

Does that true for you .NET Fx distribution?


--
Eugene Petrenko
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

Tried restarting, no change.

I was expecting to see:
---------------------------------------------------
DotNetFramework3.5
DotNetFramework3.5_Path C:\WINDOWS\Microsoft.NET\Framework\v3.5
DotNetFramework3.5_x86
DotNetFramework3.5_x86_Path C:\WINDOWS\Microsoft.NET\Framework\v3.5
---------------------------------------------------
Which is what I see on other agents.

It does show the following however:
---------------------------------------------------
VS2008
VS2008_Path C:\Program Files\Microsoft Visual Studio
9.0\Common7\IDE
WindowsSDK6.0
WindowsSDK6.0A
WindowsSDK6.0A_Path C:\Program Files\Microsoft SDKs\Windows\v6.0A
WindowsSDK6.0_Path C:\Program Files\Microsoft SDKs\Windows\v6.0A
---------------------------------------------------



0

Hmm, all of these files are present and correct

0

Hello Eugene,
Do you use x86 or x64 windows? What version?
What is writen on
HKLM\SOFTWARE\SOFTWARE\Microsoft\.NetFramework\InstallRoot
the registry key.

Please note if you use x64 jvm, please remember to use x64 regedit
--
Eugene Petrenko
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

Hmm, all of these files are present and correct



0

Ok, so I manually entered the following into the buildAgent.properties:

system.DotNetFramework3.5
system.DotNetFramework3.5_Path=C:\WINDOWS\Microsoft.NET\Framework\v3.5
system.DotNetFramework3.5_x86
system.DotNetFramework3.5_x86_Path=C:\WINDOWS\Microsoft.NET\Framework\v3.5

Now when I try and build a .NET 3.5 project I get:

jetbrains.buildServer.RunBuildException: java.io.IOException: Environment variable MSBuild is not defined
jetbrains.buildServer.RunBuildException: java.io.IOException: Environment variable MSBuild is not defined
at jetbrains.buildServer.agent.runner.GenericProgramRunner.run(GenericProgramRunner.java:106)
at jetbrains.buildServer.agent.impl.BuildAgentImpl.startRunner(BuildAgentImpl.java:611)
at jetbrains.buildServer.agent.impl.BuildAgentImpl.runActualBuild(BuildAgentImpl.java:597)
at jetbrains.buildServer.agent.impl.BuildAgentImpl.access$1600(BuildAgentImpl.java:51)
at jetbrains.buildServer.agent.impl.BuildAgentImpl$7.run(BuildAgentImpl.java:523)
at java.lang.Thread.run(Thread.java:595)


Does this give us any clues?

0

Install root is c:\WINDOWS\Microsoft.NET\Framework\

The machine is running x86 Windows XP

0

Hello Eugene,

Does TeamCity able to detect .NET Fx 2.0? If not, please make sure to set
MSBuild version to .NET Fx 3.5

Could you please attach build agent logs to me. Those logs are in ]]>/logs.
Thanks!


--
Eugene Petrenko
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

Ok, so I manually entered the following into the
buildAgent.properties:

system.DotNetFramework3.5
system.DotNetFramework3.5_Path=C:\WINDOWS\Microsoft.NET\Framework\v3.5
system.DotNetFramework3.5_x86
system.DotNetFramework3.5_x86_Path=C:\WINDOWS\Microsoft.NET\Framework\
v3.5

Now when I try and build a .NET 3.5 project I get:

jetbrains.buildServer.RunBuildException: java.io.IOException:
Environment variable MSBuild is not defined
jetbrains.buildServer.RunBuildException: java.io.IOException:
Environment variable MSBuild is not defined
at
jetbrains.buildServer.agent.runner.GenericProgramRunner.run(GenericPro
gramRunner.java:106)
at
jetbrains.buildServer.agent.impl.BuildAgentImpl.startRunner(BuildAgent
Impl.java:611)
at
jetbrains.buildServer.agent.impl.BuildAgentImpl.runActualBuild(BuildAg
entImpl.java:597)
at
jetbrains.buildServer.agent.impl.BuildAgentImpl.access$1600(BuildAgent
Impl.java:51)
at
jetbrains.buildServer.agent.impl.BuildAgentImpl$7.run(BuildAgentImpl.j
ava:523)
at java.lang.Thread.run(Thread.java:595)
Does this give us any clues?



0

Please sign in to leave a comment.