youngmon/atlassian-qna huggingface dataset:
Having trouble getting latest using Mercurial
Asked by Ricardo C.:

Hi,

Receiving the following error message in Bamboo from the Source Control task in my Plan. The Source Code Check was functioning properly earlier. I'm using Mercurial on Bitbucket.

*Errors getting changes for PROJ2013-CORE-35*  
(java.lang.RuntimeException : com.atlassian.bamboo.plugins.hg.HgCommandException: command /usr/bin/hg id -i --debug --verbose --rev default --config 'ui.ssh=ssh -o StrictHostKeyChecking=no -o BatchMode=yes' [https://rchange:\*\*\*\*\*\*\*\*@bitbucket.org/projectname/client-website](https://rchange:********%40bitbucket.org/projectname/client-website) failed. Working directory was \`/data/jirastudio/bamboo/home/xml-data/build-dir/_hg-repositories-cache/77ed1f5a78367f9d9a37fdab722803ea3f18e5f4'. stderr: abort: HTTP Error 403: Forbidden stdout: using <https://bitbucket.org/projectname/client-website> proxying through <http://squid:3128> http auth: user johndoe, password \*\*\*\*\*\*\*\*\*\* sending capabilities command )


Answers:
author: Michael Knight
body: Due to a plugin upgrade error on Atlassian OnDemand for the [DVCS connector](https://marketplace.atlassian.com/plugins/com.atlassian.jira.plugins.jira-bitbucket-connector-plugin), we've had to stop communication going from OnDemand to Bitbucket and GitHub temporarily. We're in the process of opening up this communication again, so you should find the service returning to normal shortly.

You can follow [@OnDemandStatus](http://twitter.com/OnDemandStatus) for updates. Apologies for the inconvenience!

comments: author: Ricardo C.
body: Whew! Thanks for the speedy response!


Tags: cloud
Is Bamboo`s plan execution could preempt a stage on another plan ?
Asked by Simon Lapointe:

Is Bamboo\`s plan execution could preempt a stage on another plan ?

I have 2 plans that have at least 2 stages each. The plans could be triggered at the same time. So there is some queued performing.

I noticed this execution sequence:

PLAN1 stage1 starts on agentX, PLAN2 stage 1 starts (on another agent).

PLAN2 stage 1 finished, PLAN2 stage 2 queued waiting on agentX

PLAN1 stage1 completed, PLAN2 stage 2 start on agentX !!!

PLAN1 fucked up !

This preemption is a normal feature?

Regards.

Simon


Answers:
author: Przemek Bruski
body: If I understand the question correctly, you'd like stage 2 to continue on the same agent that was used to build stage 1?

Agents take jobs from queue independently (providing that their capabilities are sufficient). If your stage 2 requires something built in stage 1, you'd need to define that as a shared artifact and pass it between jobs.

comments: author: Simon Lapointe
body: No, sorry, that's not what I mean. In my case, there is only one agent that could perform the job on the stage2 anyway.

No the problem is : I want my first PLAN finished all its job (that could only run on this very agent) without being preempted (interrupt by another PLAN that has to run also under this agent).

Do be more specific, the first PLAN uploads a execution code on an embedded board (target under test) and runs a series of tests after. I don't want that another PLAN uploads another code in between.


author: Przemek Bruski
body: Currently, the only way to avoid it is to have all steps execute in the same plan, sorry.


Tags: cloud
Bamboo is not recognizing ruby.runtime. Please assist
Asked by chandan Kumar:

After installing rake plugin(bamboo ruby plugin), I am trying to add a rake task for rake configuration to call ruby based cucumber test scripts.

While configuring the rake configuration task , Bamboo should auto recognize the ruby.runtime and load it, but it is not doing so. I have done multiple checks on "Path" environmental variable to have ruby runtime location also.

Please assist me in resolving this issue.


Answers:
author: Przemek Bruski
body: You've labelled this question with OnDemand tag. How did you install a plugin on OnDemand?

comments: author: chandan Kumar
body: Sorry for the confusion, I have installed the plugin by placing the jar at

..\\Bamboo\\webapp\\WEB-INF\\lib and then restarted the bamboo server.

I have also tried installing the plugin through "plugin manager" in bamboo administration. Still I face the same issue. It is not recognizing ruby executable's path.

Please assist
error MSB4019 when building Visual Studio 2012 solution
Asked by mkeynejad:

Hi there,

I am trying to build VS 2012 solution and getting this error:

C:\\build-dir\\XXXDEV-JOB1\\XXX..Web\\XXX.Web.csproj(473,3): error MSB4019: The imported project "C:\\Program Files (x86)\\MSBuild\\Microsoft\\VisualStudio\\v10.0\\WebApplications\\Microsoft.WebApplication.targets" was not found. Confirm that the path in the declaration is correct, and that the file exists on disk.

Looks like VisualStudio v10.0 is not installed on the agent, when I am running it locally it is using Visual Studio v11.0 and everything is fine.

Any idea?


Answers:
author: AgentSmith
body: Greetings,

For those seeing this posting for the first time, there is an identical question that is more current here:

[https://answers.atlassian.com/questions/78854/how-can-i-fix-this-bamboo-build-error-error-msb4019-the-imported-project](/questions/78854/how-can-i-fix-this-bamboo-build-error-error-msb4019-the-imported-project)

Cheers,

Jason \| Atlassian

comments: author: Anupam Pandey
body: Didn't help me. I'm not with AWS yet. Anybody with a different idea ???


Tags: cloud
How do I build an RPM using Bamboo?
Asked by John Chaney:

Hello, I am trying to stand up a bamboo instance and after completing a source pull and build, I would like to create an RPM for distribution to my server. Is there any information regarding how to do this or a best practice? Based on what came stock inside of Bamboo, it looks like I could do it inside of a Command Task, but I would prefer something a bit more reusable if possible.

Thank you.

-John Chaney


Answers:
author: LucasA
body: Hi,

Note that if you can perform on your instance command line, you can do it using Bamboo. I believe you can create a script and execute it setting a script task in Bamboo: <https://confluence.atlassian.com/display/BAMBOO/Script>

Cheers,

Lucas Lima

comments: author: John Chaney
body: This answer is definitly what I ended up implementing. The process of making RPMS is easily scritable for some sections, and needs to be configured on a per project basis in others. I suppose I was hoping for a plugin to be available, but this method will suit my needs and make me learn something new. So thanks.


author: AgentSmith
body: Please reference: <https://jira.atlassian.com/browse/BAM-15732> and <https://jira.atlassian.com/browse/BAM-12107>

comments: author: Chris Gembarowski
body: He's asking how to build an RPM packing using Bamboo not how to package Bamboo in an RPM.


author: David Crook
body: At my company we build RPMS using an ant script that calls the ant RPM task. There wasn't any difference having Bamboo run this.


Tags: rpm

task
When restarting the Linux Server Bamboo comes up with set-up screen again
Asked by Heiko:

Hi,

we're using Bamboo 4.3.1 under Linux Ubuntu 12.4 to evaluate the CI System.

We have installed and configured Bamboo (projekt, plan, several Jobs) and all is running fine.

Moreover we have set-up a MySQL database that is used with Babmoo. So far so good.

However, if the Linux System is rebooted Bamboo comes up with the basic set-up screen asking for the licence file again.

Due to this the complete configuration got lost.

Please find here the upstart script we are using (At the moment we still run Babmoo as root - will be changed later)

# bamboo - Continuous Integration tool

#

# Bamboo is a Continuous Integration tool.

description Bamboo continuous integration tool

start on runlevel 2345

stop on runlevel !2345

# Automatically restart process if crashed

respawn

# Give up if restart occurs 10 times in 30 seconds.

respawn limit 10 30

#current bamboo install dir

chdir /usr/share/bamboo/atlassian-bamboo-4.3.1

#First try without bamboo user

exec sh bamboo.sh start

#todo: starting as bamboo user

#exec sudo -u bamboo sh bamboo.sh console

Furthermore we have set in 'bamboo-init.properties'

bamboo.home=/run/bamboo

So, what's the problem here?

What do we have to change preventing to loose the complete configuration

when booting the Linux Server?

Thanks for your support

BR

Armin

<br />


Answers:
author: nseinlet
body: you have to set up your bamboo home on another rep than under /run. try /home/bamboo for example.


Tags: restart
How to make git commands in a script task
Asked by Vcabourdin:

I try to make a simple git merge command in an inline script task.

This script task is executed just after a source code checkout task (on master).

This is my script task :

```
git merge develop
```

This is the error:

```
fatal: develop - not something we can merge
```

The 2 branches can be merged so I don't understand why I have this error


Answers:
author: Przemek Bruski
body: the local repository for your plan is created via

git init

git fetch

You probably need to fetch the branch to your repo first. Try executing your script task command manually in the plan build directory.

BTW. Is the branch integration feature not enough for your use case?

comments: author: Vcabourdin
body: Maybe the branch integration feature can help me but I don't know how.

I have multiple jobs

1. Tests: checkout develop branch and run unit tests
2. If first job is ok
   1. merge develop on master (I don't know how)
   2. If possible I would like to tag and push the tags on origin
   3. some others things via scripts
3. If previous job is ok I have other jobs to deploy but I know how to do it

Do you know any good tutorial or example on how to achieve that ?

I already read bamboo documentation and it's not clear enough for me

Thank you in advance


author: Przemek Bruski
body: Please check if enabling Gatekeeper mode on that branch works for you then. It will merge with master only if the build is succesful.

Tagging will still not work unless you explicitely hook up your git checkout to repository


author: Vcabourdin
body: When you say build you mean the whole plan ?

develop branch will be merged to master only if the whole plan is successful ?


author: Vcabourdin
body: Ok, i managed to merge my branch with the gatekeeper mode but it seems the merge appens at the end of the plan. Is it true ?

Is it possible to launch the merge after a job or a stage ?


author: Vcabourdin
body: This post explains it very well: <http://blogs.atlassian.com/2012/04/bamboofeature-branch-continuous-integration-hg-git/>
number of local agents
Asked by James Youngman:

We have a 3 CPU VMWare machine running Bamboo 3.4.1. Is there a rule or guideline for the number of local agents hat can be run concurently? Does it map to the numbre of cores? For example 2 per CPU core? We are running 6 agents.


Answers:
author: Przemek Bruski
body: Do you mean agents?
Can a self-hosted Bamboo installation integrate with the user management of OnDemand?
Asked by Ari:

We would like to self-host Bamboo, in order to avoid Elastic Bamboo. However we don't want to maintain users separately. Is there a way for a self-hosted Bamboo configuration to tie into our OnDemand (via Google Apps) user management?


Answers:
author: Bruno Rosa
body: Hi, it's not possible to tie a self-hosted Bamboo with OnDemand so that it can use the OnDemand user base (logging in via Google Apps or not). You'll have to maintain users separately. The only way to achieve that would be subscribing for Bamboo OnDemand.

Cheers,

Bruno Rosa
Git Executable setup
Asked by Dan Vella:

So I was able to use the built in GitHub configuration that is provided by Bamboo to fetch my repos and complete builds. I am now looking to expand my use of Bamboo do to the Branching and work with submodules in my project. I added Git to my build server (linux) and added that configuration to my server capabilities (/usr/bin/git). When I go back to run my basic working plans now, I am getting the following:

com.atlassian.bamboo.plugins.git.GitCommandException: command /usr/bin/git ls-remote https://\<username\>:\*\*\*\*\*\*\*\*@github.com/buildcom/\<project\>.git failed with code 139. Working directory was \[.\]., stderr: \[\])

Am I missing a setup somewhere that I need to do on the build server with Git?

<br />


Answers:
author: Dan Vella
body: So what it turned out to be was our own configuration. I needed to upgrade the GIT on my server to 1.8 and build it correctly with curl options. Once we did a proper install with all the settings, we were able to get past this issue.


author: Przemek Bruski
body: That's weird - does it work if you execute that command manually?

comments: author: Dan Vella
body: No it does not:

-bash: !@github.com/buildcom/\<project\>.git: event not found

So I guess that is my root problem. Ideas? does a git ls-remote https://\<username\>:\*\*\*\*\*\*\*\*@github.com/\<repo\>/\<project\>.git work for anyone else on linux?


author: PiotrA
body: Could it be that you're having '!' chars in your password and the Bamboo doesn't properly escape them? <http://serverfault.com/questions/208265/what-is-bash-event-not-found>
Cannot redirect script output
Asked by Jason Erickson:

I am using Bamboo to run a script that compiles our source code. We use a custom developed compiler that is called from this script. The compiler displays a compile log as output, which the script redirects to a text file using the method below:

call compiler \>compilelog.txt

The output works fine when run from the command line, however when I execute the script in Bamboo, the log output never gets redirected. If I look at the log created by Bamboo, a '1' is entered before the output is redirected as shown below:

call compiler 1\>compilelog.txt

I guess my question is why is the '1' being placed in my script, which seems to be ignoring the output destination. It is very important that this log is saved in the text file that we are attempting to output it too, as we use this log for many reasons. Any help on how to surpass this issue would be greatly appreciated.

Thanks!

Jason

<br />


Answers:
author: Matt
body: Bamboo puts 1 to your output to store stdout to your file.

This allows to catch stderr and prints it in the bamboo logs.

Make sure that your compiler prints to stdout instead stderr

You may also try:

```
call compiler 1&gt;compilelog.txt 2&gt;&amp;1
```


Tags: output

script
Unable to get Bamboo Agent and Bamboo Server to communicate
Asked by Chad Larkin:

I have installed Bamboo Server on a 64 bit CentOS linux server. After following the installation instructions and the agent installation instructions the Agent is unable to connect to the Server across port 54663. The firewall has been changed to allow communication of 54663.

When this command is run when the Bamboo server is running: netstat -nat \| grep LISTEN

it returns:

tcp 0 0 0.0.0.0:3306 0.0.0.0:\* LISTEN

tcp 0 0 0.0.0.0:111 0.0.0.0:\* LISTEN

tcp 0 0 0.0.0.0:80 0.0.0.0:\* LISTEN

tcp 0 0 0.0.0.0:22 0.0.0.0:\* LISTEN

tcp 0 0 127.0.0.1:25 0.0.0.0:\* LISTEN

tcp 0 0 0.0.0.0:58017 0.0.0.0:\* LISTEN

tcp 0 0 ::ffff:127.0.0.1:8005 :::\* LISTEN

tcp 0 0 ::ffff:127.0.0.1:54663 :::\* LISTEN

tcp 0 0 :::36010 :::\* LISTEN

tcp 0 0 :::111 :::\* LISTEN

tcp 0 0 :::8080 :::\* LISTEN

tcp 0 0 :::8085 :::\* LISTEN

tcp 0 0 :::22 :::\* LISTEN

tcp 0 0 ::1:25 :::\* LISTEN

tcp 0 0 :::8090 :::\* LISTEN

tcp 0 0 ::ffff:127.0.0.1:8000 :::\* LISTEN

So we can see that it is listening, but the agent machine cannot connect. If I shut of the Bamboo server, then I can run nc -l 54663 on the server and the windows machine that has the agent can telnet to port 54663. So I know that I can communicate across this port between the agent machine and the server. But, communication fails when Bamboo is running.

We are trying to prove that we can run Bamboo server on a linux machine and execute msbuilds on an agent.


Answers:
author: Chad Larkin
body: With the help of Atlassian support, the solution was a bit easier than I expect though very hard to identify. The culprit was an unsupport version of OpenJDK. The solution was to uninstall Bamboo, install a supported version of OpenJDK, and then reinstall Bamboo. Then it all worked wonderfully.


Tags: agent
Using msbuild passing a project variable to msbuild and it appears not to be working.
Asked by Rob McElroy:

I'm using Bamboo to execute mbsbuild tasks. On one task I need to pass a bamboo project variable to an msbuild propertygroup item.

I'm passing the following arguments in the Options parameter for my build task.

/p:Issues="${bamboo.DBChanges}" /target:UpdateDatabase

The target is executed properly, but the Issues item is never set.

Here is where my Issues property group is defined in my script.

```
&lt;PropertyGroup&gt;      &lt;Issues&gt;&lt;/Issues&gt;    &lt;/PropertyGroup&gt;
```


Answers:
author: Rob McElroy
body: The problem was the \<propertygroup\> was defined inside of a target and should have been defined globally, or outside of all targets.
Disk space required by Bamboo keeps growing -> any way to manage this?
Asked by Brian King:

We found recently that our Bamboo installation was reaching the limits of it's disk space.

I have build expiry running nightly (keep builds for 1 week, minimum of 6), and this seems to clear up a few GB when run, but however this extra space disappeared very quickly after a few builds had been run. In practice, build expiry was running nightly, and any space that had been recovered was lost again by the morning.

On further investigation I found that the D: bamboo-home xml-data build-dir directory was massive (\~20GB) and it wasn't being reduced when build expiry ran. I copied this directory elsewhere, and confirmed that Bamboo was functioning correctly without it, and am planning on deleting these files.

Is it safe for me to be deleting the D: bamboo-home xml-data build-dir directory?

Is there some in-built job in Bamboo that can manage the size of this? Some cleanup tool?

<br />


Answers:
author: Sultan Maiyaki
body: Can you navigate to the miscellaneous tab of your job configurations and check the option **Clean working directory after each build** . This will clear the local copy of the repository available at\<tt\>D:\\bamboo-home\\xml-data\\build-dir\</tt\> before each build. Please note that this may increase the time taken to run a build but will save space

comments: author: IS
body: How can this be set by default for all new job configurations, preserving build artifacts?


author: Kyle Varga
body: I am also looking for this. Is there a way to set as default?


author: ChadB
body: Same for me, is there a way to set this as default or have it set in Bulk edit rather than going thru 300 different build jobs?


author: Patrick Schneider
body: Is it save to manually delete the .svn / .git directories within build-dir\\... ?


author: Richard Cross
body: If you clean the working directory after the build, you lose any ability to properly troubleshoot a failed build. There must be a better solution than this, such as build history retention, artefact retention, configurable per plan/job


author: Richard Cross
body: Additionally, the above suggestion does not get rid of old build logs or archived artifacts... which ins some cases are the real cause of disk space issues.


author: Phil Rittenhouse
body: \> you lose any ability to properly troubleshoot a failed build

Agreed. Is there not an open feature request already to resolve this? If not I'll file a support ticket.

It should be as simple as removing working directories older than N days, or keeping the last N working directories for a given plan.


author: Phil Rittenhouse
body: See feature request [BAM-13589](https://jira.atlassian.com/browse/BAM-13589?focusedCommentId=710006&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel) and vote for it


Tags: administration
Pass found Jira issues to Ant task in Bamboo
Asked by Keith Miller:

So Bamboo gets the list of Jira issues it finds when doing a build. I want to get that list and interact with those issues though the Jira API. Is there any way to get those from the build itself?

Basically, I want to move all the Jira issues to 'In QA' once Bamboo has moved the build to QA. I'm not sure this can be done, but it would be great if it could.

Thanks!


Answers:
author: PiotrA
body: Ah, and there is this <https://jira.atlassian.com/browse/BAM-11708> issue that you could find valuable to vote on and watch...

comments: author: Keith Miller
body: Cool thanks!


author: PiotrA
body: Hi Keith,

Maybe you could try using Bamboo REST API? Like for example using some ( curl -u user:pass <http://BAMBOO/rest/api/latest/result/PROJ-PLAN-1234?expand=jiraIssues> ) and then parse and inject these issues into your Ant task? But I'm not very confident this would be the most feasible solution. Maybe someone else here have better idea?

regards,
Cannot delete an Elastic Image Configuration
Asked by abarnes_cox:

Hi,

I'm trialling Bamboo onDemand and I have an Elastic Image Configuration that does not give me the option to delete.

Initially I thought it could be because a build exists that was built on that configuration but I have deleted all the possible builds and still no joy.

Also I'm a bit confused as to whether it should be labelled as a "stock image" when its one I created. Here is the line in the "Manage Elastic Image Configuration" page:

```
PHP Bamboo Instance (stock image) (disabled) 	ami-8156eae8 	No EBS 	Small 	us-east-1b, VPC subnet ecf3axxx 	0 	Enable |  View Capabilities |  Edit
```

Thanks for any suggestions

Alex


Answers:
author: Przemek Bruski
body: You can't delete that image because it's marked as a stock image.

But it should not be labeled like this - please contact support, it looks like a bug.

comments: author: abarnes_cox
body: Thanks will do.


author: abarnes_cox
body: It was a bug and the support guys fixed it for me.

Cheers


Tags: cloud
Bad Request 400 on file upload
Asked by Scanit Technologies:

My file (.csv) is 2.58MB and I continue to receive the 400 error. Isn't the file limit 100MB? The total lines in this file is 17,155. If I reduce my file size below 2.5MB then the file uploads successfully.

<br />

If the file is uploaded via the git package on my linux terminal the commit is also successful. It seems the issue is only with the browser upload of the file.

What could be causing this failure if I have not reached the file size limit?


Answers:
author: Syahrul
body: Hi [@Scanit Technologies](/t5/user/viewprofilepage/user-id/4654149)

Welcome to the community!

I tried uploading similar files and sizes as yours using the uploader in the UI and so far haven't had any issue so can you try to reproduce this in a different web browser just to verify that it's not b browser-specific issue?

Additionally, can you also try uploading it via the cURL:  

```
curl -v -u username:AppPassword -X POST https://api.bitbucket.org/2.0/repositories/workspaceID/repoName/src -F filename.ext=@filename.csv
```

If it's failing, please share with me the verbose logs and remove any unnecessary information.

I look forward to hearing from you.

Cheers,  
Syahrul

comments: author: Scanit Technologies
body: The issue is only on the website. Where do I find the verbose logs when using the website?


author: Syahrul
body: Hi [@Scanit Technologies](/t5/user/viewprofilepage/user-id/4654149)

Noted, the logs are for the curl commands if it's failing. If it's for the web you can get the [har log](https://confluence.atlassian.com/kb/generating-har-files-and-analyzing-web-requests-720420612.html) while reproducing the issue.

Additionally, have you tried to upload the same files on a different web browser and incognito windows? This is to verify that it's not a b browser-specific issue that's causing the file to fail to upload.

I look forward to hearing from you.

Cheers,  
Syahrul


Tags: bitbucket-cloud

cloud