On-Premises Agent Installation Guide

System Requirements

  • Operating System: Ubuntu (Debian-based)

  • Ubuntu Version: 18+ LTS

  • Recommended RAM: 2GB

Prerequisites

Before beginning the installation, ensure you have:

  • Access to a terminal with sudo privileges

  • Bitbucket, GitHub, Jenkins, and SonarQube credentials (if applicable)

  • The server's IP address, where the agent will be running, must be whitelisted in Bitbucket/Github/SonarQube Cloud/Server.

Installation Steps

1. Create Workspace Directory

cd ~

mkdir devdynamics-agent

cd devdynamics-agent

2. Download Installation Files

Clone the stormtrooper in the devdynamics-agent directory.

Contact the DevDynamics team to get the Personal Access token necessary to autheticate the clone request.

3. Update System and Install Tools

4. Extract Installation Files

5. Configure Agent Configuration File

Edit the dd-agent.conf file with the following sections:

Common Configuration

GitHub Configuration

  • GITHUB_ENABLED: This must remain true.

  • GITHUB_URL: The base URL for your GitHub application (exclude the port number).

  • GITHUB_PORT: Specify the port (default is 443).

  • GITHUB_API_TOKENS: Add the API token for your GitHub account. We recommend providing at least 3 API tokens to avoid the rate-limiting condition.

  • GITHUB_ORG_NAME: Add your GitHub Organisation's name.

Bitbucket Configuration

  • BITBUCKET_ENABLED: This must remain true.

  • BITBUCKET_URL: The base URL for your Bitbucket application (exclude the port number).

  • BITBUCKET_PORT: Specify the port (default is 80).

  • BITBUCKET_API_KEY: Add the API token for your Bitbucket account.

  • BITBUCKET_USER: Add your Bitbucket username.

Bitbucket Cloud Configuration

  • BITBUCKET_ENABLED : This must remain true.

  • BITBUCKET_CLOUD_API_TOKEN : Add the API token for your Bitbucket account.

  • BITBUCKET_CLOUD_USER: Add your Bitbucket username.

  • BITBUCKET_CLOUD_WORKSPACE: Add the Bitbucket workspace

Jenkins Configuration

  • JENKINS_ENABLED: This must remain true.

  • JENKINS_URL: The base URL for your Jenkins application (exclude the port number).

  • JENKINS_PORT: Specify the port (default is 8765).

  • JENKINS_API_TOKEN: Add the API token for your Jenkins account.

  • JENKINS_USERNAME: Add your Jenkins username.

SonarQube Configuration

  • SONAR_ENABLED: This must remain true.

  • SONAR_URL: The base URL for your SonarQube application (exclude the port number).

  • SONAR_PORT: Specify the port (default is 8765).

  • SONAR_API_KEY: Add the API token for your SonarQube account.

6. Run Installation Script

7. Check the DevDynamics Daemon Service

Configuration Notes

  • Modify configuration values carefully

  • Do not change REQUEST_SIZE_THRESHOLD_IN_BYTES or DD_API_KEY

  • Ensure all URLs and credentials are correct.

Support

For installation issues or questions, contact:

Last updated