Public download of latest buildAgent.zip for rolling a packer AMI
We're rolling our build agents using Packer. For Windows, there's a nice Chocolatey package for the build agent. But on Linux, there doesn't seem to be any public place to fetch the latest agent from. No apt repo, no snap package, not even a URL I could find. I can't use our own TeamCity instance, because of the 2FA auth that's in front of it.
Is there URL where the latest buildAgent.zip package is always available? Or am I Doing It Wrong. I guess I could get Packer to install Docker and then run the Docker agent, but this seems a bit unnecessarily meta, plus I have to install a whole lot of build dependencies in the environment, so I'd have to roll my own docker image.
Please sign in to leave a comment.
Hi Timothy,
I'm not aware of third party systems that provide this kind of service, so we'd still recommend going through your own instance. The zip installer is in the installation directory and there is a direct link to it via <teamcity_url>/update/buildAgent.zip where you don't need to go through TeamCity's authentication (you can access even without logging in into the server). If you have a separate 2fa service that also blocks that, it might make sense to take it into your own hands to expose the URL or the zip file somewhere else. The main reason for this is that the build agent needs to be of the exact same version than your own server. While TeamCity will automatically upgrade or downgrade the build agents to match it, using your own installed version makes this process much faster.
You might be able to use our public teamcity server at teamcity.jetbrains.com using the same URL mentioned before, but please consider that we have a separate schedule for upgrading that server (usually ahead of release), so you might have a number of instances where the server would be out of sync with our last public release.
Thanks Denis, great advice.