Project: bamboo
Issue BAM-6969: VariableSubstitutionBean cannot be used in V2 plugins
Any plugin that requires variable substitution via the VariableSubstitutionBean has to be a V1 plugin because the VSB is not exposed to V2 plugins. This was discovered during: https://studio.plugins.atlassian.com/browse/BPBC-41 Emails were exchanged regarding this as well: Mark Chai: ------------- The VSB is a prototype scoped bean so it can't be made available in OSGI. I'm not 100% sure if it _has_ to be a prototype (it does access the AdminConfigManager but doesn't seem to cache anything). If you have Bamboo building from source, you could try to switch the prototype flag off on the application context definition and plugin:available="true" and see if that works. Jonathan Doklovic (response): ----------------------------- I just updated the applicationContextCommon.xml inside of bamboo-agent-core within the container that amps uses. Removed the prototype scope and added plugins:available="true". This has no effect. When I run my plugin, the VSB still does not get injected into my action. :( http://www.sadtrombone.com/
Story points: 3