I create plugin for bamboo and me need find the logged username in Bamboo.
How get her?
I finding https://developer.atlassian.com/confdev/development-resources/confluence-developer-faq/how-do-i-find-the-logged-in-user
but for Bamboo doesn't work.
Please help.
You can use BambooAuthenticationContext to retrieve the current user.
You have an example?
Unfortunately, I do not have anything that I can share. It is pretty straight forward though. Inject the service like any other service and invoke the getUser method to retrieve the logged in user.
getUser returns - null. It's doesn't work
getRuntimeTaskContext is deprecated
It's deprecated for com.atlassian.bamboo.v2.build.CommonContext, but not for com.atlassian.bamboo.task.CommonTaskContext
It looks like you're new here. Sign in or register to get started.