Tag: 组态

如何隐藏Kotlin TeamCity的自定义构建步骤中的参数?

我试图设置TeamCity,使用配置作为与Kotlin的代码。 我正在编写构建包装,所以我可以隐藏默认的公开配置,只公开重要的参数。 这将允许我阻止类的用户更改会导致构建错误的值。 我要这个: steps { step { name = "Restore NuGet Packages" type = "jb.nuget.installer" param("nuget.path", "%teamcity.tool.NuGet.CommandLine.3.3.0%") param("nuget.updatePackages.mode", "sln") param("nuget.use.restore", "restore") param("sln.path", "path_to_solution") //parameter here param("toolPathSelector", "%teamcity.tool.NuGet.CommandLine.3.3.0%") } …是这样的: MyBuildSteps.buildstep1("path_to_solution") 以下是步骤的功能签名: public final class BuildSteps { public final fun step(base: BuildStep?, init: BuildStep.() -> Unit ): Unit { /* compiled code */ } } […]