Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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.

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

 For example:

Code Block
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:

Code Block
[

    {

        "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:

Code Block
[

    {

        "Group": "QA",

        "Status": "Not found"

    }

] 

...