youngmon/atlassian-qna huggingface dataset:
Integrate JIRA with LDAP and Bamboo with JIRA?
Asked by nikhil khedlekar:

We have a JIRA ondemand that we are moving to JIRA inhouse. We already have a Bamboo inhouse. We want to install JIRA inhouse, import the backup of JIRA ondemand and then setup the application links between Bamboo inhouse and JIRA inhouse. We also want to use the feature - where Bamboo users are actually managed in JIRA. So any user created in JIRA inhouse will also have a minimum of Bamboo read only access. Not every JIRA/Bamboo user should be abe to do a build and deploy. Secondly, we have our own LDAP. We want JIRA inhouse itself to authenticate passwords against LDAP. Is this possible ? JIRA being Bamboo's user management tool and authenticating password against our own LDAP. if you can point us to the correct documentation, we would be glad to read it.


Answers:
author: Zul NS _Atlassian_
body: Careful in migrating JIRA OnDemand to JIRA Download of version 6.2.1. There is a major bug that the user of OnDemand will not able to login after the migration as you can see in [](https://jira.atlassian.com/browse/JRA-37574)<https://jira.atlassian.com/browse/JRA-37574>

Integrating Bamboo with JIRA documentation can be found in [](https://confluence.atlassian.com/display/BAMBOO/Integrating+Bamboo+with+JIRA)<https://confluence.atlassian.com/display/BAMBOO/Integrating+Bamboo+with+JIRA>

But don't stop there, we have Code Development feature in the latest Bamboo and JIRA which you can find more information in the following links

* [](https://confluence.atlassian.com/display/JIRA/Integrating+JIRA+with+Code+Development+Tools)<https://confluence.atlassian.com/display/JIRA/Integrating+JIRA+with+Code+Development+Tools>
* [](https://confluence.atlassian.com/display/JIRAKB/JIRA+Development+Panel+Not+Working)<https://confluence.atlassian.com/display/JIRAKB/JIRA+Development+Panel+Not+Working>

Connecting Bamboo to use JIRA as the User Management, can be done with the following steps

* [](https://confluence.atlassian.com/display/BAMBOO/Managing+users)<https://confluence.atlassian.com/display/BAMBOO/Managing+users>
* [](https://confluence.atlassian.com/display/BAMBOO/Integrating+Bamboo+with+Crowd)<https://confluence.atlassian.com/display/BAMBOO/Integrating+Bamboo+with+Crowd>

And lastly to have JIRA to connect to your LDAP to authenticate, please see [](https://confluence.atlassian.com/display/JIRA/Connecting+to+an+LDAP+Directory)<https://confluence.atlassian.com/display/JIRA/Connecting+to+an+LDAP+Directory>

In addition, if you think that it would be easier to just manage the users in LDAP, you can also get Bamboo to connect with LDAP referring to <https://confluence.atlassian.com/display/BAMBOO/Integrating+Bamboo+with+LDAP>
Trigger specific Bamboo Plan-Branch from within JIRA when releasing a version
Asked by Philip Steinebrunner:

Hi

I found this

<https://confluence.atlassian.com/display/JIRA/Running+a+Bamboo+Build+when+Releasing+a+Version>

and tried it in JIRA. Looks pretty cool BUT: Our release version is in an release-branch in our VCS and the release-branch is consumed by a release-plan-branch in Bamboo. When starting the release process from within JIRA there is no way to select the specific plan-branch. Instead only the base-plan gets triggered... but thats useless because maybe there are already development for the next version is going on.

Is there a way to do this? Any chance to get this implemented?

Cheers

Philip


Answers:
author: Ron Chan
body: Get in line [](https://jira.atlassian.com/browse/BAM-12099.)<https://jira.atlassian.com/browse/BAM-12099>.

Feel free to voice your displeasure to stimulate some activity on this front.

comments: author: Philip Steinebrunner
body: Thank you! Voted for this.


Tags: plan

trigger
Why I cant use existing licence key when I want to move Bamboo to a different database?
Asked by sule putun:

Hello,

I have a commercial bamboo instance which uses embedded HSQL. But I want to use Oracle DB.

That's why i follwed the step at the link [](https://confluence.atlassian.com/display/BAMBOO/Moving+your+Bamboo+data+to+a+different+database.)<https://confluence.atlassian.com/display/BAMBOO/Moving+your+Bamboo+data+to+a+different+database>.

When Setup Wizard comes up, I need to enter a licence key. I entered my old licence key. Yet of course it didnt work. When i checked the bamboo-home directory for my new Bamboo instance

the "bamboo.cfg.xml" file wasnt contain any key. I tried to insert old one manually. Yet another fail.

Has anyone any suggestions? Do I pay for the licence key again JUST TO MOVE ANOTHER DB?

Thanks in advance.


Answers:
author: Ron Chan
body: Go to [](https://my.atlassian.com/product)<https://my.atlassian.com/product> to obtain a developers license, then complete your setup. Once you have your new instance up and running, you can swap out this license with your commercial license.
Full clone or just revisions?
Asked by CraigT:

As part of my build I have a 'Source Code Checkout' task. I **do not** have the "force clean build' checkbox checked.

When I run my builds I observe the following log, and in my mind the "Initialized empty Git repository" log message means "starting from fresh, going to clone the repo again".

What exactly is going on here? Fresh clone, or just "changes since last build"?

Perhaps since I'm using EC2, my elastic instance is destroyed between commits, thus it must re-clone the entire repo since the one from the previous build no longer exists?

|----------------------|---------------------------------------------------------------------------------------------------------------|
|                      |                                                                                                               |
| 27-Mar-2014 16:48:33 | Starting task 'Checkout Default Repository' of type 'com.atlassian.bamboo.plugins.vcs:task.vcs.checkout'      |
| 27-Mar-2014 16:48:33 | Updating source code to revision: 77c67a3aa89d557b6e28fd285cc2aeb446d6be91                                    |
| 27-Mar-2014 16:48:34 | Creating local git repository in '/home/bamboo/bamboo-agent-home/xml-data/build-dir/GRDCS-CSBETA-JOB1/.git'.  |
| 27-Mar-2014 16:48:34 | Initialized empty Git repository in /home/bamboo/bamboo-agent-home/xml-data/build-dir/GRDCS-CSBETA-JOB1/.git/ |
| 27-Mar-2014 16:48:35 | Fetching 'refs/heads/master' from 'https://bitbucket.org/myorg/myapp'.                                        |
| 27-Mar-2014 16:48:46 | From <https://bitbucket.org/myorg/myapp>                                                                      |
| 27-Mar-2014 16:48:46 | \* \[new branch\] master -\> master                                                                           |
| 27-Mar-2014 16:48:46 | Checking out revision 77c67a3aa89d557b6e28fd285cc2aeb446d6be91.                                               |
| 27-Mar-2014 16:48:46 | Already on 'master'                                                                                           |
| 27-Mar-2014 16:48:47 | Updated source code to revision: 77c67a3aa89d557b6e28fd285cc2aeb446d6be91                                     |
| 27-Mar-2014 16:48:47 | Finished task 'Checkout Default Repository'                                                                   |


Answers:
author: LucasA
body: Hi Craig,

Yes, if you're not using EBS volumes, all data will be retrived again. To use EBS volumes and persist your data, please take a look at [](https://confluence.atlassian.com/display/BAMBOO/Configuring+elastic+instances+to+use+the+EBS)<https://confluence.atlassian.com/display/BAMBOO/Configuring+elastic+instances+to+use+the+EBS>

Lucas Lima


Tags: cloud
How to get a Bamboo test to fail?
Asked by Kevin Roe:

I am running Selenium Webdriver tests (written in python) using Bamboo for our e-commerce platform, and I'm running into an unusual problem. In my tests, I am using assert to make sure that certain buttons / information is displayed. When those assertations fail, the script stops, and the traceback is in the logs, but the Bamboo tests still read success. I also tried raising exceptions, but experienced the same problem. Is there a particular way that Bamboo will recognize a test to have failed? Seeing green on the dashboard does nothing to help me if the tests failed. Thanks.


Answers:
author: Pawel Skierczynski
body: What version of Bamboo do you have?

Can Bamboo see your tests at all? Bamboo needs parser at the end. I've seen it working for JUnit and I know that there are ways to format python tests in JUnit raport file.

Please look at [](/questions/35809/how-to-parse-django-tests-with-bamboo)<https://answers.atlassian.com/questions/35809/how-to-parse-django-tests-with-bamboo>- is this something similar to your case.
Move latest files with deployment task
Asked by John Cheripka:

I have a git "database" repository that contains various sql files. In bamboo, I get the latest files from Stash using the "Source Code Checkout" task. I would like to move the new/updated sql files to the same location I am putting my artifacts.

In the deployment task I use the "artifact download" task to put all of the shared artifacts in one location.

Is there a way to put my new/updated sql files in the same location as the artifacts?


Answers:
author: Pawel Skierczynski
body: I wanted to check this first to make sure it works as I thought.

You want to checkout source code in the same build that you are creating other artfacts for this deployment.

Check to what directory "Source Code Checkout" task is retrieving sources. It's probably 'src'.

Then go to "Artifacts" tab. Create new definition.

* Name whatever you like.
* Location must be directory of your sources in build (probably "src")
* Copy pattern assuming you want all files in all subdirectories will be "\*\*/\*\*"

Last but not least make sure that you check "Shared" so this artifact is seen by deployment project.

For some screens you can start here: [](https://confluence.atlassian.com/display/BAMBOO/Configuring+a+job%27s+build+artifacts)[https://confluence.atlassian.com/display/BAMBOO/Configuring+a+job%27s+build+artifacts](https://confluence.atlassian.com/display/BAMBOO/Configuring+a+job%2527s+build+artifacts)

After build with new configuration is done you should see new artifact in deployment configuration.

To read more about it look here: [](https://confluence.atlassian.com/display/BAMBOO/Sharing+artifacts#Sharingartifacts-Sharingartifactsfromabuildplantoadeploymentenvironment)<https://confluence.atlassian.com/display/BAMBOO/Sharing+artifacts#Sharingartifacts-Sharingartifactsfromabuildplantoadeploymentenvironment>


author: Pawel Skierczynski
body: I wonder if you could create new artifact path in a build so that it points to latest sql files. So your sql files become one of artifacts and you can treat them as other artifacts.

comments: author: John Cheripka
body: Hi Pawel, I am interested in learning more about this. How would I create a new artifact path so that it points to the latest files?

My concern is if I create an artifact definition of \*.sql how would this differentiate from new/updated files and the ones that were not.
Excluding changesets of a Maven Release with [maven-release-plugin] prefix
Asked by Markus Helm:

I was wondering why the commits of a maven release didn't trigger a build in Bamboo. In the log I found entries that some changesets got excluded. Finally I came up with the idea that Bamboo is eventually ignoring commits with \[maven-release-plugin\] as prefix and it turned out to be true.

When I reword the commit messages and alter the prefix to \[aven-...\] the changesets get accepted and trigger a build.

Is it documented somewhere that this prefix causes an exclusing??? How can I turn it off?

Cheers,  
Markus


Answers:
author: Markus Helm
body: As a workaround I've changed the prefix used by the maven-release-plugin with

```
mvn release:prepare -DscmCommentPrefix="[maven] "
```


Tags: bamboo-administration
Can I simply snapshot the disk volume and DB as Bamboo backup?
Asked by Ravi Nair:

Our Bamboo instance (5.2.2) usually crashes on a scheduled backup with artifacts (and tends to produce very large files we could do without). Without artifacts , it takes more than 8 hours to backup, I simply have to kill it to prevent holding up developers from running their builds. Will a snapshot of the disk and the database suffice as backup? I know this is the recommended method for very large Confluence instances, but does this apply to Bamboo ?


Answers:
author: Przemek Bruski
body: Yes, the same reommendation applies to Bamboo.


Tags: bamboo-administration
Custom AMI problems: elastic agent doesn't start and ssh fails
Asked by Mark Veerman:

I've read through [this document](https://confluence.atlassian.com/display/BAMBOO/Creating+a+custom+elastic+image), and [this document](https://confluence.atlassian.com/display/BAMBOO/Creating+a+custom+elastic+image+-+Linux) very carefully. I'm starting from a Bamboo stock image, Amazon Linux: S3 x86_64. I make my modifications and bundle/register a new AMI. I then register this new AMI as a new elastic image in the Bamboo OnDemand configuration and try to start a new instance.

The instance starts fine, but the bamboo agent never starts. After a while I see issues like:

- java.io.FileNotFoundException: /home/bamboo/bamboo-agent-home/uuid-temp.properties (No such file or directory)

-java.io.IOException: Could not create directory '/home/bamboo/bamboo-agent-home/classpath'

I think this is due to the /home/bamboo directory not being included in the AMI. I thought the command, /opt/bamboo-elastic-agent/bin/prepareInstanceForSaving.sh, was to work around this issue, but I'm running that prior to creating the AMI and it's still not working.

The second problem I'm seeing is that I'm not able to shh to the instance:

```
! ssh -i ~/.ssh/elasticbamboo.pk ec2-user@ec2-X-X-X-X.compute-1.amazonaws.comPermission denied (publickey).
```

I found this unanswered question on stack-overflow: [](http://stackoverflow.com/questions/17212459/why-cant-i-create-an-ami-with-ephemeral-storage)<http://stackoverflow.com/questions/17212459/why-cant-i-create-an-ami-with-ephemeral-storage>

And the second link above has some relevant comments. Before I waste anymore time on this can someone let me know if this is even possible?

Thanks,

Mark


Answers:
author: Przemek Bruski
body: Was there any interesting output from prepareInstanceForSaving ?

Did you try using the EBS image?  

comments: author: Mark Veerman
body: I haven't tried to use an EBS image yet, but that's the next step if all else fails.

Here's the ouput from prepareInstanceForSaving

```
[root@domU-... ec2-user]# /opt/bamboo-elastic-agent/bin/prepareInstanceForSaving.shStopping crond:                                            [  OK  ]Killing all Java processes...Mounting root device /dev/xvda1 in /tmp/rootDevice15312 to copy data from ephemeral storage...Copying back /home from ephemeral storage to the root device...If its your internal image, its safe to just save it now. Otherwise,you may want to remove some build files/authorisation data/Maven caches from /tmp/rootDevice15312/home/bamboo first.
```


author: Przemek Bruski
body: That looks good. Weird. Try the EBS image.


author: Mark Veerman
body: Using the stock Bamboo amazon linux \*\*EBS\*\* AMI does seem to work, so I'm good to go. That being said, it's pretty clear from the docs I linked to in my post that you claim to support custom AMIs using modified Bamboo S3/instance-store AMIs, so you should upgrade your docs, fix the bug, whatever. I'm certaintly not the only one who's confused or experiencing trouble.

Regardless, I really do appreciate your prompt response to my question.


Tags: cloud
Why can't I get an invitation email from a new email address?
Asked by SBC - Kim Anh Nguyen:

Hi Bitbucket Community,

I've just encountered a weird issue.

I have 2 emails dnd@bc.com and dnd1@bs.com, one of which (dnd@bc) belongs to a former employee who stopped working, but his gmail account still exists in the system; the other one (dnd1@bc) belongs to a new employee who is trying to get access to bitbucket.

But when I invite dnd1@bc to the company workspace, dnd1@bc.com email doesn't get any invitation notification, meanwhile when I tried to invite dnd@bc, it still got the invitation as normal. No matter how many times I tried to remove and resend invitation of both, dnd1@bc can't get any email invitation from Bitbucket.

have anyone encountered such problem and how to solve this? is it possibly because bitbucket falsely acknowledge dnd1@bc and dnd@bc as 1 same person thus rejected one of it?

Please help me!


Answers:
author: Pramodh M
body: [Notification Issue](https://community.atlassian.com/t5/Bitbucket-articles/How-to-get-support-for-Bitbucket-Cloud-invitation-and/ba-p/1932959)

comments: author: SBC - Kim Anh Nguyen
body: thank you for your reply, but I don't seem to find the answer there.

<https://jira.atlassian.com/browse/BCLOUD-20659> i checked this article and tried to workaround, but the best way is still waiting for the technical support/


Tags: bitbucket-server

email

invite

server
New version Bitbucket still using old installation folder DLL
Asked by Tony Tao:

Hi There,

Our Bitbucket been updated to Atlassian Bitbucket v7.19.2, it seems running fine. On the Bitbucket server, we kept all the old version installation folders, recently we removed old 4.10.1 installation folder, but current versuon Bitbucket no longer working until restore folder 4.10.1. It seems some dlls are used by new version. As you may knew version 4.10.1 had old log4j which need remove. How can I fix this issue?

Cheers,

Tony


Answers:
author: Christian Glockner
body: Hi Tony,

Bitbucket Server is a Java application, and itself doesn't really use DLLs. Which folder is it that you need to restore for it to work again?

Cheers,

Christian

Premier Support Engineer

Atlassian

comments: author: Tony Tao
body: Hi Christian,

Under C:\\Atlassian\\Bitbucket we have existing previous version installation folder **4.10.1** and new installation folder **7.19.2**. Because under 4.10.1 had old log4j, so we tried delete 4.10.1 folder which would fix log4j vulnerability, but impact current running Bitbucket 7.19.2. It seems there are file shared each other. What can we do?

Cheers,

Tony


Tags: bitbucket-server

server
Login Bitbucket from Sourcetree problem
Asked by missawa:

When I try pulling data, Sourcetree show this message:

git -c diff.mnemonicprefix=false -c core.quotepath=false --no-optional-locks fetch --no-tags origin  
fatal: credential-cache unavailable; no unix socket support  
remote: Too many invalid password attempts. Log in at <https://id.atlassian.com/> to restore access.  
fatal: unable to access '<https://bitbucket.org/missawa/intermedicina.git/>': The requested URL returned error: 403

Someone can help me?


Answers:
author: Theodora Boudale
body: Hi [@missawa](/t5/user/viewprofilepage/user-id/2037231),

Could you please navigate to <https://id.atlassian.com/> in your browser and log in using email + password (please make sure NOT to use any of the other login options, like "Continue with Google" and use instead the email and password fields). You may be asked to go through a captcha screen, or even reset your password if necessary.

Once you are logged in properly to id.atlassian.com, try to pull again, and please feel free to let us know if the issue is resolved.

Kind regards,  
Theodora

comments: author: missawa
body: I tried and tried do that. But The problem persist.

I don't know what else to do.

I never had this problem before. I've been using it for years...


author: Theodora Boudale
body: Hi [@missawa](/t5/user/viewprofilepage/user-id/2037231),

**1.** Could you please open a terminal application, navigate to the directory of your clone, then do a **git pull** from terminal, and let me know if you see the same error or not?

I would like us to narrow down if the issue occurs with SourceTree only or not.

**2.** Are you using SourceTree for Windows or Mac?

**3.** What is the version of SourceTree you are using?

**4.** Do you get asked for a password when you try to perform a clone/pull/push operation (either from SourceTree or from terminal)?

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud

sourcetree
Where to place Matomo script in Bitbucket?
Asked by Timothy Ryner:

We're using Matomo for web monitoring and metrics reporting. The tool requires a relatively simple script to be applied to all pages, which gathers some traffic data and sends it to a Matomo instance.

<br />

Looking for recommendations on where to place such a script in Bitbucket. In Jira and Confluence, we've been able to leverage the Announcement Banner and Custom HTML configs to run the script. But since Bitbucket uses markdown for the announcement banner, I don't have the same front end options.   
Recommendations on where a script could be placed in order to run for all pages.

<br />

Example Matomo script:  
\<!-- Matomo --\>  
\<script type="text/javascript"\>  
var _paq = window._paq = window._paq \|\| \[\];  
_paq.push(\['trackPageView'\]);  
_paq.push(\['enableLinkTracking'\]);  
(function() {  
var u="//{$MATOMO_URL}/";  
_paq.push(\['setTrackerUrl', u+'matomo.php'\]);  
_paq.push(\['setSiteId', {$IDSITE}\]);  
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')\[0\];  
g.type='text/javascript'; g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);  
})();  
\</script\>  
\<!-- End Matomo Code --\>


Answers:
author: Timothy Ryner
body: I was able to put it onto the login screen, since we're running the Resolutions SAML SSO plugin, and I can edit the login page template to run the script. But obviously, that only runs on one page, and no other pages after that.

Fiddled around, inserted the script into the configurations for the announcement-banner.soy, aui.soy, and other similar files. Errors on startup that the soy files couldn't compile or something. It was worth a try.

Open to suggestions on possible locations to wedge a script into the global page configs.


Tags: bitbucket-server

matomo

server
One user can access my repository but I cannot find his permission settings
Asked by y.oda:

One user doesn't have permission to my repo, but he can access it.  
I checked the below settings, but I couldn't find his permission settings.

Repository settings \> User and group access  
Workspace \> members  
Workspace settings \> Users on plan  
Workspace settings \> User directory

Please advise where I should check other than the above.


Answers:
author: Caroline R
body: Hi, [@y.oda](/t5/user/viewprofilepage/user-id/4786231), welcome to the community!

As we will need to confirm who is the user who is able to see this repo and the repository name, I have created an internal ticket for you using the email of your community account, so you don't have to share this information here.

You should have received an email with a link to the support ticket. Just in case you haven't received it, please feel free to let me know and I can post the ticket URL here. The ticket will be visible only to you and Atlassian staff, no one else can view its contents even if they have the URL.

Please feel free to let me know if you have any questions.

Kind regards,   
Caroline


Tags: bitbucket-cloud

cloud