youngmon/atlassian-qna huggingface dataset:
How to specify Git repository when firing Bamboo release task from Jira?
Asked by Jan Proke?:

Hi there,

I would like to know the best practices for JIRA and Bamboo integration. At the moment we have Bamboo plan for releasing new version of our XY plugin. Because we have about 20 plugins, each of them is in individual git repository, we would like to share the very same Bamboo plan for each XY plugin we develop.

We are not able to figure out how we can set the git repository/s that is related to JIRA project.

We are using Jenkins at the moment, we have made JIRA plugin for ourselves where we can specify repository/s for each JIRA project, thus when we was firing Jenkins job, we could simply pick the repository that was listed in JIRA project, so Jenkins cloned/checked out specified repository.  

So the question is quite simple, is there any way how to fire the same Bamboo plan from JIRA, but against different repositories? If so, how? If not, what are the best practices? I don't belive that you have to have separate plans for each repository or that you have to fire the job for all specified repositories within Bamboo plan.

Thank you for any help, Jan


Answers:
author: HarryH
body: Please see this. <http://blogs.atlassian.com/2011/10/bamboo_33_released_continuous_integration_multiple_repository/>

comments: author: Jan Proke?
body: Well I'm aware of multiple repositories within one Plan, but how to force the plan to use desired repository? Let's say we have one Release Plan within Bamboo configured with 20 repositories. But each run of plan should be agains just one repository (which is related to the plugin we are releasing now).So the question is, how I force Bamboo to run the plan on repository, that is related to Jira project when I fire Release task from Jira itself?


author: Jan Proke?
body: To make things more clear. We need to share the same plan for many repositories, where the plan itself runs always agains just one of defined repository.


author: Radek Antoniuk
body: That makes no sense to me. Why would you like to do that?Build plan is for me for a specific package (product). Multiple plugins in your case are multiple products, that can be deployed (via deployment projects) to the same or different test machines. Why do you want to use the same plan instead of having multiple plans?


author: Jan Proke?
body: Well because we have the all the same system for building and testing mechanism for about 50 projects, and growing. It will be very hard to maintain such an amount of copies of the same logic.Maybe if there could be sort of plan templates (set of tasks), that could be used in plan, that is related to project, that could help.So anyway, there is no way how to avoid duplications in plans definitions?Thank you.


Tags: bamboo-administration
Unable to give "/" character in the requirements section
Asked by ambicashri shetty:

After the bamboo upgrade, "/" can't be given in the requirements section of Bamboo plan to match a regular expression.

It throws a error telling "This entry cannot contain the character \\"

Is there any other way of specifying regular expressions?


Answers:
author: ambicashri shetty
body: We have updated it to 5.9.1. The screenshot displays one requirement which was specified before the update and was successful. After the update it throws error on adding the same character.bamboo_issue.png  
[](https://community.atlassian.com/t5/Bamboo-questions/Unable-to-give-quot-quot-character-in-the-requirements-section/qaq-p/41350?attachment-id=11477){#link_116879e940e343}  
[](/tnckb94959/attachments/tnckb94959/bamboo-questions/1283/1/bamboo_issue.png){#display_116879e940e343_0}


author: cbenard1
body: Hi Ambicashri,

Can you please let me know which version of Bamboo you've just updated to? I'm absolutely able to utilize regex with the `/` character. The error you've mentioned is the backslash, which is definitely not allowed. Can you please confirm that you have indeed provided forward slashes instead of backslashes as the error message suggests (which doesn't seem to be the case because you clearly use both in your question here, I'd just like to cross my Ts and dot my Is)? If that's not the case can you please create a ticket at <https://support.atlassian.com> and provide a Bamboo Support Zip (Bamboo Administration \>\> System \>\> Atlassian Support Tools \>\> Support Zip \>\> Create) as well as a screenshot of your regex.

Thanks!

Turner
Is it possible to assign a repository in JIRA and then use it in Bamboo?
Asked by fhemerka:

We are using JIRA, Bamboo and Bitbucket, and we want to build an application with bamboo. Is it possible to assign a repository to a JIRA project and then use it in Bamboo? If yes, how?


Answers:
author: Timothy
body: You can take a look at Administration \> Project \> Administration \> Development. Basically, JIRA knows how to read the index from all repositories. Don't forget that code can be committed to any repository to fix a single JIRA issue and Bamboo can pull from multiple repositories for one single build plan.

As long as your commits have the JIRA Issue key, you are fine.

comments: author: Jan Proke?
body: Hi Timothy,so when we have a plan with for example 5 repositories, when we commit to one of them, the build will be triggered only for repository, when the event happened?Example plan to run Unit Tests with:- repository A- repository BSource code checkout task is configured to use default repository (repository A).When I create pull request in repository B, the plan triggers only on repository B, no mather that in source code checkout task is selected default repository?Example plan to release new version (tests, git tag, package, upload package to dependency repository):- repository A- repository BHow we select, from Jira, the repository we want the plan to run on?Thank you.


Tags: bamboo-administration

jira-administration
How to deploy (SCP copy, linux) a 'C' executable file with executable permissions
Asked by Susan Hinton:

(New to Bamboo) We have a large project directory tree we want to deploy -- which contains compiled C/C++ executable binary files, executable shell scripts, as well as compiled JAVA code. We've got it to compile and to deploy to a remote machine, but none of the C/C++ executables have executable permissions. Ditto for the shell scripts. For the shell scripts, we can commit and pull them from git with executable permissions, so why does Bamboo not follow suit? More importantly, how do we deploy so that our files, C-executable and shell scripts, have executable permissions?


Answers:
author: Susan Hinton
body: Yes, we've started doing that. But, because we have scripts and executables in a number of places, it is irritating.


author: Alexey Chystoprudov
body: Hello Susan,

You can run ssh command to change permissions of file at remote host. More details in documentation <https://confluence.atlassian.com/display/BAMBOO/Using+the+SSH+task+in+Bamboo>
Bamboo Elastic Agent can't start
Asked by Hayk Avetisyan:

When a new elastic instance comes up it fails to start the elastic agent. I see the following error in the bamboo-elastic-agent.out log:

root@[ip-172-31-17-228:/opt/bamboo-elastic-agent/bin#](http://ip-172-31-17-228/opt/bamboo-elastic-agent/bin) /etc/init.d/bamboo start  
Starting bamboo  
root@[ip-172-31-17-228:/opt/bamboo-elastic-agent/bin#](http://ip-172-31-17-228/opt/bamboo-elastic-agent/bin) Starting Elastic Bamboo Agent...  
2015-07-01 06:39:20,292 INFO \[main\] \[S3Sync\] Syncing from: bamboo-agent-release-eu-w1/5.10-OD-01-004/38e64b49d9dd5dda25c940a4d073a02981351da7/ to /opt/bamboo-elastic-agent  
2015-07-01 06:39:20,594 INFO \[main\] \[S3Utils\] Syncing s3://bamboo-agent-release-eu-w1/5.10-OD-01-004/38e64b49d9dd5dda25c940a4d073a02981351da7/ to /opt/bamboo-elastic-agent  
2015-07-01 06:39:20,594 INFO \[main\] \[S3Utils\] Fetching the list of remote objects...  
Exception in thread "main" AmazonS3Exception: Status Code: 403, AWS Service: Amazon S3, AWS Request ID: 55ADF7C42A65EB83, AWS Error Code: AccessDenied, AWS Error Message: Access Denied, S3 Extended Request ID: Gwr6WB1yFSXVj8AMDwarJFNoUgcWJN0iCGdp1yaCQdRl2fAwLtIV8Ah61hP/A1vmkWWZknNxEXo=  
at com.amazonaws.http.AmazonHttpClient.handleErrorResponse(AmazonHttpClient.java:644)  
at com.amazonaws.http.AmazonHttpClient.executeHelper(AmazonHttpClient.java:338)  
at com.amazonaws.http.AmazonHttpClient.execute(AmazonHttpClient.java:190)

. . .

We have a license for 5 remote agents. Now there is only 2 agents in running state, the 3 of them always in pending state. We have manually terminated these 3 this morning, but server starts new agents as there is queue and it will increase during the day.

Please advise! We are almost totally blocked.


Answers:
author: Alexey Chystoprudov
body: Hi [Przemek Bruski](https://answers.atlassian.com/questions/users?username=557057%7C15208c6f-6717-4a1c-a6db-5a137fb47b4d) and [Alexey Chystoprudov](https://answers.atlassian.com/questions/users?username=557057%7C24f42a7e-e777-48f6-a987-05c51062f814)

it worked longer than year, thanks, but currently we have the same issue.

How to continue?

comments: author: Alexey Chystoprudov
body: it should be fixed now. Please try


author: Przemek Bruski
body: This has been fixed earlier today.


author: Alexey Chystoprudov
body: Please create support request at support.atlassian.com and our Support Engineers will help you


Tags: cloud
The requested URL could not be retrieved
Asked by guy moore:


Answers:
author: guy moore
body: sorry, i didn't mean to ask a question.

but now that i'm here typing, I had a problem connecting to my brand new installation of bamboo on a Linux ubuntu 14.04 machine, and could not connect from firefox on the same machine with syntax of localhost:8085

or 127.0.0.1:8085.

It turns out that Firefox, i think, was sending that syntax through the system wide network proxy on the linux machine, as I had to set up a proxy in order to get out on the internet to install linux packages etc.

I had to go into Firefox settings and click "no proxy" in order to get that syntax to work.

(I was able to connect to the linux bamboo installation with full IP address from my Windows laptop running Chrome.)

All set now. thanks.


author: petry
body: Hey Guy,

Can you let us know if is there any stacktraces in your log file, so we can try to help you with that?  
Also, where exactly is this error appearing? (steps to replicate)

Thanks in advance!

Andre


Tags: bamboo-administration
Is Bamboo Cloud having known issues?
Asked by Jeremy W Walker:

We are experiencing several graphical and procedural issues with our Bamboo Cloud installation. Is there a known outage of sorts or do we need to submit a support ticket?


Answers:
author: Przemek Bruski
body: We are aware of the problems after the latest upgrade. We are currently working on delivering a fix to this issue.


author: Glen Sonnenberg
body: I am seeing similar problems communicating with the backend and editing build plans. I can't edit triggers or initiate builds.


Tags: cloud
All Bamboo pages failing with javascript errors
Asked by Simon Kerle:

Errors are showing up on all pages in our Bamboo. This is preventing us from deploying new builds to production. Spinners are appearing on most pages, some pages have the word "undefined" spread throughout. Is this known and is there a fix coming?

Screen Shot 2015-06-30 at 10.31.06 am.png

This is from the browser console:

```
batch.js?locale=en-US:193 JQMIGRATE: Logging is active
batch.js?locale=en-US:2665 Uncaught TypeError: define is not a function(anonymous function) @ batch.js?locale=en-US:2665(anonymous function) @ batch.js?locale=en-US:2665
viewAllDeploymentProjects.action:98 Uncaught TypeError: require is not a function(anonymous function) @ viewAllDeploymentProjects.action:98
viewAllDeploymentProjects.action:117 Uncaught TypeError: require is not a function(anonymous function) @ viewAllDeploymentProjects.action:117
batch.js?locale=en-US:211 Failed to run init function: TypeError: Cannot read property 'AdminShortcuts' of undefined
function (){NavLinks.AdminShortcuts.render()}
```

[](https://community.atlassian.com/t5/Bamboo-questions/All-Bamboo-pages-failing-with-javascript-errors/qaq-p/56009?attachment-id=4187){#link_11687a3852de30}  
[](/tnckb94959/attachments/tnckb94959/bamboo-questions/1760/1/Screen%20Shot%202015-06-30%20at%2010.31.06%20am.png){#display_11687a3852de30_0}


Answers:
author: Mauro Badii
body: Hello Simon,

This problem is at the moment affecting some Bamboo Cloud instances due to a problem with the upgrade.

We are keeping track of the incident at <https://jira.atlassian.com/browse/BAM-16081> . Some of the instances have already been fixed and we are working on releasing the fix to the remaining instances in the next few hours.

Apologies for the inconvenience.

Kind regards,  
Mauro


author: Simon Kerle
body: Could you provide an ETA? This is delaying a production deploy.


author: Simon Kerle
body: Thanks Mauro \& ++Przemek++

comments: author: Mauro Badii
body: No worries Simon :)


author: Przemek Bruski
body: Yes, the problem is known and the fix is coming.


Tags: cloud
How to include Bamboo build log as artifact
Asked by Paul kamis:

I'm trying to share some information output to stdout (and then recorded in the build log) by one of my tasks for use in a deployment. I feel like artifact sharing would be ideal for this, but I'm having difficulty finding the directory or pattern necessary to grab the build log. From some cursory research it looks like it should be in "build_logs" directory and a pattern "\*.log" should grab it, but no luck. Any thoughts? Has anyone had success including the build log as an artifact?


Answers:
author: Alex Soto
body: Hi There,

This is definitely possible, but it will require a little work on your part.

Pipe the output of your script(s) to 'tee' so you also can write a copy of the output to some file and then add that file as an artifact.

Note you may need to combine stderr and stdin using '\|\&' or write them to separate files depending on your needs.

Good luck

comments: author: Przemek Bruski
body: That requires you to convert every single task you have to a script task.


author: Paul kamis
body: Luckily I only have a few tasks, beyond checking out the repository, and the one I need information from is already an inline script. I was able to quickly test this by simplifying my script to just a quick echo. """ echo 'TEST OUTPUT' \| tee log.log """ and was able to get this saved as artifact. Thanks @Alex Soto !


author: Przemek Bruski
body: It's not possible to grab the build log as an artifact.

comments: author: Paul kamis
body: Well, that is legitimately disappointing. Thanks for the answer, though!


author: Alex Soto
body: It definitely possible, see answer below. Just not as a direct point and click 'feature'


author: HarryH
body: Did you try \*/.log?


Tags: cloud
Getting "Remote SCP command had error: scp: /home/*******/public_html/dev.**********.com/**********/runtime: set times: Operation not permitted" What is this?
Asked by Alan Snow:

Im getting this error when I try to deploy to the server. Everything in my build process works great until the deployment step which I am using SCP in order to copy the artifacts over to the server. Any light someone can shed on this would be great! I have googled it many times with no luck thus far.


Answers:
author: Adrian Muresan
body: Did you ever find a solution for this ?


author: rsperafico
body: Hello Alan,

Thank you for your question.

Could you please go to the Build Working Directory and attempt on running the SCP command manually? Please, let us know if you are able to copy those files successfully.

If you open the build log generated from the build you have run. Its second line will display the *Build Working Directory*.

bamboo.buildLog.png

```
simple	12-Jun-2015 11:15:19	Build PROJECT - PLAN - Default Job #1 ([PROJECT_KEY]-[PLAN_KEY]-JOB1-1) started building on agent Default Agentsimple	12-Jun-2015 11:15:19	Build working directory is /&lt;bamboo-home&gt;/xml-data/build-dir/[PROJECT_KEY]-[PLAN_KEY]-JOB1
```

---

Kind regards,  
Rafael P. Sperafico  
Atlassian Support  
[](https://community.atlassian.com/t5/Bamboo-questions/Getting-quot-Remote-SCP-command-had-error-scp-home-public-html/qaq-p/137881?attachment-id=5549){#link_11687aa566c613}  
[](/tnckb94959/attachments/tnckb94959/bamboo-questions/4471/1/bamboo.buildLog.png){#display_11687aa566c613_0}
Bamboo: Need to remove jobs to install license, but can't remove jobs without a license
Asked by pfriday:

It tells me I have 107 jobs configured and that I need remove 97. These jobs are probably old branches that are now closed or branches that we don't need for CI. There doesn't seem to be a way to login to bamboo to remove jobs. How should I proceed?

Are there licenses for more than 10 jobs? Couldn't find it on the price list - seem to just talk about numbers of remote agents


Answers:
author: rsperafico
body: Hello Paul,

Thank you for your question.

You would have two options:

1. create an Evaluation license by accessing <https://my.atlassian.com> and update the license Bamboo is currently using, so you will be able to remove the extra jobs
2. visit [https://www.atlassian.com/software/bamboo/pricing/](https://www.atlassian.com/software/bamboo/pricing/?tab=download) and review the information available in the right green table. *Please, notice the header information.*

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

<br />

<br />
Bamboo Artifacts Missing - Failure to Deserialise
Asked by Peter Kahn:

Since upgrading to from bamboo 4.4.2 to 5.8.1 builds sometimes fail to transfer artifacts from remote agent to bamboo server. One out of 20 builds or so seems to exhibit the problem and I see the errors in server/agents logs and worked with Atlassian support to change http.socket.timeout and client.timeout with not much impact.

anyone got a clue how to dig deeper and figure out a) what's going on? b) how to fix it?

Server Config Changes:

* wrapper.java.additional.3=-Dbamboo.agent.heartbeatTimeoutSeconds=1800
* wrapper.java.additional.4=-Dbamboo.agent.heartbeatCheckInterval=30
* wrapper.java.additional.5=-Dbamboo.agent.http.client.timeout=600 **DO NOTHING CHANGE**
* wrapper.java.additional.6=-Dbamboo.agent.http.client.retries=20 **DO NOTHING CHANGE**

Agent Config Changes:

* wrapper.java.additional.7=-Dbamboo.agent.http.client.timeout=600
* wrapper.java.additional.8=-Dbamboo.agent.http.client.retries=20

**Server**

```
2015-05-12 05:40:07,277 ERROR [http-bio-8085-exec-60] [DeliverMessageServlet] Failed to deserialise message sent to /agentServer/message&amp;fingerprint=-612195218561972921 : Artifact [Logs] for FEATURE-PLAT31487-JOB1-23java.net.SocketTimeoutException: Read timed out
```

**Remote Agent**

```
2015-05-12 05:39:40,288 INFO [0-BAM::linengbld36::Agent:pool-3-thread-1] [BuildArtifactPostProcessor] Copying the build artifacts for build: FEATURE-PLAT31487-JOB1-232015-05-12 05:39:47,091 INFO [0-BAM::linengbld36::Agent:pool-3-thread-1] [AbstractArtifactManager] Publishing [Logs] for FEATURE-PLAT31487-JOB1-23: 1343 file(s) matching [**/target/logs/**] in directory /opt/builds/build-dir/FEATURE-PLAT31487-JOB1/.2015-05-12 05:39:47,316 INFO [0-BAM::linengbld36::Agent:pool-3-thread-1] [AbstractArtifactManager] Trying to publish the artifact with handler: com.atlassian.bamboo.build.artifact.BambooRemoteArtifactHandler2015-05-12 05:41:16,382 ERROR [0-BAM::linengbld36::Agent:pool-3-thread-1] [HttpMessageSender] Failed to send message.java.io.IOException: Unexpected HTTP status code: HTTP/1.1 500 Internal Server Error  at com.atlassian.bamboo.v2.build.agent.remote.sender.HttpMessageSender.send(HttpMessageSender.java:129)
```


Answers:
author: Rachelle Gray
body: Thanks for getting back to me, Peter. I appreciate the recommendation.


author: Peter Kahn
body: I suggest you migrate to jenkins. We spent 4 months working with atlassian getting nowhere. They can't support bamboo. Switching to jenkins with the jenkins job builder helped us migrate in about a month. Jenkins has a community of 100k installations and any problem or question we had had an easily found answer.


author: Rachelle Gray
body: Hi @Peter Kahn, my team just encountered this issue with a build archive yesterday. Have you found a solution? Did you just keep building?

Thanks!
How to get Bamboo agent to Bamboo server/broker communication happen over https only
Asked by Video Guy:

I am wondering how to setup a Bamboo server (version 5.9.0) that allows broker communication (i.e. JMS payload) over https.

We have Bamboo server located at one of our company locations. Lets call this locationA. We like to run Bamboo agent from a different location. Lets call this locationB. The only ports allowed from locationB to locationA are http and https. The default broker port 54663 is not open at firewall. I am looking for ways to make this work. One idea is to tunnel agent to broker communication happen over https.

I see that Bamboo uses ActiveMQ framework for JMS. ActiveMQ seem to support tcp, ssl as well as https (among others). I don't see any examples how to configure a Bamboo broker to use https transport.

I appreciate any pointers.

Thanks


Answers:
author: Dana Cleveland
body: My guess would be you would modify your bamboo master to use https in your BAMBOO_HOME/bamboo.cfg.xml file..

\<property name="bamboo.jms.broker.client.uri"\>failover:([tcp://server.domain.com:54663?wireFormat.maxInactivityDurat](tcp://build.principal.com:54663?wireFormat.maxInactivityDurat)  
ion=300000)?initialReconnectDelay=15000\&amp;maxReconnectAttempts=10\</property\>  
\<property name="bamboo.jms.broker.uri"\>tcp://0.0.0.0:54663?wireFormat.maxInactivityDuration=300000\</property\>

For the agent, based on the bamboo.cfg.xml, i would assume you might be able to pass 'bamboo.jms.broker.client.url' as another java.additional in the wrapper.conf

or you might be able to set it in the AGENT_HOME/bamboo-agent.cfg.xml, but i can't really find any documentation on it..

comments: author: Video Guy
body: DanaThe example you provided is the default configuration. It is for tcp port. What I am interested is a HOW-TO article how you can setup Bamboo server where you let agents communicate to it over 54663 (i.e. tcp port) as well as https for jms payload.


Tags: bamboo-administration
Custom emails received sometimes
Asked by Maryam Sanatkaran:

We have connected our custom email to Jira Service Management, sometimes the emails sent are automatically turned into a task and sometimes they are not. This is a Microsoft email account. The email is linked to Freshdesk as well and the task are created correctly there. Any suggestions?


Answers:
author: Brant Schroeder
body: [@Maryam Sanatkaran](/t5/user/viewprofilepage/user-id/5320966) if an email is marked as read then it will not be pulled by Jira. My guess is that fresh desk is pulling the email and marking as read. Then when Jira goes to get emails it ignores it because it is read.

comments: author: Brant Schroeder
body: [@Maryam Sanatkaran](/t5/user/viewprofilepage/user-id/5320966) can you accept the answer to help others?


Tags: cloud

jira-service-management

jira-service-management-cloud