如何使用 Gradle 获取 teamcity 中配置参数的值?

How to get value of Configuration parameter in teamcity using Gradle?

从昨天开始,我一直在尝试获取配置参数的值,但没有成功。在文档中,我可以使用此 teamcity["<property name>"] 调用它,但它不起作用。

假设我有一个名为 "isPaid" 的配置参数。我想在我的 gradle 中获取 "isPaid" 参数值。我怎样才能做到这一点?不应该是

System.getProperty("teamcity[isPaid]")

已尝试同时使用 getProperty 和 getEnv,但仍然无效。有任何想法吗?谢谢

配置参数(无前缀)不会传递到构建中,仅用于在构建配置中共享设置。

https://www.jetbrains.com/help/teamcity/configuring-build-parameters.html