Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

View the servers where all Bamboo Deployment Environment Tasks are pointing to

I wanted to know if there is a simple way in Bamboo to see the servers where each of my deployment environment tasks would go if every task was run right now.

Managing a lot of deployment environments is difficult so any idea how we can better manage a list of which servers our build artifacts will be deployed to would be helpful. 

Currently I think the best option is to try to get that info from the database and write a script to return the environments/deployment projects that I want. 

1 answer

0 votes

Hi @MF J,

I'm assuming you are talking about dedicated agents. Agents that will be assigned to a specific environment or deployment project. If this is the case you can use the following query:

SELECT
DP.NAME,
DE.NAME,
DP.PLAN_KEY,
DE.ENVIRONMENT_ID,
DP.DEPLOYMENT_PROJECT_ID,
AA.EXECUTABLE_ID,
AA.EXECUTABLE_TYPE,
Q.AGENT_TYPE,
Q.TITLE,
Q.AGENT_DESCRIPTION
FROM
DEPLOYMENT_PROJECT DP
JOIN
DEPLOYMENT_ENVIRONMENT DE ON DP.DEPLOYMENT_PROJECT_ID=DE.PACKAGE_DEFINITION_ID
LEFT JOIN
AGENT_ASSIGNMENT AA ON (DE.ENVIRONMENT_ID=AA.EXECUTABLE_ID
AND AA.EXECUTABLE_TYPE='ENVIRONMENT')
OR (DP.DEPLOYMENT_PROJECT_ID=AA.EXECUTABLE_ID
AND AA.EXECUTABLE_TYPE='DEPLOYMENT_PROJECT')
LEFT JOIN
QUEUE Q ON Q.QUEUE_ID=AA.EXECUTOR_ID

This query will list all your deployment projects and environments with agents dedicated or not. This information is available through the UI but not consolidated (only checking each agent). With the query you can see the big picture and filter the information you need.
The deployment projects and environments followed by nulls are the ones not dedicated to any agent.

Please keep in mind that you might also have agents dedicated to build projects, plans or jobs and this type of information would require a different query to be seen.

Let me know if this is what you need.

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bamboo

Bamboo 101 Video

G’day Community! As we gear up to introduce Bamboo Data Center to the world, we wanted to make sure that we shared a bit more about Bamboo, the product. Our team has put together an overview video ...

218 views 4 6
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you