diff --git a/scripts/host/install_agent.sh b/scripts/host/install_agent.sh index 8453bbce..e7e94179 100755 --- a/scripts/host/install_agent.sh +++ b/scripts/host/install_agent.sh @@ -81,7 +81,7 @@ fi # Get desired release version from GitHub AGENT_VERSION=$(curl https://api.github.com/repos/microsoft/azure-pipelines-agent/releases/${AGENT_VERSION_ID} | jq ".name" | sed -E 's/.*"v([^"]+)".*/\1/') -AGENT_PACKAGE="vsts-agent-linux-x64-${AGENT_VERSION}.tar.gz" +AGENT_PACKAGE="pipelines-agent-linux-x64-${AGENT_VERSION}.tar.gz" AGENT_URL="https://vstsagentpackage.azureedge.net/agent/${AGENT_VERSION}/${AGENT_PACKAGE}" # Setting up directories diff --git a/scripts/host/prepare_agent.ps1 b/scripts/host/prepare_agent.ps1 index f34df58b..b89938c4 100644 --- a/scripts/host/prepare_agent.ps1 +++ b/scripts/host/prepare_agent.ps1 @@ -107,7 +107,7 @@ if (Test-Path (Join-Path $pipelineDirectory .agent)) { # Get desired release version from GitHub "https://api.github.com/repos/microsoft/azure-pipelines-agent/releases/{0}" -f $AgentVersionId | Set-Variable agentReleaseUrl $agentVersion = $(Invoke-Webrequest -Uri $agentReleaseUrl -UseBasicParsing | ConvertFrom-Json | Select-Object -ExpandProperty name) -replace "v","" -"vsts-agent-win-x64-{0}.zip" -f $agentVersion | Set-Variable agentPackage +"pipelines-agent-win-x64-{0}.zip" -f $agentVersion | Set-Variable agentPackage "https://vstsagentpackage.azureedge.net/agent/{0}/{1}" -f $agentVersion, $agentPackage | Set-Variable agentUrl if (!(Test-Path $pipelineDirectory)) {