Hi.

Ok, then I understand why this was removed. Thanks.

I will have to change my code and use Agents API. A question about this API 
then, can I update an agent (for example adding environments) while that 
agent is building?

/Tobias

Den onsdag 11 mars 2020 kl. 09:50:17 UTC+1 skrev Kritika Singh:
>
> Hello Tobias,
>
> You can find the discussion around this on: 
> https://github.com/gocd/gocd/issues/911
>
> To give you a brief: Agents were originally stored in the 
> cruise-config.xml. Every time any change occurs, the whole config used to 
> be updated. This takes up a lot of time considering bigger configs. Hence, 
> we decided to move them to DB.
>
> Since, environments are still stored in the config -  Addition of agent 
> via environment API would have required a lock on both config and DB - 
> which could have lead to all sorts of lock and rollback issues. Hence the 
> decision to keep them separate.
>
> From 19.9.0 onwards please use the Agents API (
> https://api.gocd.org/current/#agents) to update the same. You can also do 
> via UI from Agents Page and Environments Page.
>
> Hope this helps!
>
> Thanks
> Kritika
>

-- 
You received this message because you are subscribed to the Google Groups 
"go-cd" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/go-cd/49e8423f-8c35-4aba-b6b0-e121a94bebfe%40googlegroups.com.

Reply via email to