powershell - Creating encrypted build parameter in TeamCity 8.0 from REST API -
i'm trying write powershell script creates parameter in teamcity build configuration, simple rest api.
just set authenticated webclient , make put request parameters of build config:
$webclient.uploadstring("http://server:8111/httpauth/app/rest/buildtypes/buildid/parameters/password, "put", "passwordstring")
but parameter contains password , needs stored password type in team city.
i know can change type of parameter manually teamcity's ui there way automate rest api (otherwise i'll doing manually on 100 build configs)
jetbrains got me issue , explained type of functionality not available until release of 8.1
as alternative, there way of defining parameter in build's parent project, parameter inherited builds under project.
it's perfect situation password can stored in root project , inherited automatically across builds.
Comments
Post a Comment