I wrote a plugin which uses Active Objects to store some configuration data.
When running the task on the server nothing is wrong and my service is available. When running the task on a remote agent my task throws a nullpointerexception on execution, because my sevice is not available.
Is it possible to acces the configuration data or send it to the remote agent in some way?
(for a bit of code and stacktraces: https://bitbucket.org/stefankohler/bamboo-twitter-task/issue/1/nullpointerexception-running-task-on)
Community moderators have prevented the ability to post new answers.
Hi Stefan,
Unforuntately, services such as active objects and the Shared Access Layer are not available on remote agents.
In order to send data back to the agent you need to put data in the taskContext.getBuildContext().getBuildResult().getCustomBuildData() map and then implement a Build Processor Server module that persists the data to Active Objects.
Also be aware that for Bamboo, Active Objects is an alpha API as we have not yet implemented Backup and Restore functionality for this data.
Cheers,
James
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.