Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

XML Templates in webhook-template.xml not loaded until edited #18

Closed
netwolfuk opened this issue Nov 16, 2015 · 0 comments
Closed

XML Templates in webhook-template.xml not loaded until edited #18

netwolfuk opened this issue Nov 16, 2015 · 0 comments
Assignees
Labels
Milestone

Comments

@netwolfuk
Copy link
Member

The file .BuildServer/config/webhooks-templates.xml is watched and reloaded whenever a change happens.
However, when TeamCity first starts up, the file is read but none of the templates appear to load into TeamCity until the file is edited.

tcWebHooks should read the file on startup and load the templates correctly.

@netwolfuk netwolfuk added the bug label Dec 7, 2015
@netwolfuk netwolfuk added this to the v1.1 milestone Dec 7, 2015
@netwolfuk netwolfuk self-assigned this Dec 7, 2015
netwolfuk added a commit that referenced this issue Feb 22, 2016
#18

For some reason, creating the WebHookTemplateFileChangeHandler (with
new) from within the WebHookTemplateManager was getting another instance
of both classes at various times when loading the template list.

Getting spring to create the WebHookTemplateFileChangeHandler appears to
only create one instance of the class, and hence only one instance of
the template list.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant