TFS 2018 Update 1自动构建系统安装配置方法咨询
Hey there! I totally get the confusion here—Microsoft changed how build agents are set up starting with TFS 2017, so the old Management Console workflow you’re used to no longer works. Let’s walk through the correct, up-to-date steps to get your team’s auto-build system running:
Step 1: Access the TFS Web Portal
First, log into your TFS web interface (typically at http://<your-tfs-server>:8080/tfs). Navigate to your team project collection.
Step 2: Go to Agent Pool Settings
Click the gear icon ⚙️ in the top-right corner of the portal, then select Agent pools from the dropdown menu.
Step 3: Create or Select an Agent Pool
- If you don’t have a dedicated pool for your team, click New agent pool to create one (name it something descriptive like "Team Core Build Pool").
- If you already have a pool set up, select it from the list.
Step 4: Download the Build Agent
Inside your target agent pool, click the Download agent button. Choose the version that matches your agent machine’s OS (Windows, Linux, or macOS) and save the package.
Step 5: Configure the Agent on Your Build Machine
- Extract the downloaded package to a folder on the machine that will run builds (this machine needs network access to your TFS server).
- Run the configuration script:
- Windows: Open Command Prompt, navigate to the extracted folder, and run
config.cmd. - Linux/macOS: Open a terminal, navigate to the folder, make the script executable with
chmod +x config.sh, then run./config.sh.
- Windows: Open Command Prompt, navigate to the extracted folder, and run
- Follow the on-screen prompts:
- Enter your TFS server URL (e.g.,
http://<your-tfs-server>:8080/tfs). - Pick an authentication method (domain credentials or a Personal Access Token with build permissions).
- Select the agent pool you created/selected earlier.
- Give the agent a unique name (or use the default).
- Choose to run the agent as a service (recommended for persistent, background builds) or interactively.
- Enter your TFS server URL (e.g.,
Step 6: Start the Agent
- Windows: If you installed it as a service, run
./svc startto launch it. For interactive mode, userun.cmd. - Linux/macOS: Run
./run.shto start interactively, or set it up as a system service for auto-start on boot.
Why the Management Console Option Is Unusable
In TFS 2017 and later, the "Build and release" section in the Management Console is just a read-only info panel—all agent management has moved to the web portal. The links there are meant to direct you to the web UI, but the disabled OK button is likely a minor UI glitch or permission quirk. The web portal workflow is now the official supported method.
内容的提问来源于stack exchange,提问作者Isix

