And here’s a short Q&A section based on the questions asked during the webinar:
Q: Can TeamCity reject commits, if the build steps (e.g. running tests, bundling and minifying) are failing?
A: TeamCity can’t reject commits, because a commit done in VCS and TeamCity does not roll-back anything in VCS. But if you make a commit in a branch, you can configure TeamCity to run builds in such branches. Or you can use the so-called Remote run, i.e. send a patch to a server to test it without making a commit. For remote run, you need an IDE with the TeamCity plugin. You can learn more about it on this page.
Q: How do you manage the versioning of your artifacts?
A: If you’re using TeamCity built-in artifact storage, then artifacts are tied to a build. New build means new version of artifacts. If you want some previous version, you can locate it by build number.
Q: So, can the artifacts also be stored in source control?
A: This is usually not recommended, as artifacts can be quite large. TeamCity provides convenient storage of artifacts built into the product. But nothing restricts you from using any other storage if you can publish files there.
Q: Can artifacts be uploaded to remote storage, yet still be available via link, given that it’s possible for the user to retrieve them via http?
A: You can have a build step which uploads artifacts to any place you need. With the help of external plugins you can add build steps like ftp and scp which can simplify this task.
Q: What happens if the artifacts have been cleaned up if you want to rollback a deployment?
A: Then you have to rebuild the build produced these artifacts and then promote it to deployment configuration.
Q: What in your opinion is the biggest advantage of TeamCity that would make a developer team want to switch from Jenkins?
A: Out of the box experience. It just works; no need to search for additional plugins as everything you need is most likely already there. It also comes with decent IDE integration, on-the-fly reporting of results and other unique features. Plus it has a free version as well (limited to 20 build configurations).
Q: Are there any charting options to track inspections/tests completion, etc. from build to build in a visual way?
A: You can configure a chart in TeamCity to show the number of inspections vs. time.
Q: Is it a realistic option to run TeamCity Server and Agent for Node.js project on my MacBook Pro?
A: This depends on the complexity of your build: if it does a lot of CPU-intensive tasks or requires lots of memory, or if the repository is large, you can face some performance issues. On their own, TeamCity and the agent should not use too many resources.
Develop with pleasure!
– JetBrains WebStorm Team
Subscribe to Blog updates
Thanks, we've got you!
Webinar Recording: Signals – The Future of Angular
The recording from "Signals – The Future of Angular" webinar is now available.
Live Webinar: Signals – The Future of Angular
Join us Wednesday, November 29, at 4:00 pm UTC for our free live webinar Signals – The Future of Angular.
Webinar Recording: Coffee Chat About All Things Astro
The recording from "Coffee Chat About All Things Astro" webinar is now available.