Implementing CustomPreBuildAction in Bamboo plugin

Hello to everyone!

I’m implementing plugin for Bamboo and I need to add CustomPreBuildAction
for preparing data before sending it to remote agent with TaskDefinition.

Component definition in atlassian-plugin.xml

          Validates userKey, serverUrl, testId.


public class SettingValidationAction implements CustomPreBuildAction {
    public ErrorCollection validate(final BuildConfiguration buildConfiguration) {
        return null;

    public void init(@NotNull final BuildContext buildContext) {


    public BuildContext call() throws InterruptedException, Exception {
        return null;

After I’ve built & installed plugin, this action is not executed.
Am I doing everything correctly ?