Agent Push Kotlin DSL

Is there any documentation on the  kotlin dsl for agent push? I can ref  it from the kotlin  dsl for the CloudProfile feature but i cant find anything about creating one from DSL. I've had to create it via the UI then update my Project.kt to ref its ID which is a real PITA

0
2 comments

Hi,

I'm not sure I understand your question. Agent push is a feature activated either manually to install agents to machines, or that can be tied to a pre-existing preset for cloud profiles. If you can create the cloud profile, then you should be able to simply add the already existing preset to the cloud profile. Am I missing something?

If you mean creating presets, I'm afraid this aren't available right now. Presets are managed at a server level, while the DSL handles project-related settings. If you would like to be able to create agent push presets from DSL, please open a request in our tracker here: https://youtrack.jetbrains.com/issues/TW, and please describe your scenario and why the other solutions aren't good for it.

Also, if you are using a cloud profile, wouldn't it make more sense to simply add the build agent directly to the images instead of relying on agent push every time?

0
Avatar
Permanently deleted user

Im asking more on how to do it from pure DSL so that it can be automated instead of doing it through the UI

0

Please sign in to leave a comment.