BuildStatusService not found

I want to write a BitBucket hook which uses the BuildStatusService to retrieve the build statuses against a particular commit. I’ve tried adding this to the constructor of my hook, but I see the following error:

Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type ''

Does anyone have any ideas how to resolve?

1 Like

Investigation depends on whether you are using Atlassian spring scanner or the ‘classic’ component-import in Atlassian-plugin xml. Can you elaborate and post some code snippets?