requirements
Configures agent requirements
Example. Requirements for different agent OSes
requirements {
contains("teamcity.agent.jvm.os.name", "Windows")
}
Content copied to clipboard
requirements {
contains("teamcity.agent.jvm.os.name", "Linux")
}
Content copied to clipboard
requirements {
contains("teamcity.agent.jvm.os.name", "Mac OS X")
}
Content copied to clipboard
Example. Requirement for an agent with a running Docker server on Linux OS
requirements {
exists("docker.server.version")
contains("teamcity.agent.jvm.os.name", "Linux")
}
Content copied to clipboard
Example. Requirement for an agent with a specific parameter in its buildAgent.properties
file
requirements {
exists("my.custom.parameter")
}
Content copied to clipboard
Parameters
init
function to initialize requirements