youngmon/atlassian-qna huggingface dataset:
Continuous Integration Best practices
Asked by Niraj Salot:

Hi .

What is the Best practices for Continuous Integration?

We have Bamboo \& GIT. Our main application is build using GWT. Our application compilation takes huge time if we compile on local developer machine with 4 GB of RAM.

So the question is:

As per the CI process , Should the developer build on Local machine or Should he directly push the code to GIT central repo in his/her branch and Bamboo build server should build for him?

Please Suggest.

Thanks , Niraj.


Answers:
author: Marcin Oles
body: Hi,

I think you should always first build your code on your own machine, to avoid pushing code which does not compile or is unstable. Building project locally is usually a necessity.

You could then use Bamboo to do other things for you - besides building your code (maybe on another OS, which could be beneficial), Bamboo can execute long running tests or perform deployments/releases to various environments.

For some additional guides, you can see <https://confluence.atlassian.com/display/BAMBOO/Bamboo+Best+Practice> page.

Regards,  
Marcin

comments: author: Niraj Salot
body: Hello ,What should be done in a case where compilation on developer machine takes lot of time \& indirectly impacts their productivity?Thanks , Niraj


author: Marcin Oles
body: There aren't many options I think.- One way to improve compilation time would be to avoid clean-building and use just building whenever possible, although I'm not very familiar with GWT. As far as I know, GWT is a slow technology.- Another option would be to improve your machine. SSD drives, faster processor etc. could help.But if you really find it impacting productivity, you \*could\* use Bamboo as you described (to actually build your branch and avoid building code locally). But in such case your team should use personal branches, and it would be hard to co-operate on one branch for many people (as the branch will often be unstable). It's far from being recommended and a good practice, though it's something you can consider and do.


Tags: bamboo-administration
Is it possible to use Microsoft Azure or a local server as a build agent for a cloud-hosted Bamboo implementation?
Asked by Eric Robertson:

We have server infrastructure that we can use either internally or via Microsoft Azure, rather than increasing our costs and complexity by operating an Amazon EC2 server, I would like to know if it is possible to configure a server as a build agent with one of those alternatives while still using a cloud-hosted Bamboo implementation. Any assistance is greatly appreciated, thank you.


Answers:
author: Alan Parkinson [Hindsight Software]
body: I'm afraid not. In this situation we ended up running our own Bamboo server as choice of Build Agents and limited plugin options in the Cloud was very limiting.


author: Krystian Brazulewicz
body: Bamboo roadmap for 2015 contains support for adding your own agents to the cloud-hosted Bamboo installation - you'll not be limited to EC2 anymore.

comments: author: Eric Robertson
body: Thank you for the information. I am searching for additional details and can't find any information about the Bamboo roadmap for 2015. Do you have a link to said roadmap, by any chance?


author: Sten Pittet
body: Hi @Eric Robertson,We do not publish our roadmaps as some of our plans can evolve in the span of 6 months. We want to protect our customers from making commitments based on items that are in our long term plans and that may change before the original date.Cheers,StenBamboo Product Manager


author: Eric Robertson
body: Thank you for the answer, Sten, as well as Krystian and Alan. I appreciate it!


author: Marco De Gregorio
body: Are there any updates on this? will this also be supported for on-premises installations? this is an important information for us to decide if to buy bamboo now or migrate to another CI system.


author: sejhemming
body: Again. Any update on this? The end of 2015 approaches and we are holding off making a build server commitment to see if/when the bamboo option comes available


author: Eric Robertson
body: Our situation is similar. It has been a year, is there any update?


author: Dave Thomas
body: It looks like this feature finally shipped with Bamboo 5.10-OD-10-008, which rolled out in mid-December 2015.

<https://confluence.atlassian.com/cloud/6-december-2015-to-12-december-2015-792625419.html>


author: Dave Thomas
body: Here's the related improvement in the issue tracker: <https://jira.atlassian.com/browse/BAM-11870>


author: Eric Robertson
body: Dave, thank you for pointing out that this has been recently delivered! This issue was where our consideration of Bamboo stalled out, so I will try to advocate for this once again.


Tags: azure

cloud
I can't reach bamboo through a web browser from 8085 port even though bamboo is installed and running
Asked by Shylesh Yella:

Hello,

I have installed atlassian-bamboo-5.1.7 windows 64 bit bamboo.I am using Java 64 bit and my system configuration is also 64 bit. I have installed bamboo succesfully. When I start the bamboo from bin/start-bamboo.bat. I am not able to access bamboo from 8085.


Answers:
author: rsperafico
body: Hello Shylesh,

Could you please open a Command Prompt and run the following, please:

```
java -version
```

```
echo %JAVA_HOME%
```

---

Kind regards,  
Rafael P. Sperafico  
Atlassian Support


author: Krystian Brazulewicz
body: Shylesh

Please check your configuration as described here: <http://stackoverflow.com/questions/10167062/cant-load-amd-64-bit-dll-on-a-ia-32-bit-platform>


author: Shylesh Yella
body: Hello Rafael,

When I start the bamboo from (\<bamboo-install\>/bin/start-bamboo.bat) I am getting the following error . I am using 64 bit java 1.7 and 64 bit bamboo 5.7.1 and all supported platforms. Could you please check the error why it is caused

java.lang.UnsatisfiedLinkError: C:\\Program Files\\Bamboo\\bin\\tcnative-1.dll: Can't load AMD 64-bit .dll on a IA 32-bit platform

at java.lang.ClassLoader$NativeLibrary.load(Native Method)  
at java.lang.ClassLoader.loadLibrary1(Unknown Source)  
at java.lang.ClassLoader.loadLibrary0(Unknown Source)  
at java.lang.ClassLoader.loadLibrary(Unknown Source)  
at java.lang.Runtime.loadLibrary0(Unknown Source)  
at java.lang.System.loadLibrary(Unknown Source)  
at org.apache.tomcat.jni.Library.\<init\>(Library.java:40)  
at org.apache.tomcat.jni.Library.initialize(Library.java:172)  
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)  
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)  
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)  
at java.lang.reflect.Method.invoke(Unknown Source)  
at org.apache.catalina.core.AprLifecycleListener.init(AprLifecycleListen  
er.java:207)

Thanks,

Shylesh Yella


author: rsperafico
body: Hello Shylesh,

Thank you for your question and I am sorry for hearing you are not able to hit Bamboo.

I would kindly ask you to refer to the following:

* [Bamboo - Supported Platforms](https://confluence.atlassian.com/display/BAMBOO/Supported+platforms)
* [Installing Bamboo on Windows](https://confluence.atlassian.com/display/BAMBOO/Installing+Bamboo+on+Windows)

If required, could you please start Bamboo (\<bamboo-install\>/bin/start-bamboo.bat) and add the Catalina log generated under (\<bamboo-install\>/logs) directory (log entries between this attempt and previous attempt on starting Bamboo), please.

If you find this answer useful, I would kindly ask you to accept it so the same will be visible to others who might be facing the same issue you have inquired.

Thank you for your understanding.

---

Kind regards,  
Rafael P. Sperafico  
Atlassian Support
Gui tests on xvfb, initialisation and cleanup
Asked by Robert Trevethan:

Hello,

I'm investigating Bamboo to build a standalone java desktop application, where I'm struggling is we have some component tests that test the GUI via Junit and FEST as part of the standard maven cycle.

When running on a server / build machine there is obviously no screen so we use Xvfb / a virtual frame buffer to provide a virtual one. This needs to be brought up and killed for each build run.

Is there an easy way of doing this in bamboo? and having the cleanup on builds failing, stopping, completing etc?

Currently we use Jenkins and a plugin called Xvfb Plugin that manages everything. I cant see anything similar in bamboo, nor any plugins to help.

At the moment I am thinking starting Xvfb via a command defined in a job but cleanup is a little more tricky, especially as I read if the build stops/fails before an attempted cleanup stages later on.

I see a HungBuildKiller that may help but thats more of a last resort / would be nice for the builds to clean up cleanly.

So any established / easy ways of doing this?

Thanks,

Robert


Answers:
author: AddteqS
body: You could run the gui tests and the build itself with a Docker container with support for Xvfb, eg: <http://linuxmeerkat.wordpress.com/2014/10/17/running-a-gui-application-in-a-docker-container/>

Bamboo 5.7 announced support for Docker support as build agent so you can use that for the build which should be an option for you requirements to be auto-managed on build completion: <https://confluence.atlassian.com/display/BAMBOO/Getting+started+with+Docker+and+Bamboo>
Purge deleted Bamboo plans
Asked by Xabier Davila:

How long does it take for Bamboo to 'purge' the deleted plan data?

If you need to recreate the plan (same key), how long do you have to wait for it?

Is there any way to trigger this process manually?

Documentation does not provide any info on this subject:

<https://confluence.atlassian.com/display/BAMBOO/Disabling+or+deleting+a+plan>


Answers:
author: Krystian Brazulewicz
body: Job that does the background plan deletion is run every 2 minutes. Full deletion time depends on number of builds you had for your plan.

If you're still unable to create plan with the key of the plan you deleted an hour ago then you should [contact our support](https://support.atlassian.com/servicedesk/customer/bsp)

comments: author: Xabier Davila
body: Thanks for the info. It would be god if someone from Atlassian could add this to the documentation...


Tags: bamboo-administration
Cloud Installation Deploying On Internal Network
Asked by Payal Parija:

I am evaluating whether to go a cloud version or server version of Bamboo. If I choose Cloud, how will it know to deploy to my server within my network?


Answers:
author: Krystian Brazulewicz
body: Payal

In order to make Cloud version of Bamboo deploy anything on your internal network you need to make sure that it is accessible (ie via SSH) from the Internet.

There are of course multiple security issues related to that, so maybe locally installed server version is more suitable for you.


author: rsperafico
body: Hello Payal,

Thank you for your question.

In order to run your builds in Bamboo onDemand, I would kindly ask you to refer to the following for further information, please:

* [Getting started with Bamboo Cloud](https://confluence.atlassian.com/display/AOD/Getting+started+with+Bamboo+Cloud)
* [Getting started with Elastic Bamboo](https://confluence.atlassian.com/display/AOD/Getting+started+with+Elastic+Bamboo)

If you find this answer useful, I would kindly ask you to accept it so the same will be visible to others who might be facing the same issue you have inquired.

Thank you for your understanding.

---

Kind regards,  
Rafael P. Sperafico  
Atlassian Support


Tags: cloud
Is there a way to perform a release build in Bamboo?
Asked by Jonathan Sternberg:

Is it possible to have an action performed when a person clicks "Create release" in Bamboo? I was thinking of using a workflow for my builds like the following.

* Developer commits to source control
  * Build and tests run
* Completed build is promoted to a release
  * Create a new release in Bamboo
  * Run build to change the version number in the project and repackage
  * Upload change to external service (such as a Maven or Rubygems repository)
  * (optional) Commit changes to the repository for updating the version number
  * Tags VCS with the release version
  * Trigger any automatic deployments
* Trigger deployments
  * Perform deployment steps

Is there a way to do this with Bamboo? Is there an alternative workflow that I should consider instead that allows me to include the release version in the compiled product and modify the SCM? I've been finding problems doing this as part of a deployment plan because the release build needs to be performed once while I may have multiple environments I need to deploy to.

If I try to do this during the build plan, I can't take advantage of the release versioning feature and the release build still won't be triggered if somebody pushes "Create release". Any help would be appreciated.


Answers:
author: Paul Fink
body: You can do a build as part of your release plan. All of the build tasks are available in the release but that would defeat the idea of releasing a build. You've created a new build so your not really release what you built, and presumably tested.

But I share your problem. How can a label a build when I don't know what release version will be? WHat I did is label the build with the build ID. The build number can always be used to trace back to the release history.

You can also use the planKey \& build number as part of your release version. See "add variable to version".

comments: author: Mike Friedrich
body: How do you solve the problem where binaries contain the release version number?E.g. version info resource in DLL's and EXE's


author: Jonathan Sternberg
body: As I understand it, does that mean I have to have a build plan (for testing pull requests) and a separate release plan? Is there anyway to leverage the "Create release" button in that case or do I have to make it so every build performed in the "Release plan" is a release?There doesn't seem to be a way to link two different plans to each other in the UI.


author: Paul Fink
body: I'm not sure if I understand but I'm sure the answer is no. The whole "Create Release" is pretty weak.


author: Christoph N_
body: Jonathan, did you find a solution yet?I'm in a similar situation and asked Atlassian Support. They created an improvement request, but my hopes are low given the complexity this would probably introduce into Bamboo:<https://jira.atlassian.com/browse/BAM-16231>
Problem with Bamboo security
Asked by Chip Truax:

We have bamboo 5.3 and it is using Crowd (which is synched with our AD) for user management. We have a user who is in crowd and shows up in bamboo users and his assigned groups. The problem is, when he tries to login to bamboo with his correct user and password, he keeps getting told his user is invalid and is getting prompted for a username/password and a captcha. We have never seen this behavior from bamboo for a user who is in the system - for all other users, their AD user and pw work fine. We have investigated this from the AD/Crowd side and have determined that there is nothing wrong with his user account. Also, he can login into JIRA just fine, and it is set up the same way with Crowd. Can you tell me what in bamboo may be causing this behavior? For instance, if there was a local user with same account name, could that cause a problem (just and example, we do not have local users and groups turned on for bamboo).


Answers:
author: Felipe Kraemer
body: Hi Chip,

Probably the user has exceeded the number of failed login attempts in Bamboo.

Can you please connect to the Bamboo database and run this query:

```
DELETE FROM AUTH_ATTEMPT_INFO;
```

This should zero the failed login attempts count for every user. Then, please restart the Bamboo instance.

If this answer was helpful, please allow me to ask you to mark my answer as accepted in order to have it in the top of the thread, also helping other customers.

Thanks in advance!

Kind regards,  
Felipe Kraemer

comments: author: Chip Truax
body: That seemed to have cleared it up.


author: Felipe Kraemer
body: Awesome stuff!


Tags: bamboo-administration
Where can one see the upcoming release of new features?
Asked by Jonathan Gafner:

Hi  
Where can one find release notes of upcoming BB releases ?   


Answers:
author: Fabio Racobaldo _Herzum_
body: Hi [@Jonathan Gafner](/t5/user/viewprofilepage/user-id/4700898) ,

a bitbucket cloud plan can be accessed using the following link <https://www.atlassian.com/roadmap/cloud?selectedProduct=bitbucket>

Hope this helps,

Fabio


author: Jonathan Gafner
body: Thanks Fabio for the quick answer.  

The page you sent me is showing few upcoming plans without any option to expand and read about those plans.   
Also sound strange that BB team is working on one task per Quarter ?   

I was wondering plans on BB pipeline especially since we feel a lot of features are missing in compare to what other CI tools are offering and was wondering if there is something in the oven but I guess there is no.   

Anyway once again thanks for the answer!!   

<br />

![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/194313i793077B759F7E124/image-size/large?v=v2&px=999 "image.png")

comments: author: Fabio Racobaldo _Herzum_
body: Hi [@Jonathan Gafner](/t5/user/viewprofilepage/user-id/4700898) ,

you can also take a look to the Bitbucket Backlog using the following link <https://jira.atlassian.com/issues/?jql=project%20%3D%20BCLOUD>


Tags: bitbucket-cloud

cloud
What log shall I look into to see about Bamboo build "did not start"?
Asked by Andrey Sergeev:

I have Bamboo build. At the web-page of the build I have "did not start" after the build number (where the progress bar is), and at the build summary pane I have

Status - Reason for not building is unknown

If I want to find any information about any related events, what may be the best way?

What logs may I pay special attention to?

I suspect I have some logs disabled - what may I check in order to enable them?  

Thank you!


Answers:
author: Felipe Kraemer
body: Hi Andrey,

You can take a look at the Bamboo instance logs that are located at *\<Bamboo-Home\>/logs/atlassian-bamboo.log* , and if the builds are supposed to run on remote agents you can take a look at the agent logs (*atlassian-bamboo-agent.log*).

Kind regards,  
Felipe Kraemer
trouble logging in to bitbucket
Asked by servette:

Bitbucket  
We couldn't log you in  
You may run into this issue when you use specific browsers or add-ons that hide the referer header for id.atlassian.com and other Atlassian sites. Check for these and then try logging in again.


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

I saw that you created a ticket with our support related to the same question, so to avoid any possible misunderstandings or miscommunication that may arise from discussing the same matter on two different platforms, let's focus on the ticket instead.

Once the ticket is resolved, feel free to share the resolution here to help other community members that may have the same issue.

Kind regards,  
Caroline


author: Fadoua
body: [@servette](/t5/user/viewprofilepage/user-id/4891869)

Please raise a ticket with Atlassian by clicking [here](https://support.atlassian.com/contact/#/)

Best of luck

Fadoua


Tags: bitbucket-cloud

cloud
Someone has already added that key as an access key to a repository.
Asked by daveloba:

Could you tell me which repo has this key as access key?

Thanks

\<removed due to privacy reasons\>


Answers:
author: Caroline R
body: Hi, [@daveloba](/t5/user/viewprofilepage/user-id/2147598),

thank you for reaching out to Atlassian Community.

As we cannot share this information publicly, I have created an internal ticket for you using the email of your community account.

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


author: Rob van der Lee
body: Hi [@daveloba](/t5/user/viewprofilepage/user-id/2147598), welcome to the community! We cannot see this. The people on this forum are the community trying to help other people but obviously we cannot look into your repositories.

However, if you are running Bitbucket Server than the admin should be able to look that up for you. If you are running cloud than I would suggest just going over the repositories yourself.


Tags: cloud
Pipelines npm not found
Asked by Sean Dean:

I'm trying to run a pipeline that runs an npm build, but I keep getting an \`npm not found\` error. Here is my bitbucket-pipelines.yml file (please excuse the formatting)

```
image: node:14.16.0

pipelines:
tags:
'*.*.*':
- step :
name : "Build"
deployment: production
script :
- npm install
- npm run build
artifacts:
- dist/**
- step:
name: RSYNC To Server
script:
- pipe: atlassian/rsync-deploy:0.7.1
variables:
USER: $SSH_USER
SERVER: $SSH_IP
REMOTE_PATH: $PATH
LOCAL_PATH: './dist'
DEBUG: 'true'
EXTRA_ARGS: '-avzq --delete --links --exclude-from=rsync_exclude.txt'
?
```

Here is the log file, if it helps.

```
+ umask 000

+ GIT_LFS_SKIP_SMUDGE=1 retry 6 git clone --branch="main" --depth 50 https://x-token-auth:$REPOSITORY_OAUTH_ACCESS_TOKEN@bitbucket.org/$BITBUCKET_REPO_FULL_NAME.git $BUILD_DIR
Cloning into '/opt/atlassian/pipelines/agent/build'...

+ git reset --hard 7ed763c53d5f5de117d3b6297b6eaaa9204b5d5c
HEAD is now at 7ed763c try atlassian default

+ git config user.name bitbucket-pipelines

+ git config user.email commits-noreply@bitbucket.org

+ git config push.default current

+ git config http.${BITBUCKET_GIT_HTTP_ORIGIN}.proxy http://localhost:29418/

+ git remote set-url origin http://bitbucket.org/$BITBUCKET_REPO_FULL_NAME

+ git reflog expire --expire=all --all

+ echo ".bitbucket/pipelines/generated" >> .git/info/exclude

+ chmod 777 $BUILD_DIR

Images used:
build : docker.io/atlassian/default-image@sha256:edf4bd880adf9e7f7677094f7a1d944524c7f98e939550bc152523c5cf6080ff
bash: lesspipe: command not found
bash: dircolors: command not found
+ npm install
bash: npm: command not found
bash: lesspipe: command not found
bash: dircolors: command not found
Searching for files matching artifact pattern dist/**

Searching for test report files in directories named [test-results, failsafe-reports, test-reports, TestResults, surefire-reports] down to a depth of 4
Finished scanning for test reports. Found 0 test report files.
Merged test suites, total number tests is 0, with 0 failures and 0 errors.
```

I've run it through the pipelines validator and it passes as valid. I'm not sure what I'm missing or if something is going wrong in the pipeline itself. Thanks for any help you can provide.


Answers:
author: Sean Dean
body: Ugh. I found the issue. I had an ENV VAR named PATH, which broke everything.


Tags: bitbucket-cloud

bitbucket-pipelines

cloud