Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Current »

The Groups/{Group name}/clear API allows you to remove all the assigned Agents from a certain Build Group, and to move these Agent to the Default Build Group.

You cannot perform the Clear action, if one or more Agents in the specified Build Group are currently participating in a build execution. If an Agent in the specified Build Group is offline, the Clear action can be performed and will be indicated as successful, but the offline Agent will remain in the original Build Group.

Request Syntax

The Groups/{Group name}/clear API request should contain the name of the Build Group you want to clear from Agents.

GET https://{Coordinator IP Address/Hostame}:{Web Access Port}/Groups/{Group Name}/clear

 For example:

https://win10-1:31100/Groups/Dev/clear 

Response Syntax

When the Agents are removed from the specified Build Group, the result is: "Status": "Was cleaned".

For example:

[

    {

        "Group": "Dev",

        "Status": "Was cleaned"

    }

]

Errors

The Clear action will fail in the following cases:

  • The Build Group does not include any Agents.

  • The Build Group does not exist.

  • One or more Agents in the Build Group is currently participating in a build execution.

When the Clear action fails, the result is: "Status": "Not found".

For example:

[

    {

        "Group": "QA",

        "Status": "Not found"

    }

] 

  • No labels