Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Installing a Linux Agent for VSTS Build Has Never Been Easier

DZone's Guide to

Installing a Linux Agent for VSTS Build Has Never Been Easier

How to install the new version of the VSTS Cross Platform Agent on Linux.

Free Resource

Migrating from On-Prem to Cloud Middleware? Here’s what Aberdeen Group says leading companies should be considering. Brought to you in partnershp with Liaison Technologies

If you installed Linux Agents for VSTS vNext build in the past, you already know that it was a simple experience, especially because the agent was installed with npm, so it is a matter of a couple of commands.

The agent is undergoing a substantial change, and in GitHub there is a project about VSTS Cross Platform Agent (CoreCLR), a new version of the agent, entirely written in CoreCLR that will substitute the closed source Windows agent and the actual XPlat agent. This version of the agent is still work-in-progress, and we can expect a preview for OSX and Linux in the next month. Until now, to run vNext build on linux, you should use the XPlat Agent.

Installing the actual xpPlat agent is really simple, just create a folder where you want to install the agent, open a bash in that folder and then issue the command:

curl -skSL http://aka.ms/xplatagent | bash

This will download an install script, and does everything for you: installing the prerequisite, downloading, and installing everything. At the end of the script you should only execute:

./run.sh

To start configuration of the agent. The official guide suggest you to use Personal Access Token, but standard alternate credentials are fine, if the user is part of the Agent Pool Administrators and Agent Pool Service Account.

Once everything is configured, the agent is ready to run your builds.

image

Figure 1: Agents configured and running on Linux CentOS machine

Is iPaaS solving the right problems? Not knowing the fundamental difference between iPaaS and iPaaS+ could cost you down the road. Brought to you in partnership with Liaison Technologies.

Topics:
team collaboration ,visual studio ,linux ,centos

Published at DZone with permission of Ricci Gian Maria, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

THE DZONE NEWSLETTER

Dev Resources & Solutions Straight to Your Inbox

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.

X

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}