Require agent run on 32-bit Windows host

As per the title, how do I structure an Agent Requirement such that the build will only be run on a 32-bit version of Windows?

I have a build that can specifically not run on a 64-bit Windows host.

We are running TeamCity 7.1.5.

Thanks,

T

5 comments
Comment actions Permalink

Hi,

To run build only on agents running 32-bit version of Windows you need to add two Agent Requirements: teamcity.agent.jvm.os.name system property must contain the "Windows" string and teamcity.agent.jvm.os.arch must be equal to x86.

0
Comment actions Permalink

Doesn't work. The build happens on a machine running 64-bit Windows (a VM).

0
Comment actions Permalink

Sorry, you are right. It won't work if 32-bit JVM is set on 64-bit Windows.
So, to detect 32-bit OS you need to add agent requirement: parameter env.ProgramFiles(x86) does not exist.

0
Comment actions Permalink

Thanks for both responses. :)

Looks like I won't be able to test this out today, but I'll report back after I've had a chance to test it.

0
Comment actions Permalink

This worked, thanks!

0

Please sign in to leave a comment.