Skip to content

Instantly share code, notes, and snippets.

View focusthenflex's full-sized avatar

Andrew Francisque focusthenflex

View GitHub Profile
@focusthenflex
focusthenflex / Setup_Self_Hosted_Build_Agents.sh
Last active October 5, 2023 10:46
Adding Self-Hosted Build Agents to Azure DevOps
#!/bin/bash
# Asks user to provide information needed to create agent(s)
prompt_for_missing_variables() {
# Prompt for project URL (i.e. https://dev.azure.com/TeamNameHere/)
url_regex="((http|https):\/\/)?dev\.azure\.com\/[a-zA-Z0-9-]+(\/)?"
if [ -z "$url" ] ;
then
echo -e "\nPlease type in server url: "
read -r url