Your browser was unable to load all of the resources. They may
have been blocked by your firewall, proxy or browser configuration.
Press Ctrl+F5 or Ctrl+Shift+R to have your browser try again.
I am looking to automate Quickbuild node replacement (agent launch and teardown)
I was planning to use REST API to perform the below steps:
- launch an agent
- configure user attributes
- authorize the node with quickbuild server
- notify the master to not send new jobs to the node (request drain)
- poll the master to see when the node has no running jobs (drained)
are these operations available through the REST API ? I was not able to find it in the documentation
Build agent can be authorized via:
And user attributes can be populated via:
When tear down build agents, just stop the service gracefully, and QB server will make sure that all running builds finished on the agent before shutdown.
If I run the agent as a console application instead of a service,
is there a way to gracefully stop it without interrupting running jobs ?
I noticed CTRL-C on the console does interrupt jobs running on the agent.
Just tested QB9 and build agent will wait for all steps running on it to complete before shutting down when pressing Ctrl-C. If you have subsequent steps running on this agent also, the build will fail though as there is no way to know if the agent will run subsequent steps or not (agent can be decided dynamically via script etc)