Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents

Overview

This topic describes how to run the Unified Agent from within Microsoft Azure DevOps Server (previously Team Foundation Server).

Prerequisites 

  1. Download and install the Java JRE/JDK. See the Unified Agent prerequisites for supported Java versions.
  2. Set your JAVA_HOME system variable to the relevant Java version (see version in previous step).
  3. Make sure you have the Team Foundation Server 2018 Update 2 or a later version. 

Integrating Microsoft Azure DevOps Server

...

  1. Go to your project settings and select 'Agent Queues'.
  2. Click on 'Download agent' and follow the instructions for setting up the agent and running it.
  3. You should have an agent running at this step.

...

  1. For a new definition, select a relevant source, click 'Continue', then create an 'Empty process'.

...

Go to your 'Tasks'.

...

Enter 'curl' in the 'Tool' field.

Info
titleNotice on curl usage

It is advised to use the curl command only once a week to download the latest version of the Unified Agent for performance reasons and not as part of every build. You can do this using a scheduler task, such as cron.

...

  1. Click on the task from the left-hand section and enter 'Run curl config' in the 'Display name' field.
  2. Enter 'curl' in the 'Tool' field.
  3. Enter '-LJO https://github.com/whitesource/unified-agent-distribution/raw/master/standAlone/wss-unified-agent.config' in the 'Arguments' field. 

...

  1. Click on the task from the left-hand section and enter 'Run FSA' in the 'Display name' field.
  2. Enter 'java' in the 'Tool' field.
  3. Enter '-jar wss-unified-agent.jar -c wss-unified-agent.config -apiKey YOUR_WHITESOURCE_API_KEY -project PROJECT_NAME' in the 'Arguments' field.

...

This page is available at: https://docs.mend.io/bundle/unified_agent/page/microsoft_azure_devops_server__ua__integration.html