0

I only want the agent I installed on my machine to build when I initiated the build.

Not sure how to set up the agent capabilities.

I want the agent to only run when I initiated the build.

3 Answers3

1

Can I configure the agent capabilities to only build builds initiated by me and not other developers

You can set the Security of your build agent.

Go to Project Settings->Agent pools->Your private Agent->Security, and set all user except you with Reader Role:

enter image description here

With this setting, any other member could not see your private agent in the agent pool list when they queue build, only view it from Agent pools.

Hope this helps.

Leo Liu
  • 71,098
  • 10
  • 114
  • 135
0
  1. You can set the permissions/security for the pipelines to control the build triggers.

  2. To use your own agent, set the demand to your agent name in the demand section of your pipelines as following - agent.name equals YOUR_AGENT_NAME.

Srivatsa Marichi
  • 649
  • 1
  • 5
  • 8
-1

I think you can use agent pools: Agent pools

  1. Create your separate pool.(Creating agent pools)
  2. Reconfigure your build agent to use your pool.
  3. Update your build definition (or clone exiting) to use your pool.
Shamrai Aleksander
  • 13,096
  • 3
  • 24
  • 31