Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Accessing AO and own Service on remote agent

Stefan Kohler
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 4, 2011

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)

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

1 vote
Answer accepted
James Dumay
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 6, 2011

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

TAGS
AUG Leaders

Atlassian Community Events