youngmon/atlassian-qna huggingface dataset:
How does bamboo work with git?
Asked by Chris:

With OnDemand expected to [launch this month](http://www.atlassian.com/licensing/ondemand-faq-existing-customers#jirastudio-1) we were considering moving to github or bitbucket for our source code

1) Will OnDemand Bamboo support building from github/bitbucket? I saw <http://confluence.atlassian.com/display/AOD/Linking+a+bitbucket+or+GitHub+repository+with+JIRA+OnDemand> that links jira to git, but it didnt specifically state if bamboo can run tests post commit

2) Also if bamboo does run builds base on git, how does it run the tests? Say I commit 5 times to git then do a push, will bamboo run 5 builds on each commit or just get the current and do the build/tests on that?


Answers:
author: Pierre-Etienne Poirot
body: Bamboo now works with Bitbucket and Github: [Pair Bitbucket with Bamboo OnDemand](http://blog.bitbucket.org/2012/07/24/continuous-integration-bamboo-ondemand-bitbucket/ "Pair Bitbucket with Bamboo OnDemand")


author: Jens Schumacher [Atlassian]
body: Hi Chris,

1) Unfortunately Bamboo in OnDemand does not currently support building from external repositories, including Bitbucket and Github. We are working to eliminate this limitation in the not too distant future.

2) Just like with any other SCM, you can specify a quite period for Git. Bamboo will run the latest state within that quite period instead of running 5 builds.

Here is the documentation for the Git configuration: [http://confluence.atlassian.com/display/BAMBOO/Git](http://confluence.atlassian.com/display/BAMBOO/Git%C2%A0)

comments: author: Chris
body: Thanks Jens, looking forward to the integration. Any idea on the timeline, weeks, 3months, 6months, year?


Tags: cloud

git
How do you notify users when you need to take Bamboo down for maintenance?
Asked by emddudley:

I want to email my Bamboo users when the server is being taken down for maintenance, but I don't see any built-in way to do this. It would be tedious and time consuming to try and copy all of their addresses into an external mail program.

Does anyone have a creative solution?


Answers:
author: Przemek Bruski
body: ```
This is pretty creative if you're on Unix:

for i in $(seq 0 25 200); do   curl --user user:pass "http://bamboo/admin/user/viewUsers.action?startIndex=$i";done | grep @ | grep -v \" |xargs mail -s "Bamboo Server is going down in 10 minutes"
```

You can also write a plugin that does it. Accessing Bamboo User database and mail service in a plugin is quite easy. I don't think it would take more than 10-15 lines of Java code to do this.


author: Dennis Ryan
body: If you administrer your users with Jira (Administration-\>Security-\>User Repositories), you can send email users or groups in Jira's administration interface. (Administration-\>System-\>Email...)


Tags: email
Hello Gerry Put, Good to know that you have tried integration of phing (http://phing.info/) in your bamboo. Could you please provide your experiences in detail in this regard and installation setup what you have followed? Thanks in advance.
Asked by Balasubrahmanyam Upadhyayula:

I am a nooby came into PHP technologies and was asked to setup Bamboo for a PHP application. Just followed the steps for installation of Bamboo and made it running. Have no clue how to do \& what to do for bringing this PHP application along with test scripts execution.

Would be great if you could help me in this regard.

Thanks in advance.

Regards,

Subbu


Answers:
author: Nic Brough -Adaptavist-
body: Have you read through <http://confluence.atlassian.com/display/BAMBOO/Bamboo+Documentation+Home> ?


Tags: cloud
Bamboo Stages and the Maven Lifecycle
Asked by Philipp Paland:

Note: I have also posted this Question on StackOverflow, but haven't got any answers so far. I thought it might be beneficial to ask here.

<http://stackoverflow.com/questions/8819409/bamboo-stages-and-the-maven-lifecycle>

Let's say I have a pretty standard maven based java project that uses almost all of the maven lifecycle. Compile on compile, JUnit test cases on test, integration testing using an automatically started and stopped jetty on integration-test / verify, deploying to our internal maven repo on deploy. Basic stuff.

This also runs as a build plan on our Bamboo server. At the moment, there is only one stage with one job with one task, that executes mvn clean deploy. This ensures that the SNAPSHOT on our repo is always the last version from source control that compiles without test failures.

Now, my feeling is that Bamboo could do more... What are all the stages and tasks and stuff for, if everything is handled in one lonely task? So I thought, maybe the could be a "test" stage, an "integration-test" stage and a "deployment" stage that execute mvn test, mvn verify and mvn deploy... But: Every Stage has it's own checkout directory and as such, the last stage has to do the whole maven lifecycle up to deploy again, including test and verify...

What would be a good way to map maven to bamboo? I didn't find any example configurations like this. Has anyone done this before in a coherent way? Or should I move testing stuff from the pom.xml to directly configured Bamboo jobs?


Answers:
author: Heather Wells
body: I have a similar setup. My solution isn't ideal but it's working for now. I have several stages, Compile + Unit Test, Integration Test + SNAPSHOT deploy, Maven Release, etc. I created a shared artifact of the entire workspace from the first stage and then a dependency on that artifact for the subsequent stage Since the target directories with the compiled classes are preserved, Maven shouldn't have to compile them all over again. Of course, there's no way to tell Maven to skip earlier phases, so it does run them all, but it does skip recompiling unchanged code.

I've set up the stages this way so that developers get feedback as early as possible (as soon as the unit tests are complete) rather than having to wait for the lengthier integration tests and deployments to complete.

My guess is that the "intent" of Bamboo is that the tests would be run in subsequent stages outside of maven, but since we already have everything configured to work in maven I've been reluctant to configure running the tests separately.

Sharing the entire workspace seems like overkill, but I don't see how it's any worse than checking out from source for each stage and recompiling.

I'm definitely open to other solutions if anyone has a configuration to share.

comments: author: Peter Kahn
body: Heather, how's performance in unpacking that while workspace shared artifact? Is it roughly equivalent to source control checkout? And how big a workspace do you have. Mine is around 20g built. So I planned to just pack up classes and test classes for moving out to other jobs


Tags: maven
Using Xcode plugin in Bamboo OnDemand
Asked by Roger Boesch:

Hi,

is it possible anyhow to use the XCode plugin for Bamboo also in the OnDemand version: <http://plugins.atlassian.com/plugin/details/472949>

Thansk best for answer

Best regards  
Roger


Answers:
author: Michael Knight
body: Bamboo OnDemand does not support plugins other than the [ones bundled](http://confluence.atlassian.com/display/AOD/Atlassian+OnDemand+Plugin+Policy#AtlassianOnDemandPluginPolicy-BuildsBamboo). Unfortunately this doesn't include the XCode plugin.

comments: author: Philip Shaw
body: That's a real shame.


Tags: cloud
Bamboo timer is off
Asked by chinnu tv:

Hi,

The bamboo timer which keeps of date and time is currently off which means it is not dispalying the correct time.

Please help me on this. its very urgent.

Thanks in advance


Answers:
author: Przemek Bruski
body: I assume you mean the time on the host on which Bamboo server is running?

If on Linux, you probably need to install ntpd or ntpdate packages. If on Windows, you need to set up time synchronisation.

comments: author: chinnu tv
body: Thanks a lot for the answer.

The incorrect time is getting dispalyed in the logs of Bamboo server which is linux box.


author: chinnu tv
body: Its SUSE-10 x86_64 bit machine. Already netdate-1.2-591.2 pkd is installed. Bt still I am getting the incorrect time results


author: Przemek Bruski
body: try running ntpdate -v manually to see what's wrong and/or check the syslog for problems related to ntp. Maybe you don't have the NTP server configured, maybe your firewall does not allow packets to NTP port, hard to say.


author: chinnu tv
body: Actually it was working fine..from 1 weak it has started displaying incorrect time


author: chinnu tv
body: Thanks a lot. Its working now :-)
How to exclude directory in checkout - not just on update/change ?
Asked by James Fraser:

Is it possible to configure Bamboo to exclude a directory on checkout of svn?

i.e. /path/to/trunk

The above path has a docs directory I don't want checked-out.


Answers:
author: Colin Goudie
body: Not directly. Your best bet might be to move your docs directory to another part of the SVN tree and use the svn:externals proeprty to put it in your trunk. Then you can ignore svn:externals when checking out in bamboo and you won't get the docs directory

Alternatively you can use a sparse checkout option (but that will bring in your docs root folder) and then do selective updates on your other folders except for the docs folder. So anything under the immediate docs folder will be checked out but not any subfolders under docs.

comments: author: James Fraser
body: I think an svn restructure sounds like a good plan.


author: Jon Sword
body: How do you ignore externals in Bamboo?   
It looks like <https://jira.atlassian.com/browse/BAM-6339> is unresolved.
How to deal with my projects pom hierarchy when building with multiple stages in my plan
Asked by James Fraser:

Here is my project structure:

/  
pom.xml  
/dir1  
/pom.xml  
/dir1_1  
/pom.xml  
/dir2  
/pom.xml  
/dir2_1  
/pom.xml  
/dir2_2  
/pom.xml

...

It would be nice to use a modular plan in Bamboo. The parent poms are both aggregate and inheritable.

I would like to have the following stages in a plan:

* Checkout
* Compile
* Test
* Deploy

Where I would have multiple plans, each compiling, testing and deploying individual projects from the overall project; i.e. dir2_2 under dir2 (dir being a substitute for a project name). In order to build dir2_2, I need to have the upper and core pom projects available.

Is this possible?


Answers:
author: ReneR
body: Overall structure:

\* Plan - Build All

\* \* Stage 1 - Build Proj 1

\* \* Stage 2 - Build Proj 2

Stage structure:

Stage N

Job 1

Task a = Source Checkout task top-level upper parent POM to sub-dir .\\

Task b = Source checkout task core POM to sub-dir .\\dirN

Task c = Source checkout task project to sub-dir .\\dirN\\dirN_m

Task d = Call 'mvn deploy' inside .\\dir\\.dirN_m

That's it.

"mvn deploy" will of course depend on tests passing, which of course will depend on a compile. Though it will be much easier to make dirN_m a self-contained project that doesn't require the ..\\pom.xml and ..\\..\\pom.xml. You can release those POMs as artifacts to your Maven repo and list them as dependencies in dirN_m's pom.

N.B. Multiple checkout tasks is only possible in Bamboo 3.3. Another way to do that is to setup a "shell" project in your source repo that has the structure needed. You can accomplish that with svn:externals, git/hg sub-repos, P4 client specs, ClearCase viewspecs, etc...

comments: author: Shane Shane
body: Rene,

If I were to click the Wallboard view would I just see a single pass/fail for the entire Plan? Our preference is to be able to break out the test pass/fail per artifact.

Does an easy way exist for this?

Thank you,

Shane


Tags: build
How do I add a comment ie: JIRA ticket number to the VCS tagging task?
Asked by Andrew Morin:

We require any Subversion commits including creating tags or branches to have a JIRA ticket in the comment. There is no place to do this in the VCS tagging task in Bamboo 3.2. Is this fixed in a later release?


Answers:
author: lance_lyons
body: Hi Andrew, Did you guys arrive at a solution for adding a message during bamboos vcs tagging commit?

We also have an svn repo and it has a pre commit hook that forces the need for a message that Bamboo does not seem to supply.

comments: author: Andrew Morin
body: Hi Lance,

The work around that we came up with was an edit to the hook script. I use a service account (svc-envbuild) to access SVN from Bamboo and we wrapped that part of the hook with the following so it ignores the hook when tagging. Not a great solution but it works for now. I am also watching BAM-10658...

if ($committer ne "svc-envbuild") {

# get commit message

my $holdTerminator = $/;

undef $/;

open IN, '-\|', "$svnlookPath log $ARGV\[0\] --transaction $ARGV\[1\]" or die "Unable to get commit message with svnlook.\\n";

my $buffer = \<IN\>;

close IN;

$/ = $holdTerminator;

my @lines = split /$holdTerminator/, $buffer;

$buffer = "init";

$buffer = join $holdTerminator, @lines;

chomp($buffer);

my $commitMessage = $buffer;

# print arguments

select(STDERR);

print "Committer: " . $committer . "\\n";

print "Commit message: \\"" . $commitMessage . "\\"\\n";

# invoke JIRA web service

my $acceptance;

my $comment;

eval {

$jiraBaseURL =\~ s/\\/+$//; # remove trailing '/' if exists

my $s = XMLRPC::Lite-\>proxy($jiraBaseURL . "/rpc/xmlrpc");

my $result = $s-\>call("commitacc.acceptCommit", $jiraLogin, $jiraPassword, $committer, $projectKey, $commitMessage)-\>result();

($acceptance, $comment) = split('\\\|', $result);

};

if ($@) {

($acceptance, $comment) = ("false", "Unable to connect to the JIRA server at \\"" . $jiraBaseURL . "\\".");

};

if($acceptance eq 'true') {

print "Commit accepted.\\n";

exit 0;

} else {

$comment = HTML::Entities::decode($comment);

print "Commit rejected: " . $comment . "\\n";

exit 1;

}

}


author: Przemek Bruski
body: There's no plugin point available for the commit message. Being a licensed user, you can access the sources and modify the com.atlassian.bamboo.repository.svn.SvnRepository#copyRepository method to do whatever you want.

comments: author: Andrew Morin
body: I would rather not modify the source for basic fuctionality. I will put in a feature request and use the script function until the VCS tagging task is usable....
Can't get visual studios build configuration right
Asked by Aaron Beauvais:

I have a Release\|Win32 and a Release\|x64 configuration in visual studios every time I try one of them via bamboo I get an error like this:

|----------------------|-------------------------------------------------------------|
| 17-Jan-2012 16:31:07 | 'x64' is not recognized as an internal or external command, |
| 17-Jan-2012 16:31:07 | operable program or batch file.                             |

I have tried wrapping it in single then double quotes or 2 double quotes and it still doesn't work. The options parameter should work like this /rebuild "Release\|x64" works outside of bamboo but not within

<br />


Answers:
author: PiotrA
body: I think you're experiencing a known bug Bamboo (to be precise: in bamboo-dotnet-plugin), see this ticket:

<https://jira.atlassian.com/browse/BAM-9922>

It's possible you could workaround the problem by using the devenvrunner.bat attached to the BAM-9922, but I don't know where exactly you should inject it into your Bamboo instance - probably you would have to rebuild the bamboo-dotnet-plugin (<https://bitbucket.org/atlassian/bamboo-dotnet-plugin>).

comments: author: Aaron Beauvais
body: Ya that looks to be what I am experiencing. Not sure how to rebuild it though. We are just evaluating this product as a potential build system instead of what we have in place now.


author: PiotrA
body: Hm... I'm not 100% sure this will work (btw: which Bamboo version are you evaluating?), but I think you could try the following:

Grab the <https://maven.atlassian.com/content/groups/m1/com.atlassian.bamboo.plugins.dotnet/jars/atlassian-bamboo-plugin-dotnet-3.4.jar> and replace the atlassian-bamboo-plugin-dotnet-x.x.jar you have in your BAMBOO/webapp/WEB-INF/lib directory (remove the old .jar). Then restart Bamboo instance. Depending on which Bamboo version you have and some luck factor this might resolve the problem with '\|' (pipe) characters in the goal field. Or might not. :(


author: Jay Barra
body: In the extra environment variables on the task where you generate the solution files you need to add:

{code}Path=C:\\Program Files (x86)\\Microsoft Visual Studio 10.0\\VC\\BIN\\amd64{/code}

Then you should be able to build with

{code}devenv project.sln /build Release{/code}

and set the platform to amd64.

I'm assuming you're using the Visual Studio builder tool in bamboo?


author: Colin Goudie
body: You'll need to give us the bamboo build output so we have more context.


author: Joe Clark
body: Hi. Thanks for reporting this. Could you please include the details of your build configuration? What version of Bamboo are you using? Can you include the portion of the build log that shows the full command line that bamboo _tried_ to execute?
Repository forking forever
Asked by Muaz KADAN:

Hello everyone,

About 17 days I tried forking a repository of a project I am working on. After I clicked on "Fork this repository", I went to the loading page that says "**Please wait a moment while we fork this repository.**" and since then, whenever I enter the repository, the same screen comes and I can't do anything with that repository. I just want to delete the repositroy but I can't see anything except the loading screen.


Answers:
author: Theodora Boudale
body: Hi [@Muaz KADAN](/t5/user/viewprofilepage/user-id/4554015),

It looks that the repo creation task failed, and the fork was stuck in 'Creating' mode with 0 data in it. When this happens, the repo can be deleted only by the support team.

I went ahead and removed this fork for you, since it had 0 data, you can try creating a new one now.

Please feel free to let me know if you need anything further.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
What is AZURE_APP_NAME ?
Asked by white_horse:

In your example at <https://bitbucket.org/microsoft/example-azure-web-apps-deploy/src/master/bitbucket-pipelines.yml>

or <https://bitbucket.org/microsoft/azure-web-apps-deploy/src/1.0.3/>

what is AZURE_APP_NAME ???

script:  
- pipe: microsoft/azure-web-apps-deploy:1.0.0  
variables:  
AZURE_APP_ID: $AZURE_APP_ID  
AZURE_PASSWORD: $AZURE_PASSWORD  
AZURE_TENANT_ID: $AZURE_TENANT_ID  
AZURE_RESOURCE_GROUP: 'example-azure-web-apps-deploy'  
AZURE_APP_NAME: 'example-azure-web-apps-deploy'  
ZIP_FILE: 'example-$BITBUCKET_BUILD_NUMBER.zip'


Answers:
author: Nic Brough -Adaptavist-
body: It's the name of the application you want to deploy.


Tags: bitbucket-pipelines
Configurable wait timeout for aws-ecs-deploy
Asked by Haoyu Zha:

Current timeout for aws-ecs-deploy pipe is hard coded to 10 minutes, can we make this configurable?


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

Currently, it's not possible to configure the wait timeout for aws-ecs-deploy. In this case, I went ahead and created a feature request to add this option, as you can see here:

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

I would suggest that you add your vote there (by selecting the **Vote for this issue** link) as the number of votes helps the development team and product managers better understand the demand for new features.

You are more than welcome to leave any feedback, and you can also add yourself as a watcher (by selecting the **Start watching this issue** link) if you'd like to get notified via email on updates.

Implementation of new features is done as per our policy [here](https://confluence.atlassian.com/support/implementation-of-new-features-policy-201294576.html) and any updates will be posted in the feature request.

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

Kind regards,  
Caroline


Tags: aws

bitbucket-cloud

bitbucket-pipelines

cloud
Pipelines and deployments pages keep loading
Asked by Zubair Iftikhar:

when trying to access these url's  
Page loading \& loading even wait 30min.. but page not load..   
Chrome Browser: Version **93.0.4577.63** (Official Build) (64-bit)  

![bitbucket-02.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/159894i8B3DDE63A6B22AFB/image-size/large?v=v2&px=999 "bitbucket-02.PNG")![bitbucket-03.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/159893i192CA9CD170DABB3/image-size/large?v=v2&px=999 "bitbucket-03.PNG")


Answers:
author: Theodora Boudale
body: Hi [@Zubair Iftikhar](/t5/user/viewprofilepage/user-id/4553052),

Do you see the same issue if you try to open these pages in an Incognito window, with all extensions disabled?

The first thing that comes to mind is that a certain browser extension may be interfering, so I would suggest trying an Incognito window, with ++all browser extensions disabled++.

If that works, you can then try disabling any extensions you have enabled in a regular window one by one, to find out which is causing the issue.

If you're still having issues, could you please let me know:

- Are other users with access to this repo facing this issue as well, with these specific pages?  
- Do you have access to other repos using Pipelines, and if so, does the issue occur there as well? I'm trying to understand if this could be a repo-specific issue or not.  
- Are you able to access these pages from a different browser on this computer?

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Bitbucket server really slow most of the time
Asked by Miba:

Hi,

I am running Bitbucket Server with PostgreSQL database, and most of the time switching between the repositories or open the the settings page and even search for users take a long time, up to 30seconds.

I increased RAM to Java but not a bit of improvement, here is my setup:

Bitbucket Server

* Bitbucket version 7.15.1
* Host RAM 16GB
* CPU/vCPU 4/8
* JVM 8GB

PostgreSQL Server

* DB Version psql (PostgreSQL) 11.10 (Ubuntu 11.10-1.pgdg20.04+1)
* RAM 8GB
* CPU/vCPU 4/8

<br />

Is there any way to find out the issue, its behaviour is like the Bitbucket has lag, for 2 minutes works like a charm then is time to go for quick coffee as it is just loading....

I also see the "**Slow event listener detected"**in Diagnostics tab

![image.png](/t5/image/serverpage/image-id/159895i954D3F34CD35321F/image-size/large?v=v2&px=999 "image.png")


Answers:
author: Mark Hitt
body: I'd recommend enabling JMX performance monitoring to tracking down the culprit.

<https://confluence.atlassian.com/bitbucketserver/enabling-jmx-counters-for-performance-monitoring-776640189.html>


author: Miba
body: Hmm, I do not think so, there is a solution for it!

as it seems even Jira/Bitbucket or better say Atlassian is slow on loading pages!!

so for now I tweaked a little postgresSQl and install the latest patch for version 11, let see!


Tags: bitbucket-server

server