youngmon/atlassian-qna huggingface dataset:
Agent offline alert
Asked by Cameron Ferguson:

Sometimes we don't know if an Agent has been offline until we go run a build and get stuck in a queue... is there any way to have email alerts sent out if an agent goes offline or has been offline for a specified amount of time?


Answers:
author: James Dumay
body: Hi Cameron,  
There is a [feature request](https://jira.atlassian.com/browse/BAM-2489) open to implement this. However, it is possible to [create this notification](https://developer.atlassian.com/display/BAMBOODEV/Building+a+Notification+Plugin) via a plugin if you need it by listening for an [AgentOfflineEvent](http://docs.atlassian.com/atlassian-bamboo/2.7/com/atlassian/bamboo/v2/build/events/AgentOfflineEvent.html).

Thanks  
James

comments: author: Cameron Ferguson
body: Thanks again for the feedback James. Definitely voting/watching that activity
Does excluding changesets to avoid starting the build work for a git repository?
Asked by gaff78:

Hi,

I want the git commits made by the Maven Release plugin not to start the build. I've tried excluding changeset using regular expression, but that seems not work for me. Has anyone successed in excluding the changesets?

Thanks,

-Alexey


Answers:
author: PiotrA
body: Try adding "\\n" at the end of your Repository-\>Advanced Options-\>Exclude Changesets configuration. So instead of

\\\[maven-release-plugin\\\].\*

I'd like you to use

\\\[maven-release-plugin\\\].\*\\n

Does that help?

comments: author: gaff78
body: Yep. It works. Thank you!


author: Jonathan Reyes
body: Hi, I tried excluding a subfolder of a directory specified in "Include / exclude files" with "Include only changes that matches to the following pattern set. It seems that "Exclude changesets" pattern is then ignored. Can you affirm that this is the expected behavior? If so, is there a workaround?
Bamboo 4 LDAP integration not working as I'd expected
Asked by Jason Wandel:

I've followed <http://confluence.atlassian.com/display/BAMBOO40/Integrating+Bamboo+with+LDAP> for my Bamboo 4.01 WAR install deployed through Tomcat 6. Unfortunately, it doesn't appear to have worked - though it may be a case of I'm expecting something different to the way Bamboo works.

I've verified that my atlassian-user.xml works through the use of Paddle and Jxplorer. So, earlier on today I deployed that file to Bamboo and restarted tomcat - but nothing appears to have happened.

I'd expected Bamboo to then search the LDAP server and create users based on all the people it could find, which I could then simply set into the relevant groups (noting that because of BAM-1963 as noted on that page I wouldn't see them listed). Instead, the list of users both within Bamboo and in the database backend behind it remained the same, and the users can't login.

At the time I tried this, we didn't have a "bamboo-users" group which I remember reading somewhere that LDAP users are imported into... I don't know if this had any impact.

I should note that the read-only external user management is off (unticked).

Anyway, was my expectation correct... or does Bamboo simply try to use LDAP to authenticate any new users but each user still has to create an account with Bamboo?

TIA


Answers:
author: bmccoy
body: Hi,

Bamboo won't copy all the users from LDAP into the database (so the list of users in the database will remain unchanged). But you should see them in the "users" page in our administration and they should be able to login. You do not have to manually create accounts in Bamboo.

It sounds like something else is wrong with the configuration (or Bamboo).

Its probably best to create a support request, <https://support.atlassian.com/> and they can guide you further.

Cheers,

Brydie

comments: author: Jason Wandel
body: Brydie, thanks for the response. I can see by looking at the ticket BAM-1963 that it was fixed in v2.1.2... so why is the comment that not all users/groups will be listed still present in doco for v4? That comment really needs to be removed because it is more than a little confusing...

I tried a slightly different config getting Bamboo to search through the hierarchy with setting a higher-level baseUserNamespace OU and setting userSearchAllDepths to true... but this didn't help either.

I'll go raise that support ticket now.


Tags: ldap
Can I combine plans, logs, and results from two Bamboo servers onto one?
Asked by Paul Holbrook:

Right now we have two Bamboo servers running two different versions of Bamboo. We'd like to upgrade both instances, and then combine all the plans, results, logs, and artifacts from one server onto the other.

Obviously, if you're not careful this could result in wiping out the existing plans on the target server.

Is there a way to do what we want?


Answers:
author: Przemek Bruski
body: I am not aware of any tool that will let you do it, sorry.
Repository Triggers in OnDemand SVN and Bamboo
Asked by Subash Kalbarga:

Hi

I am trying to configure repository triggered builds for a Bamboo plan. I do not want to poll the repository. Instead I want to trigger a build on changes using Push.

Is this possible using OnDemand?

The doucmentation suggests configuring Bamboo to a Push Strategy and adding a SVN post commithook to trigger bamboo plans. Howver I assume I cannot do that on a SVN hosted by OnDemand

Is this a valid scenario and should I be able to accomplish this? I did try leaving the Build Strategy for the Plan at "Repository Triggers..." and left the Optional TriggerIP address to empty. However I do not see the plan being run on a commit.

Thanks in Advance.


Answers:
author: Przemek Bruski
body: Try contacting support and asking them to add the required repository hooks. The worst case scenario is that they tell you it's not supported on OnDemand.


Tags: cloud

integration
How do I store settings per plan in a repository plugin?
Asked by Jason Huntley:

I can't seem to find a way to get the plan key from prepareConfigObject:

```
public void prepareConfigObject(@NotNull BuildConfiguration buildConfiguration) {}
```

I need to store specific configuration items for a repository plugin I'm creating per plan. It's unlikely the same repo settings will be used for every plan.

What I actually need to store is a configuration file per plan. This has to be done as a file and can't be done using the configuration.setProperty mechanisms. I've tried getting the base working directory, but that only takes me to the build-dir directory:

```
File parentDirectoryFile=this.buildDirectoryManager.getBaseBuildWorkingDirectory();String parentDirectory=parentDirectoryFile.getAbsolutePath();String workingDirectory=parentDirectory+File.separator+this.getShortKey(); File f = new File(workingDirectory+"/config.txt");
```

I need access to the plan directories under build-dir so I can store settings per plan. I don't know, maybe I'm going about this the wrong way. Any input is greatly appreciated.


Answers:
author: Przemek Bruski
body: Settings per plan: buildConfiguration object is already per-plan, i.e. whatever you store in it or retrieve from it will be for specific plan.

Accessing build directory: If you have access to BuildContext, you should access the build directory with com.atlassian.bamboo.v2.build.BuildContextHelper#getBuildWorkingDirectory .

If you don't have access to it, I'd need to know more about your use case.

comments: author: Jason Huntley
body: I'm working a thrid party authenticator, which requires a file handle as a parameter, and the AbstractStandaloneRepository class. WHen you store your settings in the repository settings tab under your plan, prepareConfigObject get's called, then validate. BuildContext is not accessible from within this method. I need to create this file handle somehow so it's saved per plan. RIght now, I can store in a separate directory under build-dir, but when I setup a new plan, this will get overwritten. I need to have this file saved per plan. I wish the authenticator didn't work this way, and only took the ssh private key as string, but it has to have a file :(


author: Przemek Bruski
body: Working directory is not your only problem - change detection will need to authenticate too.

Why not have a separate directory with your authentication files?


author: Jason Huntley
body: Currently, I'm trying to create a separate directory for this purpose, or at least one nested in the build plan directory. There's no guaruntee they will use the same key for every plan as projects vary. Do you have an example in mind?


author: Przemek Bruski
body: The problem is that during change detection you will not have a build directory because the build has not yet started (and potentially won't start). You need to have a yet different directory.
Only release certain JIRA Tickets in Bamboo
Asked by Karan Shah:

Hi,

My question is simply explained by an example:

Current Version: 1.2  
Unreleased JIRA tickets for version 1.3 which have commits already: 5

Now if I want to only release say 3 JIRA tickets out of 5 for the next release, can I make it so that commits attached to these 3 JIRA tickets are the ONLY ones that are implemented in version 1.3?

In other words, can Bamboo release in such a way that only the changes from these 3 JIRA tickets are present in 1.3 and the ALREADY COMMITTED changes for the other 2 JIRA tickets are not included and their version changed to 1.4?

Hope it's not too confusing!

Thanks,  
Karan


Answers:
author: Przemek Bruski
body: No, Bamboo cannot do it.

You have to make sure that the VCS branch for a given release contains only the tickets actually scheduled for that release.
Ant-contrib plugin with bamboo
Asked by Sam Bakus:

On my machine, I have a plugin for Ant. It's called ant-contrib. It was easy to install. I just put the ant-contrib-0.3.jar in the lib folder of Ant. It lets me do some cool things with Ant, including if statements. Now, I want to run my build scripts using Bamboo. Currently my scripts fail because the version of Ant that bamboo uses does not have these capabilities. How do I install plugins like ant-contrib in bamboo?


Answers:
author: Przemek Bruski
body: You only have to point Bamboo to your customised Ant version. You have to define it as an Executable.

For example, if you're using local agents, go to Administration/Server Capabilities and add Ant executable.

comments: author: Sam Bakus
body: The "Server Capablities" button is not visible for me. Is it because I don't have proper permissions? Or because I'm using OnDemand?


author: Przemek Bruski
body: On OnDemand, you have to define the capability for the Image you're using.

I assume you've uploaded your Ant plugin on the EBS or created your own custom image?


author: Sam Bakus
body: Like this?

<https://confluence.atlassian.com/display/BAMBOO40/Creating+a+custom+elastic+image>


author: Przemek Bruski
body: Yes, but it's easier to set up an EBS: <https://confluence.atlassian.com/display/BAMBOO40/Configuring+elastic+instances+to+use+the+EBS>


Tags: ant

cloud
Authenticating against multiple LDAP servers
Asked by Jason Wandel:

We have a situation where some of our staff are overseas; each office has a separate LDAP server. Our main server is set up with referrals to the other servers if a user doesn't authenticate here.

I'm now trying to set up Bamboo so it will create accounts and authenticate them against the different servers. To do this, I've added a second \<ldap\> tag structure to atlassian-user.xml, and was wondering if this is the correct thing to do?


Answers:
author: Jason Wandel
body: Reading through the Bamboo docs again, I came across the following on <http://confluence.atlassian.com/display/BAMBOO40/Integrating+Bamboo+with+LDAP:>

Bamboo can be integrated with LDAP for the authentication and authorisation of LDAP users. The [Integrating Bamboo with LDAP](http://confluence.atlassian.com/display/BAMBOO40/Integrating+Bamboo+with+LDAP) instructions below describe how you can set this up. Please note that Bamboo does not currently support multiple LDAP servers. If you need to connect to multiple LDAP servers, please consider using Atlassian's [Crowd](http://www.atlassian.com/software/crowd).

So, it appears that this isn't possible without Crowd... but it appears our LDAP setup isn't best practice, so we'll see what we can do with that instead.


Tags: ldap
Bamboo Create Issue Feature Question
Asked by James Knight:

Would it be possible to have the create issue function in bamboo select as the Jira project in the pull down menu the jira project which is linked to the bamboo project (via an application link) and not just the first one in alphabetical order?


Answers:
author: James Dumay
body: I've created an[Improvement Request](https://jira.atlassian.com/browse/BAM-11703) for this. Thanks!
Incorrect documentation regarding PostgreSQL driver inclusion with Bamboo
Asked by Jason Wandel:

<https://confluence.atlassian.com/display/BAMBOO40/PostgreSQL+8.2> states that the PostgreSQL driver is included with Bamboo, but the driver is only included in the installer package, not in the WAR-only package.

<br />


Answers:
author: Sultan Maiyaki
body: Hi Jason,

I have investigated this further and subsequently created a task to our technical writers to update our docs. You can view this ticket; [https://jira.atlassian.com/browse/BAM-11666](https://jira.atlassian.com/browse/BAM-11666%C2%A0) and add yourself as a watcher.


author: Sultan Maiyaki
body: In the installation guide, we have mentioned as thus:

```
Please note, the JDBC driver for PostgreSQL 8.2 (PostgreSQL Driver 8.4.x) is bundled with Bamboo. You do not have to download and install the driver.
```

This means that the Postgres driver is included in all distributions ranging from the .exe, lib,zip and the WAR distributions.

comments: author: Jason Wandel
body: Quoting Renen Battaglin \[Atlassian\] from support ticket BSP-7239:

"The WAR version is not shipped with the DB Drivers. I've attached to this ticket the PostgreSQL driver that we ship with the standalone version. You can put it inside the ../Tomacat/lib/ folder. "  

It was only after I downloaded the driver and installed it (noting that I installed it in ../Tomcat/lib/ ;-) ) that Bamboo was able to find the database and connect to it.

Either the docs are wrong or the WAR file was incorrectly packaged, but either way something needs to be fixed.


author: Jason Wandel
body: BSP-7376 has been raised to get this sorted.


Tags: postgres
New "Create Issue" feature fails on all of our issue types
Asked by James Knight:

The new create issue feature in Bamboo seems pretty nice, but seems to fail for all of our issue types for reasons like:

Cannot create issue of type B as it requires the following fields: Priority. Please create issue directly in JIRA.

Will this only work with the built in default issue types in Jira? Are there plans to expand this?


Answers:
author: James Dumay
body: I think it will work if you set a default value for your custom priority field. However, I've created an [improvement request](https://jira.atlassian.com/browse/BAM-11704) to support custom fields.
Plan Configuration Change Management
Asked by James Knight:

A really useful feature in Bamboo would be the ability to checkpoint plan configurations so that plan changes could be undone if the turned out to be problematic. Even better, the ability to create a tentative change to the plan configuration, try it out, and the accept it if everything works. Basically, we are looking for some kind of revision control on the plan configuration, but we're not sure how to get it without Bamboo supporting it directly.

Thanks


Answers:
author: James Dumay
body: There is an improvement request open to track this [here](https://jira.atlassian.com/browse/BAM-3009). Please watch and vote for it :)
Is there a way to override the build directory for each plan in Bamboo?
Asked by Dan Freise:

I do not want all of my plans to build in one monolithic file system; in other CI tools, I specify the build directory for each job/plan, and spread my builds out across different filers. This also allows a build to use a less expensive 'update' rather than a full checkout from the source repository if it switches from one remote agent to another between builds. How does one do this with Bamboo? I can't find any way to keep it from using one huge directory (per agent, at least) for doing all the builds?


Answers:
author: Przemek Bruski
body: If you want to spread build directories across filesystems, you can do it with symlinks. If you want to share build directories between agents, remember to turn off concurrent builds.

comments: author: Dan Freise
body: OK; say I want ProjectA and ProjectB to be on separate file systems; how would I create these symlinks? So far, all I see is that each \*job\* is getting a separate directory directly under the xml_data/build-dir; IE:

xml_data/build-dir/PROJA-PLANA-JOB1

It would make much more sense if there were a subdirectory for each project, then the plans and jobs lived in there. Is there such an option that I am missing? Or are you saying I need to create a symbolic link for every single \*job\* in each project?


author: Przemek Bruski
body: Yes, that's what I'm saying - there's no hierarchy, you need to symlink each job separately.

Also, I think this won't work if you do clean builds or there are problems with your checkouts - the symlink will be erased and a new directory put in its place.
putting Sonar Gadgets on Bamboo page
Asked by Madhu Raj soudathikar:

I have configured Bamboo to use Sonar to perform the Static Analysis of my project. The Analysis works fine and i am able to see the results on the Sonar page.

BUt when i look under Sonar tab of the build section, i dont see the images loading ..

Is there any special setting that i need to configure to get that working?


Answers:
author: Robert Ozga
body: Hello,

I asked on Marvelution Site and it's not possible, to see Images in the build section (Sonar Tab) in Bamboo. See the full answer from Mark Rekveld [here](https://marvelution.atlassian.net/browse/BAMSON-115 "here").

Greetings, Robert


author: michael_munsey
body: I have the same problem.
Customize "Bamboo Administrators" page
Asked by emddudley:

Is there any way to customize the "Bamboo Administrators" page that appears when you click the "Contact Administrators" link in the footer of a Bamboo page?

Currently the page displays all system administrators, but I would like to configure it to show only a single contact person.


Answers:
author: Przemek Bruski
body: The only way to do this is to modify Bamboo/webapp/admin/user/viewAdministrators.ftl file. Just remove whatever you don't like and insert the contact person you want.

Note that your changes will be removed during Bamboo upgrade, so make sure you restore them afterwards.
Unable to migrate to 'main' from 'master' branches
Asked by rsbeckerca:

I have created a main branch and am working on it successfully. After configuring the workflow and default branch to 'main', I am still having my repo saying that 'master' is the main branch in BitBucket Cloud and cannot delete it. This is not correct behaviour.


Answers:
author: rsbeckerca
body: It appears that either:

1. It just took time for BitBucket to figure out that main was the branch to use; or
2. There was a pull request pending on master that was blocking the configuration change.
3. Something else weird.

The problem went away magically.


Tags: bitbucket-cloud

cloud
Is ut possible to fetch the audit log from bitbucket clous via api???
Asked by maayan_cohen:

Hi,  

I'm trying for few days to get the audit log through API  
Is it possible?

In addition is it possible also with bitbucket server and datacenter?

<br />

thanks,


Answers:
author: Caroline R
body: Hi, [@maayan_cohen](/t5/user/viewprofilepage/user-id/4553365)!

We have answered this question here:

* [How can I fetch the Auditlog from bitbucket via API?](https://community.atlassian.com/t5/Bitbucket-questions/How-can-i-fetch-the-Auditlog-from-bitbucket-via-api/qaq-p/1830049#U1831249)

Please, feel free to share any additional questions or concerns regarding this case.

Kind regards,  
Caroline


Tags: bitbucket-cloud

cloud
Why Bitbucket cloud is showing a different size
Asked by bdtask:

Hi [@Ana Retamal](https://community.atlassian.com/t5/user/viewprofilepage/user-id/2816943), Bitbucket shows a size of 3.27 GB MB but my repo locally is showing 372 MB Am I missing something here? Is Bitbucket Cloud counting something else? I haven't change anything locally and did a git pull.

**This is my repository link \<removed due to privacy reasons\>**

Thank you.


Answers:
author: Caroline R
body: Hi, [@bdtask](/t5/user/viewprofilepage/user-id/3049797)!

Thank you for reaching out to Atlassian Community!

I confirmed that the size of the remote repository was due to dangling commits. A dangling commit is a commit that is not associated with a reference, so, for example, commits can become dangling with any command that removes a tag or branch.

In this case, I ran a GC on the remote repo and managed to reduce its size to 222.6 MB.

I also would like to share with you that we already have a feature request to allow users to mark repositories for git GC, as you can check here:

* <https://jira.atlassian.com/browse/BCLOUD-11593>

Please consider adding yourself as a watcher to receive the updates as we make progress with this. If you are not familiar with our Feature Request Policy, you can read more about it [here](https://confluence.atlassian.com/support/implementation-of-new-features-policy-201294576.html).

Feel free to share any additional questions regarding this case.

Kind regards,  
Caroline

comments: author: bdtask
body: Thank you [@Caroline R](/t5/user/viewprofilepage/user-id/3934006) .


author: Caroline R
body: Hi, [@bdtask](/t5/user/viewprofilepage/user-id/3049797), I'm glad to help!  
Kind regards,  
Caroline


Tags: bitbucket-cloud

cloud
How can i fetch the Auditlog from bitbucket via api?
Asked by ????? ???:

Is that option is possible?  
If true, is it the same way in bitutcket cloud and bitutcket server ?


Answers:
author: Caroline R
body: Hi, [@????? ???](/t5/user/viewprofilepage/user-id/4588245)! Welcome to the community!

In order to fetch the Audit log from Bitbucket Cloud, we currently have a script that can be used to scrape the logs from there, converting them to a .txt file. The log file created will mirror the content you see within the UI itself and thus requires permission of viewing the audit log within the UI to run.

You can open the following link to access the script:

* <https://bitbucket.miwalker.net/projects/BBCS/repos/parse_audit_log/browse>

Note: We are actively reviewing what is logged and have plans to release more in-depth logs and a way to export this natively in an upcoming change in 2022. This can be seen on [our Roadmap](https://www.atlassian.com/roadmap/cloud?selectedProduct=bitbucket).

I hope this helps, but do let me know if you have any questions.

Kind regards,  
Caroline


Tags: bitbucket-cloud

cloud
Access to the view of a Jira ticket.
Asked by MarcoSoft PE:

Hi guys, I have a project member who cannot access the view of a Jira ticket from Bitbucket, he gets a message for access problems but I have checked that and he does have the permissions assigned.  
Attachment screenshot.  
Let me know if more information is needed.  
Thanks in advance.

![Screenshot from 2021-10-08 03-14-40.png](/t5/image/serverpage/image-id/164049i076F903F5D59C2A3/image-size/large?v=v2&px=999 "Screenshot from 2021-10-08 03-14-40.png")


Answers:
author: Nic Brough -Adaptavist-
body: Can they log in and see the issue directly in Jira?


Tags: bitbucket-cloud

cloud

jira-software