youngmon/atlassian-qna huggingface dataset:
Can't find bamboo's jetty.xml
Asked by Jothi:

Hi,

when I'm trying to change binding address for bamboo in Bamboo's Jetty I have to edit webapp/WEB-INF/classes/jetty.xml , I didn't find any file like that in my directory.

\[root@localhost atlassian-bamboo-6.2.3\]# cd webapps/  
\[root@localhost webapps\]# ls  
\[root@localhost webapps\]# ll  
total 0

Can anyone please help me on this?


Answers:
author: Ellie Z _they_them_
body: Hi Jothi,

Thanks for reaching out to the Atlassian Community!

Bamboo 6.2.3 uses Apache Tomcat instead of Jetty as a webserver, so the address can be updated in the server.xml file. This can be found in

```
atlassian-bamboo-6.2.3/conf/server.xml
```

Although you might not be using a proxy, we have some examples of how to configure the Tomcat webserver on this documentation:

[Proxying Atlassian server applications with Apache HTTP Server (mod_proxy_http)](https://confluence.atlassian.com/kb/proxying-atlassian-server-applications-with-apache-http-server-mod_proxy_http-806032611.html)

Please let us know if you have any other questions or concerns.

Thanks,

Elias \| Bamboo Support

comments: author: Jothi
body: Thank you,its working


author: Ellie Z _they_them_
body: Hey Jothi,

Thanks for your reply. I'm glad to see that Bamboo is working now.

If it was the answer above that helped you resolve the issue, could you please mark it as "Accepted" by clicking the check mark symbol? This would help other users who may be encountering similar issues find this answer.

Thank you so much!

Elias \| Bamboo Support
How to make Bamboo to launch command prompts in foreground
Asked by umai:

My PowerShell script/ Batch script given as a Bamboo task in my plan is always launched in background in the Agent machine.

Is there any setting in Bamboo , to mark my scripts to be always launched in foreground?


Answers:
author: robhit
body: Hi Umai,

There is this parameter "wrapper.ntservice.interactive" in \<agent-home-directory\>/conf/wrapper.conf" file which can be set to true to make things interactive.

But, could you share the requirement in detail here as what exactly this script task is supposed to do here?

Thanks,

comments: author: umai
body: Hi Robhit,

Thanks for the reply . I'm yet to try out the solution you have suggested.

My requirement in detail is ,in CI/CD environment I'm trying to run my testcases triggered from Bamboo. For this, I have to launch my selenium grid in a command prompt, then launch Appium server in a separate command prompt. After that will launch my test code via maven commandline. I will have to see the status of all these three components when my code is running.

Currently, since Bamboo launches all the three processes in bckground, I'm not able to see the status of my tests, whether it has initialized correctly or if not, then what error has been thrown by Appium server or Selenium Grid etc..

Hope the solution above will help solving this problem.

Thanks,

Umai


author: robhit
body: Hi Umai,

How are the agents running? are they running using the system account and you are logged-in as a different account? can this be a reason behind things running in the background and you can't see them?


author: umai
body: Agent is running as a Service in "Local System account."

I have logged in as a different administrator user. Not sure if that is the reason. How to make Bamboo run in currently logged in user? I have installed Bamboo agent from the currently logged in user only, using the following command

    java -jar atlassian-bamboo-agent-installer-5.15.5-SNAPSHOT.jar http://bamboo-host-serve/agentServer?

For now, I have enabled 'Allow service to interact with desktop ' option in the Services-\>Logon tab. So I'm able to see my tasks in a separate window. This could be a temporary solution.

And making wrapper.ntservice.interactive option to true, doesn't work.

Thanks.
Split Junit test reports in Bamboo to 3 different categories
Asked by Darko Cvetkovic:

In my Project, we have Unit, Component and API tests. When we run in on Bamboo, we have report like this:

    66 tests in total 4 seconds taken in total.

Is there some way to have a report for 3 different categories like this:

    66 tests in total 4 seconds taken in total.40 unit in total 1 second24 component test in total 2 seconds2 API tests in total 1 second 

I have tried Junit Parser but no luck.


Answers:
author: Gonchik Tsymzhitov
body: Hi Darko,

Could you provide a version for your Bamboo?

In fact, we are using on 6.2.1, everything is ok.

Cheers,

Gonchik Tsymzhitov

comments: author: Darko Cvetkovic
body: Hello Gonchik,  

We are using version 6.2.1 build 60208


author: Gonchik Tsymzhitov
body: Hello Darko,

Could you use 3 different directory for test results?

<https://confluence.atlassian.com/bamboo/junit-parser-289277056.html>

Then parse after you task.


author: Darko Cvetkovic
body: ![1.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/10654i10007CF3AF084820/image-size/large?v=v2&px=999 "1.PNG")![Screenshot-2017-12-8 Playground - Giftcard-result - Build Job Edit job configuration - Paysafe Bamboo(1).png](https://community.atlassian.com/t5/image/serverpage/image-id/10657iB5C530D3F1930E9C/image-size/large?v=v2&px=999 "Screenshot-2017-12-8 Playground - Giftcard-result - Build Job Edit job configuration - Paysafe Bamboo(1).png")![Screenshot-2017-12-8 Playground - Giftcard-result - Build Job Edit job configuration - Paysafe Bamboo(2).png](https://community.atlassian.com/t5/image/serverpage/image-id/10655iBC4D4059C2F03B22/image-size/large?v=v2&px=999 "Screenshot-2017-12-8 Playground - Giftcard-result - Build Job Edit job configuration - Paysafe Bamboo(2).png")![Screenshot-2017-12-8 Playground - Giftcard-result - Build Job Edit job configuration - Paysafe Bamboo.png](https://community.atlassian.com/t5/image/serverpage/image-id/10656i082472FC6F3D2D9D/image-size/large?v=v2&px=999 "Screenshot-2017-12-8 Playground - Giftcard-result - Build Job Edit job configuration - Paysafe Bamboo.png")IAs you can see, I have tried all combinations, results will be always as a bundle, not separate reports.


Tags: junit

test
Is it possible to run the another stage/job on specific plan branch?
Asked by Adrian_Quiambao:

Hi,

This is on my mind right now, We have 2 Stage\&Job on the build plan the 1st stage will run on the plan branches and the 2nd stage will run only on a specific branch like (develop). Is that possible? Because if you try to create a stage there are no settings that will run in a specific branch. Our bamboo version is v6.2.2

Your insights will be much appreciated.

Kind regards,

Adrian

![Screen Shot 2017-11-29 at 9.10.02 AM.png](/t5/image/serverpage/image-id/10132i54BEE93DB7272F8A/image-size/large?v=v2&px=999 "Screen Shot 2017-11-29 at 9.10.02 AM.png")


Answers:
author: robhit
body: Hi Adrian,

I can think of a workaround to make the stage as a "manual" stage so this way you can run the stages wherever and whenever you want to run. But, the limitation is that you will have to do it manually.

Thanks.

comments: author: Adrian_Quiambao
body: Hi Robhit,

Breaks my heart to hear that. Thank you for the response. I'll consider this as an answer since this is already applied on our stages.

Appreciate it.

Kind regards,

Adrian


author: Jaya kumar
body: Hi [@robhit](/t5/user/viewprofilepage/user-id/1132242) , Running stages selectively (not sequentially) enabled in the what Bamboo release/version please?
Deployment Project and child plan who take precedence
Asked by Abhineet Tikoo:

My requirement is if i have the "Parent Build Plan" in which i have created the "Deployment Project" and "Child Build Plan" in "Dependency" tab.

I want once my "Parent Build Plan" is successful, it should execute "Deployment Project" and than "Child Build Plan".

1. **"Parent Build Plan"** - there are test scripts, which needs to be execute in DEV environment. Once Success - it should execute below steps sequentially.

2. **"Deployment Project"** - it does the deployment to TEST environment.

3. **"Child Build Plan"** - there are test scripts( functional / Non-functional test scripts), which needs to be execute in TEST environment. If it Success.  

Thanks


Answers:
author: robhit
body: Hi Abhineet,

[Plan dependencies](https://confluence.atlassian.com/bamboo0515/setting-up-plan-build-dependencies-894237491.html) don't work in that way but I am thinking of a workaround to use script task in a deployment plan to trigger the child plan using [Bamboo REST API](https://docs.atlassian.com/bamboo/REST/5.5.0/).

Thanks!
I there a way to set an execution order for Build Plans?
Asked by Andrea Colarieti:

Hi there,   

to explain my "problem" further:  
I have different builds of the same software for different Clients (depending from the same Repo).  
We usally let all branches be built so that they can be singularly tested before integration.  

At the moment my plan names follow a simple schema ( AppName_Client1, AppName_Client2, AppName_Client3).   
The moment i push some changes all build plans get triggered  
and the server seems to have an alphabetically sorted queue, meaning the client I'd like to see the buildresults for is always at the end the queue.  

I'd like to know if there already is some possibilty to change the working order or alternatively, could you link me to a feature request site?  
Any kind help will be appreciated.

Thank you in advance,  
Andrea Colarieti Tosti


Answers:
author: robhit
body: Hi Andrea,

Plans do not have the working order but there is a feature which allows us to create [plan dependencies](https://confluence.atlassian.com/bamboo/setting-up-plan-build-dependencies-289276887.html) (parent plan - child plan relation) using which we could create some order.

Thanks!
Can I set the permission to: Can create a deployment project but cannot create a project?
Asked by sqg-suter:

Is it possible to different between create a deployment project and create a project? Deployment Projects are based on plans which are based on projects. I don't want to give our users the right to create multiple projects. But they need the permission to create new deployment projects.

How can I handle this?


Answers:
author: robhit
body: Hi Andreas,

With Bamboo 6.2 new [Project Permissions feature](https://confluence.atlassian.com/bamboo/bamboo-permissions-369296034.html) was released which allows defining permissions based on the projects which you have. Under this, we have an option to inherit the plan permissions. But, providing permissions here will not allow the user to get the same permissions on the deployment level.

So you can assign a group or user to a project level permissions so that he can create build plans in it. And manage the deployment level (project+environment) permission separately.

Note: Global permissions still take precedence.

Thanks!


Tags: permission
Overwrite global variable in deployment
Asked by m:

Hi

Is it possible to overwrite global variables for a build in deployment?

Let's say I have a global variable FOOBAR = 1 while build no 1 was done

If I add a variable FOOBAR = 2 in a deployment environment for that project and refer to it in deployment script:

```
echo ${bamboo_FOOBAR}
```

Will it be 1 or 2?


Answers:
author: Steffen Opel _Utoolity_
body: The answer is 2, i.e. it is indeed possible to override global [Bamboo variables](https://confluence.atlassian.com/bamboo/bamboo-variables-289277087.html) with plan variables for builds and deployments:

> **Plan variables** are similar to global variables, but are defined for specific plans. ***Plan variables override global variables with the same name*** . You can also override a plan variable for a build if you trigger the build manually. See [Defining plan variables](https://confluence.atlassian.com/bamboo/defining-plan-variables-289276859.html).

While not explicated with a similar precise phrase, the same override mechanism also works for [deployment variables](https://confluence.atlassian.com/bamboo/variables-for-deployment-environments-342754180.html):
> Variables later in the following list override the previous ones in case of repeating names:
>
> * global variables
> * release variables as defined below
> * user variables defined at environment level
> * the autogenerated variables in the following table:
>
> \[...\]

comments: author: Andrecarlossilva
body: Hi [@Steffen Opel _Utoolity_](/t5/user/viewprofilepage/user-id/781567) , I am trying to override the global variable planRepository.revision using the strategy that you said above, but the value is not overriding when my plan is started by an API call. I tried to pass the variable in this call, but it is not working.

Have you already done this kind of override?

Thanks in Advance.
Stop error notifications in bamboo
Asked by kiran jonnalagadda:

Every night I am running bitbucket DIY backup this is automated using cron job. This will bring down bitbucket at the time of backup making it unavailable, but bamboo tries to connect bitbucket for checking repository changes and causes the problem, all plans try to connect and throw errors in bamboo. Is there a way or workaround to stop this occurrence in bamboo from checking repo at certain time frame.


Answers:
author: Steffen Opel _Utoolity_
body: Unfortunately there is no official way to do achieve this, and it's a fairly highly voted improvement accordingly (one might actually consider it to be a bug, given it erroneously reports build errors) - please watch and vote for the following issue to further raise Atlassian's awareness of this major annoyance:

* [Prevent Bamboo source code checkout if Stash is in maintenance mode (BAM-15792)](https://jira.atlassian.com/browse/BAM-15792)

In terms of workaround, Anders Kj?rgaard Hansen's [comment](https://jira.atlassian.com/browse/BAM-15792?focusedCommentId=990764&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-990764) provides an approach, though he qualifies it as an 'ugly hack' himself ;)

comments: author: kiran jonnalagadda
body: Thank's Steffen
How to turn log errors into build fails?
Asked by henry murphy:

Hi,

We have an issue where occasionally we are seeing errors in our build logs but the build does not fail.

I would like to get a trigger that when specific errors appear in the logs we we set the build to fail and thus our developers are prompted to investigate.

I was trying to use if statements in our batch files but can't come up with the right statement.

An example condition is if make-ERROR is present in the log then set the build to fail.


Answers:
author: Steffen Opel _Utoolity_
body: Guess that's obvious, but I'd strongly recommend to identify why the build is not failing in your scenario, usually the build tool in question just requires an additional flag to return an error code to Bamboo (for example, you can return a non zero exit code from script tasks to let the build fail).

That being said, there are certainly scenarios where it might not possible or at least inconvenient to fix the build in this regard, here are two possible solutions:

1. Provided you can redirect the build tool output to a file, you might be able to leverage Iulius Hutuleac's [Generic Test Results Parser for Bamboo](https://marketplace.atlassian.com/plugins/com.valens.bamboo-logparser-plugin/overview), which offers *Simple file parsing and test case handling for generic test result formats*:
> Just select the files, create a regular expression matching lines that should be treated as failed test cases and lines that should be treated as passed test cases.

2. Solution 1 is based on the Bamboo [Test Collection and Reporting](https://developer.atlassian.com/bamboodev/bamboo-tasks-api/test-collection-and-reporting) SPI, which allows you to *"write your own Tasks that parse files or logs that contain test results and have the results display in Bamboo"*:
> `TestCollationService` supports parsing custom test formats defined by either a custom `TestReportCollector` (file based) or `TestReportProvider`(non-file based) implementation.

As outlined, the `TestCollationService` supports files and log parsing, but solution 1 only supports the former right now. However, the app is available as [open source on Bitbucket](https://bitbucket.org/iuliushutuleac/bamboo-logparser-plugin/overview), so you can grab it for inspiration and create a dedicated app four your scenario (mind the GPL license though), or better yet submit a pull request that adds log parsing so that the community can benefit from this notable improvement :)
Need to integrate selenium test case results with sonarqube through bamboo ?
Asked by Rajkumar A:

Hi Team,

I need to integrate Selenium Test case Results into Sonarqube through Bamboo jobs. Can you give me any Plugins available or links or suggestions ?

But my projects in ordinary Java project not in Maven project.. ?


Answers:
author: Michael R?egg _Mibex Software_
body: Hi,

To run a Sonar analysis to collect test coverage of your Selenium tests you could use our free of charge Bamboo app [Sonar for Bamboo](https://marketplace.atlassian.com/plugins/ch.mibex.bamboo.sonar4bamboo/server/overview).

Please let us know if you have any questions.

Best regards,  
Michael


Tags: selenium
Bamboo on cloud
Asked by Abhineet Tikoo:

Does bamboo have cloud version ?


Answers:
author: Steffen Opel _Utoolity_
body: There used to be a Bamboo Cloud version, but unfortunately Atlassian has decided to discontinue it as of January 31, 2017- the former [Bamboo Cloud EOL](https://confluence.atlassian.com/pages/viewpage.action?pageId=827125716&_ga=2.128747721.456301032.1511703522-951020681.1502237296) announcement is nowhere to be found anymore, but you can find some details in the [Bamboo Cloud end of life?](https://community.atlassian.com/t5/Questions/Bamboo-Cloud-end-of-life/qaq-p/450934) thread.

The TL;DR is that Atlassian meanwhile recommends [Bitbucket Pipelines](https://bitbucket.org/product/features/pipelines) as a more lightweight alternative for Cloud users, the feature gap between the two offerings notwithstanding (to be fair, Pipelines has evolved nicely since and some of the gaps discussed in that thread are meanwhile addressed).

comments: author: Abhineet Tikoo
body: Is there any nice documentation on BitBucket Pipelines ?


author: Steffen Opel _Utoolity_
body: [@Abhineet Tikoo](/t5/user/viewprofilepage/user-id/1166483) - You can find a quick start and 'Everything you need to know about Bitbucket Pipelines in action' within the [Build, test, and deploy with Pipelines](https://confluence.atlassian.com/bitbucket/build-test-and-deploy-with-pipelines-792496469.html) documentation, including build and test guides for various languages, and deployment guides for various cloud providers and Docker images.
Connecting 2 bamboo instances
Asked by Oran Halberthal:

I have a bamboo instance running on Ubuntu that builds linux microservices.

I'd like to add support for DB CI to my pipeline using reg-gate products which only run on Windows servers.

The options I can think of are:

1. Create a remote build agent on a windows server that will handle the build/deployment tasks

2. Install a full instance of bamboo on a windows server

I'm not sure if any of the above are possible or if there are any other options.

Any advice would be highly appreciated

Thanks


Answers:
author: Steffen Opel _Utoolity_
body: While 2 is possible (Bamboo supports Windows just fine), I would highly recommend against running two Bamboo servers just for this reason, because it will unnecessarily increase your infrastructure cost and operational complexity.

Option 1 is therefore the recommended and widely used approach: Provided your license supports [remote agents](https://confluence.atlassian.com/bamboo/bamboo-remote-agent-installation-guide-289276832.html), it is perfectly fine and one of Bamboo's main value propositions to run an arbitrary variety of agents depending on your specific build environment requirements.
Need access to a project in Bamboo (I think)
Asked by Gerry Kirk:

Hi, I'm new to Bamboo. Is it possible to not see a project in Bamboo? I'm in the bamboo-admin group. From everything I've read I should be able to see all projects, just double-checking. Thanks.


Answers:
author: robhit
body: Hi Gerry,

If you are in a bamboo-admin group and if the group has the appropriate permissions then you should be able to see the projects.

But your question sounds fishy to me. What is the problem which you are facing?

Thanks

comments: author: Gerry Kirk
body: I got it resolved. Turns out that code is getting deployed via a post-commit hook in Bitbucket, and the project in question isn't using Bamboo.


Tags: bitbucket
Virus Scanning of Ticket Attachments
Asked by MJCorcoran:

When users include attachments to their tickets, does any scanning for viruses occur on the Jira side? We use client-side scanning, but I wondered if Jira provided any kind of built-in scanning.


Answers:
author: Asmath Basha S
body: Hi [@MJCorcoran](/t5/user/viewprofilepage/user-id/4661432) ,

In Jira there is no built-in scanning system. You can try plugins in Atlassian marketplace to find the best scanning plugin.

comments: author: SHANAVASH MOHAMED
body: [@Asmath Basha S](/t5/user/viewprofilepage/user-id/5035082) but it's not the right solution.


author: Asmath Basha S
body: [@SHANAVASH MOHAMED](/t5/user/viewprofilepage/user-id/416088) In Jira we don't find any scanning system designed in-built. By using plugins in Jira we can achieve this.


Tags: cloud

jira-service-management

jira-service-management-cloud
Bamboo git submodule support confirmation
Asked by sspeers:

I have had some failed attempts to utilise git submodules in my git project. The repository is classified as a BitBucket one with submodules checked in advanced. The logs in the build however read as "host key verification failed". I have tried configuring ssh keys on the Windows remote agent (running as a service) and can correctly execute git submodule update on the server directly using git bash logged in as that user.  
Then I came across this older post <https://community.atlassian.com/t5/Answers-Developer-Questions/Does-Bamboo-support-Git-submodules/qaq-p/560044> which suggests that the support is limited in bamboo for submodules.  

Currently we are adopting the multiple repository checkout approach as a work around but some of my colleagues prefer to use submodules. Can Atlassian confirm whether Bamboo support for git submodules has improved and if so in what version?  

Alternatively it seems to me that the Bamboo agent is not correctly mapping its ssh keys at build time during a repository checkout. Is there something I'm missing?


Answers:
author: sspeers
body: I've fixed this up by correctly setting up the HOME directory in the agent boxes. It would be nice to know if Atlassian every plan on adding more support for submodules in the future.

comments: author: Mark Burvill
body: I'm getting the same issue. Can you clarify what you mean by setting up the home directory in the agent boxes?


author: Jerome Durand
body: I'm just leaving a note here if someone comes up with a similar problem as I spent a lot of time figuring it out.

I had a similar issue when running the remote as a service but with a different fix:

When the Service ("Bamboo Remote Agent") is created, it is created as the "Local System" user, instead you need to change it to your PC account user (the one that Git is linked to).

To do this just go to Windows Task Manager in the Services tab and on the "Services..." button in the bottom.

Right click on the "Bamboo Remote Agent" service and select Properties then in the "Log On" tab Log on as: this account...


Tags: developer