You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
I would like to know if it is possible to call the Bamboo api from a task (for example, Script type), the important thing is that it can be called with the credentials of the user who is logged into bamboo.
Is there a variable with the credentials of the user who is logged into bamboo?
or is it necessary to use plan level variables with credentials to do this?
There's no problem with it.
Refer to this to learn more about api.
I call it from PowerShell scripts with invoke-webRequest under service accounts creds. I don't know, unfortunately, about any way to extract user's creds from the runtime. However, our deployment is old enough - check latest releases documentation of the Bamboo.
Don't forget to prepare credentials correctly if you will be using PowerShell.
Important: don't forget to append a call with "?os_authType=basic" or you requests will fail.
I don't like idea to use Bamboo secret variables to store passwords and as I remember it was causing issues when I was preparing creds for PowerShell requests. I'm using Windows Credentials Manager to store service account credentials instead of Bamboo offering (creds update will occur with standard automation from the IT/security side and I will invoke them securely to the script).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.