Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Upgrading TFS 2015 Build Agent

I would like to upload on my TFS 2015 some of the build tasks that are available here https://github.com/Microsoft/vso-agent-tasks. I do have a problem with certain task as they do require a minimum agent version of 1.89.0. My build agents are 1.83.2 version. Now, the question is, how do I update my agents for a given pool? If I do right click the agent pool on my TFS and choose update all agents option, nothing happens. I suppose because the latest version of my agent available on TFS is the 1.83.2. Where can I find the latest version of it and how do I update it?

Note I'm working on premises TFS 2015 and not VSO.

Thanks

like image 787
Mario Majcica Avatar asked Oct 22 '15 07:10

Mario Majcica


People also ask

How do I upgrade TFS?

First, install TFS, then run the upgrade configuration wizard. If you move the TFS application tier to new hardware, you must update the URL for the application tier after you finish running the TFS upgrade wizard. After you install TFS, its configuration tool appears automatically.

How do I add an agent to TFS?

In your web browser, sign in to TFS, and navigate to the Agent pools tab: Navigate to your project and choose Settings (gear icon) > Agent Queues. Choose Manage pools.

How do I upgrade from TFS 2013 to 2018?

You need to detach collection from the TFS 2013 before taking backup. Alternatively, you can take backups of all TFS 2013 databases, restore them on your SQL Server 2017 and configure TFS 2018 using upgrade wizard.

Is TFS distributed version control?

Team Foundation Version Control (TFVC) is a centralized version control system. Typically, team members have only one version of each file on their dev machines. Historical data is maintained only on the server.


1 Answers

If you right-click the agent pool and choose "Update all agents", it will upgrade the agents to the version of the on-premise TFS server. For instance, if you initially installed some RC, and upgraded the server to RTM later, some agents might have lower version. Otherwise, as you mentioned, nothing will happen because all agents are up to date.

VSO has a different release model and updates/fixes to its agents are continuously delivered. That's why the version is constantly growing.

Technically it might be possible to grab the source code of the latest VSO agent tasks, and push it to the on-premise version of TFS 2015. However, it is considered an anti-pattern, and the behavior is undocumented and unsupported.

Let me quote build vNext developers from this discussion (see the bottom of the thread):

That is not a supported option. It is very likely that the agent we have in VSO will not work with the on-prem server. You must use the version of the agent that ships with your server.

And:

The behavior is undefined/untested. It may work, may not. The design is for agents to get pulled forward via an auto update process downloaded from your service. The auto update process may alter configs/layout on disk, whatever. That future agent might call REST apis that don't exist, etc... The primary focus for agents is on forward compat so they can lazily get upgraded (via task minimum agent demand, on restart or eventually a scheduled job).

like image 107
Yan Sklyarenko Avatar answered Sep 27 '22 16:09

Yan Sklyarenko