Need help on detecting changes project_config
Answered
Hi team,
I am working in a team managing a TeamCity version: TeamCity Enterprise 2019.2.4 (build 72059)
We manages several hundreds of projects with hundreds of agents, so it became a problem when we want to update agent images in different cloud profiles. We found that we can edit project-config.xml file under root project to make changes to the project config. TeamCity picks up the change in the UI after a few seconds in our other setup with the same versions but TeamCity Professional. However, our Enterprise version does not pick up the change on the xml file after waiting for more than an hour. Any thoughts on what may be the reason? Is there a way for us to set TeamCity to check config in a certain frequency? Let me know if there is any other information you need. Thanks.
Please sign in to leave a comment.
Hello Shikang,
Yes indeed, TeamCity monitors the project configuration folder for any changes and will reflect them on the UI as they are detected; however, it is not recommended to change the configuration via direct file edit, in particular because if server is busy the monitor thread may miss some of the changes. If you would like to make changes to the cloud profile configuration, could I suggest to consider Versioned Settings feature instead?
It allows to store the project settings on a VCS of your choice; first of all, this allows for easy backup-restore logic, but a more relevant use case is about defining settings programmatically (using the Kotlin DSL; feature also allows to store XML files on the VCS, and you could edit them too, but Kotlin DSL allows to define internal classes that you could reuse in the agent image definitions so to reduce the amount of work needed to handle the configuration).
Please let me know if this could work for you.