Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/iriw/azure-devops-selfhosted-agent
https://github.com/iriw/azure-devops-selfhosted-agent
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/iriw/azure-devops-selfhosted-agent
- Owner: IriW
- Created: 2022-11-03T22:21:49.000Z (about 2 years ago)
- Default Branch: azdevops_agent_centos7
- Last Pushed: 2023-01-06T22:17:09.000Z (about 2 years ago)
- Last Synced: 2024-11-19T12:18:29.911Z (2 months ago)
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Create locally Linux VM to be used as self-hosted agent for AzureDevOps pipelines
1. Provision VM (here image: CentOS7)
2. Install initial packages (Java11 OpenJDK, Maven, GIT...)## Configure agent and add token for AzureDevOps connection (one-time action)
1. Create directory for agent installation `mkdir myagent && cd myagent`
2. Download and extract installation files
`wget https://vstsagentpackage.azureedge.net/agent/2.211.1/vsts-agent-linux-x64-2.211.1.tar.gz`
`tar zxvf vsts-agent-linux-x64-2.211.1.tar.gz`
3. Run `config.sh` to install and configure agent. You need to have agent pool already created in AzureDevOps. On this step you add Azure DevOps token.
4. `sudo ./svc.sh install vagrant` (by each next VM start agent is started and connected to AzureDevOps automatically).
5. `sudo ./svc.sh start` and check if running `sudo ./svc.sh status`.
6. Check Azure DevOps portal if your agent is available and run sample pipeline defining usage of this agent.