all parameters automatically resolved

I think this is simpler, and automatically resolves all parameters?

NOTE: I don't have a local installation of either stash or teamcity so I am completely winging it; this is completely untested!

See
http://javadoc.jetbrains.net/teamcity/openapi/8.1/jetbrains/buildServer/serverSide/SBuildType.html#getResolvedSettings() 

(Was mentioned on the original thread you had with jetbrains)