Skip to content

Commit

Permalink
(build) Make Agent requirements more specific
Browse files Browse the repository at this point in the history
It was found that some builds are failing due to picking up the wrong
build agent, and as a result, some required applications were not
installed, so the build failed.

This commit makes the Build Agent requirements more specific to ensure
that the Agent Name is taken into consideration.  This was done as an
additional check, rather than replacing the existing requirements, as
they are simply being more explicit about the requirement, the existing
requirements are still valid.
  • Loading branch information
gep13 committed May 29, 2024
1 parent 7d47e4b commit 90daed9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .teamcity/settings.kts
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ object Chocolatey : BuildType({

requirements {
doesNotExist("docker.server.version")
doesNotContain("teamcity.agent.name", "docker")
}
})

Expand Down Expand Up @@ -150,6 +151,7 @@ object ChocolateySchd : BuildType({

requirements {
doesNotExist("docker.server.version")
doesNotContain("teamcity.agent.name", "docker")
}
})

Expand Down Expand Up @@ -216,6 +218,7 @@ object ChocolateyQA : BuildType({

requirements {
doesNotExist("docker.server.version")
doesNotContain("teamcity.agent.name", "docker")
}
})

Expand Down Expand Up @@ -286,6 +289,7 @@ object ChocolateySign : BuildType({

requirements {
doesNotExist("docker.server.version")
doesNotContain("teamcity.agent.name", "docker")
}
})

Expand Down Expand Up @@ -340,6 +344,7 @@ object ChocolateyDockerWin : BuildType({
requirements {
contains("docker.server.osType", "windows")
exists("docker.server.version")
contains("teamcity.agent.name", "docker")
}
})

Expand Down Expand Up @@ -452,5 +457,6 @@ object ChocolateyPosix : BuildType({
requirements {
contains("docker.server.osType", "linux")
exists("docker.server.version")
contains("teamcity.agent.name", "docker")
}
})

0 comments on commit 90daed9

Please sign in to comment.