plugins

Home

Plugins

GitHub

Blog

ado-install-agent-as-user

version: 0.0.13 |  date: 01/07/2022 |  Install/configure ado build agent with user privileges |  source code

# ado-install-agent-as-user

Install/configure ado build agent with user privileges


# Install

    s6 --install ado-install-agent-as-user

# Usage

    my %state = task-run "install", "ado-install-agent-as-user", %(
      distro => "https://vstsagentpackage.azureedge.net/agent/2.195.2/vsts-agent-linux-x64-2.195.2.tar.gz",
      url => "https://dev.azure.com/test77",
      agent => "agent01",
      token => "foo-bar-baz-000",
      user => "agent",
    );

    say %state.perl;

    systemd-service "ado-agent", %(
      user => "agent",
      workdir => %state<dir> ,
      command => "/usr/bin/bash --login -c '{%state<command>}'"
    );

# Parameters

## distro

Link to agent distribution tarball

## url

Ado server URL, should include org name

## agent

Agent name. Required. Should not be empty

## token

Ado PAT

## user

Linux user name, agent will run with the user privileges

# Output

## dir

agent working dir

## command

agent run command


# Author

Aleksei Melezhik