microsoft / azure-pipelines-agent

Azure Pipelines Agent 🚀
MIT License
1.72k stars 867 forks source link

Is it possible to update the Agent using the command line? #4397

Closed KingstonFE closed 6 months ago

KingstonFE commented 1 year ago

Describe your feature request here

Sometimes, automatic updates are not feasible in certain environments. Can I download the new version of the azure-pipelines-agent package and use the Command line to update the current Self-Agent version?

DmitriiBobreshev commented 1 year ago

Hi @KingstonFE, unfortunately, we don't have a command line argument for an update, but as a temporary solution you could use bash or cmd template, basically the script just links new version with bin folder.

We'll try to implement an agent update via the cmd interface in the future.

edwardkuo commented 1 year ago

I also believe that having an offline installation method is very important.

tinylabspace commented 1 year ago

I might say that is possible I've done something similar. It isn't updating the currently installed agent but scripting the replacement of an agent. Run a "config.cmd remove ...." against the old agent and then a "config.cmd /unattended ..." to configure a new one using the new version. Or use the replace switch.

github-actions[bot] commented 6 months ago

This issue has had no activity in 180 days. Please comment if it is not actually stale