AppVeyor BYOC allows connecting an existing Linux computer (your workstation, cloud VM or the server in your LAN) and running builds directly on the host operating system.
Following cloud configuration wizard is the fastest and the easiest way to configure Linux computer to run your builds. At the end of the wizard you’ll be given a few commands that you run on the target computer to get it up and running in AppVeyor.
In AppVeyor web portal:
Connect-AppVeyorToComputer
cmdlet (source) will configure a new cloud, install AppVeyor Host Agent on the computer and connect it to the cloud.For better understanding/control of the process or troubleshooting below are the instructions for manual configuration of builds on Linux computer.
In AppVeyor web portal:
Build VM
and generate Host agent authorization token (or provide your own - it’s basically AppVeyor Host Agent identifier and the password it connects to AppVeyor with);Linux
as Name and choose Linux
in OS type dropdown;AppVeyor Host Agent is a lightweight daemon (systemd service) running on your Linux machine that connects to AppVeyor and runs your builds.
Download the latest AppVeyor Host Agent:
curl -fsSL https://www.appveyor.com/downloads/appveyor/appveyor-host-agent.deb -o appveyor-host-agent.deb
Install Host Agent service with your <host-authorization-token>
and AppVeyor URL (if connecting to a self-hosted AppVeyor Server installation):
APPVEYOR_URL=https://ci.appveyor.com HOST_AUTH_TOKEN=<host-authorization-token> dpkg -i appveyor-host-agent.deb
Make sure the service is running:
systemctl status appveyor-host-agent
If you need to change Host Agent authorization token to connect the agent to a different cloud you can update its value in /etc/opt/appveyor/host-agent/appsettings.json
file.
After changing authorization token stop Host Agent daemon:
sudo systemctl stop appveyor-host-agent
delete Host Agent database file host-agent.db
in /var/opt/appveyor/host-agent
directory and start Host Agent service again:
sudo systemctl start appveyor-host-agent