File tree Expand file tree Collapse file tree 2 files changed +9
-7
lines changed
src/PostSharp.Engineering.BuildTools/ContinuousIntegration/TeamCity Expand file tree Collapse file tree 2 files changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ object PublicBuild : BuildType({
6969 }
7070
7171 requirements {
72- equals("env. BuildAgentType ", "docker-win-x64-md ")
72+ matches("teamcity.agent.jvm.os.family ", "Windows ")
7373 }
7474
7575 features {
@@ -147,7 +147,7 @@ object PublicDeployment : BuildType({
147147 }
148148
149149 requirements {
150- equals("env. BuildAgentType ", "docker-win-x64-md ")
150+ matches("teamcity.agent.jvm.os.family ", "Windows ")
151151 }
152152
153153 features {
@@ -215,7 +215,7 @@ object VersionBump : BuildType({
215215 }
216216
217217 requirements {
218- equals("env. BuildAgentType ", "docker-win-x64-md ")
218+ matches("teamcity.agent.jvm.os.family ", "Windows ")
219219 }
220220
221221 features {
Original file line number Diff line number Diff line change @@ -189,10 +189,12 @@ void AddBuildStep( BuildStep newStep )
189189 writer . WriteLine ( ) ;
190190 writer . WriteLine ( " requirements {" ) ;
191191
192- foreach ( var environmentVariable in this . BuildAgentRequirements . Items )
193- {
194- writer . WriteLine ( $ " equals(\" { environmentVariable . Name } \" , \" { environmentVariable . Value } \" )" ) ;
195- }
192+ // TODO: Restore specific agent requirements when JetBrains cloud agent testing is complete.
193+ // foreach ( var environmentVariable in this.BuildAgentRequirements.Items )
194+ // {
195+ // writer.WriteLine( $" equals(\"{environmentVariable.Name}\", \"{environmentVariable.Value}\")" );
196+ // }
197+ writer . WriteLine ( " matches(\" teamcity.agent.jvm.os.family\" , \" Windows\" )" ) ;
196198
197199 writer . WriteLine ( " }" ) ;
198200 }
You can’t perform that action at this time.
0 commit comments