I have two issues with my new cloud plugin, which I would appreciate some help with:
1. For the bundled cloud plugins, started cloud agents are detected as "virtual" and automatically authorized. In building my own cloud plugin, I don't see this behavior, I need to manually authorize the agents as they are started. Do I need to do something special with the agent images that I am starting? Or have I missed something in my code?
2. I have set "Terminate instance after each build" on my cloud profile. However, my code doesn't receive a call to the terminate method after a cloud agent has finished a build. I tried to also set CloudInstanceUserData.setAgentRemovePolicy(CloudConstants.AgentRemovePolicyValue.RemoveAgent) in my code, but that did not help.