Password inheritance no longer working for sub projects
At some point, we began finding that password inheritance in our TeamCity on premise server stopped working. We defined a password as such in a certain project.
object Project : Project({
id("Mobile")
name = "Mobile"
description = "Parent project for all mobile builds/subprojects"
params {
param("username", "username")
password("password", "credentialsJSON:c2b3d413-bcf7-4e43-8cd3-e9ea3c1028c5")
}
subProject(subProject)
}
Builds in sub projects have always been able to reference the "password" parameter. However, at some point last week, this inheritance stopped working, and builds in subprojects reference the password as "credentialsJSON:c2b3d413-bcf7-4e43-8cd3-e9ea3c1028c5" rather than the underlying password.
Is there a way to make subprojects use the previously defined password in the parent project after they stop being able to discover the underlying value?
Please sign in to leave a comment.
I discovered this was due to passwords not being correctly registered in the root project. After fixing the issues in the "Server Health" section of Administration settings, the problem went away. I'm still unclear as to _why_ the passwords stopped being recognized by our on premise server, but the fix was straightforward.