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
class="com.blazemeter.bamboo.plugin.SettingValidationAction">
<description>
Validates userKey, serverUrl, testId.
</description>
</preBuildQueuedAction>
SettingsValidationAction
@Component
public class SettingValidationAction implements CustomPreBuildAction {
@Nullable
@Override
public ErrorCollection validate(final BuildConfiguration buildConfiguration) {
buildConfiguration.getProjectConfig();
return null;
}
@Override
public void init(@NotNull final BuildContext buildContext) {
}
@NotNull
@Override
public BuildContext call() throws InterruptedException, Exception {
return null;
}
}
After I’ve built & installed plugin, this action is not executed.
Am I doing everything correctly ?
Thanks!