Web resources for custom reports
Hello!
I've generated a custom html report which uses javascript to display some of its data. Since the js files are static it seems like overkill to add them to the artifacts every time my build is run. Is there a way I can have teamcity host the resources that this report requires?
Thanks.
Please sign in to leave a comment.
Hi Wererogue,
TeamCity cannot directly "host" static files, but it has a very easy workaround that might even have further benefits:
An Artifact is basically any kind of file, and an artifact dependency can be set up to a particular subset of files. With this in mind, you can pin a given build where the artifacts are already posted and reference that pinned build as an artifact dependency from all of those who depend on it. You could also extract them to a separate build configuration to keep them clear and to easily be able to upgrade them.
Thanks! I'll give that a try :)