youngmon/atlassian-qna huggingface dataset:
Repository-stored Bamboo Specs and POM.XML
Asked by vpogrebi:

6.2 release of Bamboo brought possibility of storing build plan configuration (Bamboo Specs) in Bitbucket repository (<https://confluence.atlassian.com/bamboo/bamboo-6-2-release-notes-938641951.html>). Bamboo documentation describing enabling this feature (<https://confluence.atlassian.com/bamboo/enabling-repository-stored-bamboo-specs-938641941.html>) provides step-by-step instructions on how this can be done, but mentions **nothing** about any additional dependencies or requirements to make it actually work.

When our team tested this functionality (by downloading Bamboo specs from existing plans, storing them in Bitbucket repo, and then creating a test project that uses that Linked Repository) - demonstrates that when repo contains nothing but the plans themselves (\*.java specs) updates to the repo result in **NO PROCESSING** (Bamboo logs generated in response to repo updates - are **entirely blank** , containing **nothing**).

Our subsequent tests demonstrated that **pom.xml** is required to start the build process...

So questions are:

* **IS POM.XML - AN ABSOLUTE REQUIREMENT FOR BUILDING BAMBOO PLANS FROM SPECS?**

... or

* **is POM.XML required only for LOCAL MAVEN RUNS, and something else needs to be done to enable REPOSITORY-STORED Bamboo spec builds without pom.xml?**


Answers:
author: Chris Berry
body: Hello Valeriy,

Repository-stored Bamboo specs will look for bamboo.yml if the repository root or the bamboo-specs directory. If found it will use the YAML specs definition.

If no YAML definition is found it will look for a maven project under the bamboo-specs directory and use Maven to build the Java specs definition. Maven requires a pom.xml.

[Tutorial: Bamboo Java Specs stored in Bitbucket Server](https://confluence.atlassian.com/bamboo/tutorial-bamboo-java-specs-stored-in-bitbucket-server-938641946.html)

thanks

Chris

Atlassian support- Bamboo
Problem on linux install
Asked by MitjaStovanje:

When I try to set username and password for administrator installation crash.

* Request URL: <http://192.168.1.17:8085/setup/performSetupAdminUser.action>
* Scheme: http
* Server: 192.168.1.17
* Port: 8085
* URI: /setup/performSetupAdminUser.action
* Context path:
* Servlet path: /setup/performSetupAdminUser.action
* Path info:
* Query string:


Answers:
author: Foong
body: Is there any other error in the crash?

Are you accessing multiple Atlassian application during the installation?

Try using browser Incognito Mode to access Bamboo only during the installation.
Projects built on branches when not change-detection-configured code changes
Asked by Ronak Bhatia:

We have a repo of many projects. To get around the issue of building all of our bamboo projects on each commit, under Plan Configuration \> Repositories we configured our repository's *Change detection options* to *Include only changes that matches the following pattern* to the regex *\^mycompany\\.myproject\\/\**

This should now only build projects when code changes are applied to *mycompany.myproject/* directory which seems to work for our master branch.

Under Plan Configuration \> Branches, we set *Automatic branch management* to *New Branches: Create plan branches for all new branches*. This was so our feature branches would cause a build when the change was detected.

This should only be the case when that pattern is met but we noticed that every time we push a feature branch of code that is not in *mycompany.myproject/* our bamboo projects get built. Is this a bug with the 5.x series or is this an issue with our configuration?


Answers:
author: Foong
body: Its a bug <https://jira.atlassian.com/browse/BAM-15899>


Tags: automation

branch

regex
About Bamboo Build Fail Trigger
Asked by JongBum Lee:

Dear All

If the build fails, I use the "After Plan Fail" Trigger in the Plan Configuration / Trigger tab for post-failure processing.

Is there a way to pass the parameter value (build round, normal TEXT) to this "After Plan Fail" plan?

Otherwise, I want to how to handle after the build failure without using "After Plan Fail Trigger".

Please help me.

Best Regards.


Answers:
author: Foong
body: Instead of using "After Plan Fail Trigger", use the add-on [Pre-Post Build Command Runner](https://marketplace.atlassian.com/apps/5581/pre-post-build-command-runner?hosting=server&tab=installation)

1. Shutdown Bamboo
2. Add the add-on jar into **\<bamboo_install\>/atlassian-bamboo/WEB-INF/lib**
3. Restart Bamboo
4. Add Script task in the Source Plan to create a file variable.txt with the following example content

   ```
   variablename1=value1
   variablename2=value2
   ```

5. Add an Inject Bamboo variables in the Source Plan with property file "variable.txt", "inject" namespace and "Result" option
6. Move the Inject Bamboo variables to the Final task area at the bottom
7. Create Variable "testing1" and "testing2" in the Target plan
8. Add the following into "Failed Command" at Source Plan Job Miscellaneous \> Post Build Commands to POST a REST call to the Target plan

   ```
   curl -X POST -u username:${bamboo.password.variable} "http://localhost:8085/rest/api/latest/queue/BAM-TEST?bamboo.variable.testing1=${bamboo.inject.variablename1}&bamboo.variable.testing2=${bamboo.inject.variablename2}"
   ```


Tags: bamboo-administration

bamboo-development
How to execute Java Selenium Scripts from other server
Asked by don xu:

How to execute Java Selenium Scripts from other server

I have bamboo CI/CD pipeline setup and want to execute java Selenium test that is located in another window server. My question is how to execute Selenium Scripts that run on other server and result back to bamboo pipeline.

Thanks


Answers:
author: Gonchik Tsymzhitov
body: Hi!

You can cover by bamboo remote agent

<https://confluence.atlassian.com/bamboo/remote-agent-289277433.html>

Cheers,

Gonchik Tsymzhitov


Tags: junit

selenium
Bamboo 6.6.2 in the official docker container dies together with local agent
Asked by earthquakesan:

Hello!

We are running bamboo in docker in our company with couple of local agents (also in docker). When local agent dies (for example missing dependency or simply when killed), the whole bamboo server goes into restart (running with --restart=always).

When bamboo is terminated all the currently running builds turn grey (i.e. bamboo is losing connection to them).

We are using extended version of official bamboo image with version 6.6.2. Is it known bug?


Answers:
author: Foong
body: Local agent is part of Bamboo internal process. It should not be able to die.

Do you mean that there is a script to kill local agent? If not, how does it die?

comments: author: eccenca Buyer
body: Hi [@Foong](/t5/user/viewprofilepage/user-id/502088)!

First of all, I was running bamboo in docker container using docker image provided on your docker hub account. This is an important detail. I had to give up the installation using your image, because of this bug and no comments on the issue. My assumption that nobody is actually using your docker image (correct me if I am wrong).

Bamboo was running 3 local agents. And the problem occured when local agent had to execute a bash script with strict mode (<http://redsymbol.net/articles/unofficial-bash-strict-mode/>). When something went wrong inside the bash script, the agent execution quits (expected). But additionally what happened is that the whole docker container with bamboo main process died (unexpected).

I could create a test case to reproduce the issue, but I do not see any support for your docker image. Are you using it internally at Atlassian?


author: Foong
body: > My assumption that nobody is actually using your docker image (correct me if I am wrong).

There isn't any stats captured for this but there is 1.5k download shown at <https://hub.docker.com/u/atlassian/?page=2>
> But additionally what happened is that the whole docker container with bamboo main process died (unexpected).

Since the whole docker container died, it looks like the problem is related to the docker too.
> Are you using it internally at Atlassian?

No. Atlassian developers are not using it but Support Engineers are using it for testing.
> I could create a test case to reproduce the issue

Yes, a test case would be great to understand more about the problem.
can bamboo version 5.6.0 deploy on windows server 2016?
Asked by Boikano:

I am trying to deploy using bamboo 5.6.0 on windows server 2016 using the following command: /opt/glassfish-4.1/bin/asadmin --host 192.168.12.102 --port 4856 --passwordfile /opt/glassfish-4.1/glassfish/password41.txt --user admin deploy --name Solar-Ear \*.ear, but nothing is happening on the target server.


Answers:
author: Gonchik Tsymzhitov
body: Hi!

The problem was related to the connectivity.

And have you upgraded to the latest 6.8.0 release?

Cheers,

Gonchik Tsymzhitov
Bamboo won't show dotnet test results
Asked by Ramesh Chode:

Hi

I have build plan running unit tests with the dotnet test command and the results were not showing on the Test tab nor on the plan page. Please help !


Answers:
author: Edwin Kyalangalilwa
body: Hi [@Ramesh Chode](/t5/user/viewprofilepage/user-id/2044465),

Please add some logging for when dotnet test command is executed.
Getting error CreateProcess error=206, The filename or extension is too long when tried to build gra
Asked by Kunal Jha:

When i am trying to build this on windows bamboo agent it keeps on failing with below message.

when i put my code in same directory near to java8 jdk and execute the gradle build from cmd it works fine.

so it looks like the path that we are using in the bamboo is too long to process on windows agent.

**bamboo build failing**

**"C:\\dev\\java8\\jdk\\bin\\java.exe" (in directory "C:\\bamboo3\\xml-data\\build-dir\\TARGET-PROJECT-JOB1")**

**manually working**

**"C:\\dev\\java8\\jdk\\bin\\java.exe" (in directory "C:\\dev\\java8\\my_code_repo\\")**

Error message

<br />

<br />

error 11-Oct-2018 03:28:20 at net.rubygrapefruit.platform.internal.WrapperProcessLauncher.start(WrapperProcessLauncher.java:36)  
error 11-Oct-2018 03:28:20 at org.gradle.process.internal.ExecHandleRunner.run(ExecHandleRunner.java:67)  
error 11-Oct-2018 03:28:20 ... 4 more  
error 11-Oct-2018 03:28:20 **Caused by: java.io.IOException: Cannot run program "C:\\dev\\java8\\jdk\\bin\\java.exe" (in directory "C:\\bamboo3\\xml-data\\build-dir\\TARGET-PROJECT-JOB1"): CreateProcess error=206, The filename or extension is too long**   
error 11-Oct-2018 03:28:20 at net.rubygrapefruit.platform.internal.DefaultProcessLauncher.start(DefaultProcessLauncher.java:25)  
error 11-Oct-2018 03:28:20 ... 7 more  
error 11-Oct-2018 03:28:20 **Caused by: java.io.IOException: CreateProcess error=206, The filename or extension is too long**   
error 11-Oct-2018 03:28:20 ... 8 more  
error 11-Oct-2018 03:28:20   
error 11-Oct-2018 03:28:20   
error 11-Oct-2018 03:28:20 \* Get more help at <https://help.gradle.org>  
error 11-Oct-2018 03:28:20   
build 11-Oct-2018 03:28:20 6 actionable tasks: 6 executed  
**error 11-Oct-2018 03:28:20 BUILD FAILED in 2m 23s**   
build 11-Oct-2018 03:28:21 Stopped 1 worker daemon(s).


Answers:
author: Kunal Jha
body: I was able to correct this problem with below steps: -

Login to the windows bamboo agent.

cd C:\\bamboo3\\bamboo3

open the bamboo-agent.cfg.xml file in editor

change the

\<buildWorkingDirectory\>C:\\bamboo3\\bamboo3\\xml-data\\build-dir\</buildWorkingDirectory\>

to

\<buildWorkingDirectory\>E:\\\</buildWorkingDirectory\>

and restart the agent services from services.

so after this problem of "**CreateProcess error=206, The filename or extension is too long**" got resolved.

Since i tried to check this manually on windows agent and it was failing in for any location apart from C:\\ drive or E:\\ drive . so for safer side i selected the E:\\ drive.


author: Juan Miller
body: hi


author: Tom Murphy
body: You can try using LongPathTool software. It will help you  
resolve your specific problems regarding File name too long.  
Thank you.


Tags: build

path
Installing Bamboo on a windows machine.
Asked by Sohail Haque:

I have been through the installation procedure and now I am at a point where it is asking me to Set up an Administrator! No matter what I do the username field always comes back with an error of

'Invalid username. Username mustn't be blank, have trailing or leading space and must have no more length than 255 characters.'

So leaving aside the grammatical error in the statement, the issue I am having is that no matter if I have spaces or no spaces in the username I always get this error. It is frustrating and annoying that I cannot complete the installation. Has anyone encountered this and what is the solution?


Answers:
author: Edwin Kyalangalilwa
body: Hi [@Sohail Haque](/t5/user/viewprofilepage/user-id/1975426),

What version of Bamboo and Windows are you using?

You can try restarting the Bamboo service and see if that helps.
How can I find out who and when was new deployment project created?
Asked by Darrell Sutherland:

I am writing a script to look for specific data in a sandpit database. The problem ive got is that i want any new deployment project info like who created it and when but this does not seem to be available?

Ideas?


Answers:
author: Foong
body: There isn't such data in the database but there is audit log on deployment environment created.

Try the following SQL:

```
SELECT dp.NAME AS "Deployment Project",
al.USER_NAME AS "Creator Username",
MIN(al.MSG_TIME_STAMP) AS "Unix Timestamp"
FROM AUDIT_LOG al
JOIN DEPLOYMENT_PROJECT dp ON dp.DEPLOYMENT_PROJECT_ID=ENTITY_ID
WHERE ENTITY_TYPE='DeploymentProject'
AND MSG='Environment created'
GROUP BY 1,2
ORDER BY 1,3
```

There might be more than 1 result for each deployment but you can just refer to the earliest or lowest time.

You can use this [site](https://www.epochconverter.com/) to convert the Unix Timestamp.

If you want to check specific Deployment Project only, you can refer to the Audit Log at **Deployment Project \> \<deploymentProjectName\> \> Edit Project \> Audit Log**
Is there any option run the bamboo plan using spec
Asked by Mahesh R:

Hi,

I have created a Bamboo plan using the spec for my project.But to run the plan am logging into Bamboo and running it manually.

Is there any option to run the plan from spec itself.

Thanks,

Mahesh R


Answers:
author: Foong
body: Its not possible to trigger build from Specs.

Try using the following REST call to trigger it:

```
curl -u username:password -X POST BAMBOO_URL/rest/api/latest/queue/{projectKey}-{buildKey}
```


Tags: spec
Is it dangerous to change the user account that the Bamboo Server service runs as?
Asked by Joshua:

We have a Bamboo installation that has been running under the windows Local System account for years, currently building 22 plans.

While defining a new plan for a new product we're building I realized that one of the build steps must be run in the context of a real local user account, not the Local System account. The Bamboo docs state [that this is supported](https://confluence.atlassian.com/bamboo/running-bamboo-as-a-windows-service-as-the-local-user-416580754.html "Running Bamboo as a Windows service as the local user"), but the workflow they describe is more of a first-time setup workflow.

My question is, if I switch the Bamboo Server Service from running under the Local System account to running under a local (administrator) account, in a system that has years of history in it, should I expect to run into problems?

None of our build tasks do anything special like writing to the registry, etc. I'm more concerned about the stability of the build system itself.


Answers:
author: rsperafico
body: Hi [@Joshua](/t5/user/viewprofilepage/user-id/2105881),

Along with the information provided by @Dave Theodore \[Coyote Creek Consulting\] on permissions, please notice:

* environment and system variables may differ between accounts (SYSTEM vs Local User) and this could be an issue when starting up Bamboo and/or running builds;
* in case you build on Local Bamboo Agents, you could also hit max open files limit when changing users accounts

Kind regards,

Rafael


author: Dave Theodore [Coyote Creek Consulting]
body: The user is just a permission thing. If you change the user that the service runs as, you need to adjust the permissions on all files and folders that Bamboo will access to be owned and have read/write access to by that user.
How can i control how frequently a plan is triggered ?
Asked by thomas_ricaud:

Hi all,

I have 352 bamboo plan building small component of an application.

We are currently setting up dependecies inside all of them to rebuild the entire tree each time a component is modified.

The issue we're afraid of is too trigger the main top component too often and to keep building it constantly.

Is there a way to have a tempo to build it only every 30 minutes and not more for exemple ?

Thanks for your input.


Answers:
author: rsperafico
body: Hello [@thomas_ricaud](/t5/user/viewprofilepage/user-id/72216),

You could make use of [Cron-based scheduling](https://confluence.atlassian.com/x/6wM_EQ "Cron-based scheduling") and set a cron to run a plan / branch every 30min, for instance.

Regarding on dependencies, perhaps you should consider playing around with the feature on a testing environment before applying the configuration in production, and once you are happy with the workflow, the you could "migrate" those settings into production.

Kind regards,

Rafael

comments: author: thomas_ricaud
body: so my plan at the "top" of the food chain should not be triggered by any parent plan and i should have a schedule triggering on my "top" plan

but is there a way to have the parent/child triggering relationship and to prevent the "top" plan to run more often than once every 30 minutes ?

that way if there is zero commit during 5hours there is no useless run of the plan.


author: rsperafico
body: Then, you should be looking at [Polling the repository for changes](https://confluence.atlassian.com/display/BAMBOO/Polling+the+repository+for+changes) in which you have the option to trigger a build only when changes to repository are made. Please, notice in this triggering option you have Periodically (every X seconds) and Scheduled (defined by cron).
in ssh remote command, what is the timeout value
Asked by Chris Speier:

in ssh remote command, what is the timeout value?

I currently have a program that took more than 1200, should i double it or give it 9999?


Answers:
author: Edwin Kyalangalilwa
body: Hi [@Chris Speier](/t5/user/viewprofilepage/user-id/2103175),

I'd look into why the program is taking that long.

To be clear, ssh remote you mean running remote commands using the ssh command?


Tags: ssh
How to add Apache free maker template to a web item module
Asked by Indunil Maduranga:

![Atlas Community user Interface.PNG](/t5/image/serverpage/image-id/34497iF02FEFB850891FA3/image-size/large?v=v2&px=999 "Atlas Community user Interface.PNG")

As the given Screen shot I when I click a web item in my case jacaco Coverage(UT) (1) I want to add user interface to that web item (2) anyone can help me ?


Answers:
author: Gonchik Tsymzhitov
body: Hi!

I hope you fix it by this doc <https://developer.atlassian.com/server/bamboo/web-item-module/>

Cheers,

Gonchik Tsymzhitov


Tags: bamboo-app

bamboo-development
bamboo 5.9.7 upgrade to 6.6.3 problems
Asked by Dave Grandon:

Do I need to back up the whole server or can I just zip the installation directory, I am thinking in case of a roll-back scenario.

It says in the Bamboo upgrade guide 'The Windows installer deletes the previous version of Bamboo.' I am concerned to revert to 5.9.7 as the last know working environment.

Cheers


Answers:
author: Chris Berry
body: Hey Dave,

I hope that you have found a solution by now and have upgraded successfully.

If not, you should backup the \<Bamboo-home\> directory and the Database before attempting and upgrade.

The windows installed will remove the old 'install' files and then the upgrade of the files under \<Bamboo-home\> and the database are performed when the new Bamboo install starts. There is no way to reverse the modifications to these files and database schema.

To upgrade from 5.9.7 you would need to go via 5.14.

To revert back to the previous version you would need to recover your \<Bamboo-home\> directory and Database then reinstall the 5.9.7.

Any issues seen during the upgrade feel free to raise a [support ticket.](http://support.atlassian.com)

thanks

Chris

Atlassian support- Bamboo
I have written a bamboo plugin but when I install my plugin it'll add to the all bamboo build plans
Asked by Indunil Maduranga:

![BambooTask.jpg](/t5/image/serverpage/image-id/34410i8D4C2AC35B7FAC29/image-size/large?v=v2&px=999 "BambooTask.jpg")


Answers:
author: Gonchik Tsymzhitov
body: Hi!

Looks like without details it is hard to understand it :)

Cheers,

Gonchik Tsymzhitov


Tags: bamboo-app

bamboo-development
Convert Elastic Bamboo Remote Agent AMI to work as standard remote build agent
Asked by Joshua Day:

Hi There,

I've currently got an Elastic bamboo remote agent set up in AWS. The image it uses has had lots of modifications over the years and currently works exactly as we wanted - however - I'd like to run it as more of a clean build agent rather than an Elastic agent. Problem is that it doesn't connect if it's not started by the bamboo server.

Any ideas what I would need to alter on the image so I can change it to a standard remote agent?  

Cheers


Answers:
author: Foong
body: Elastic agent design is not the same as remote agent.

Do you mean that you have installed a separate [remote agent](https://confluence.atlassian.com/bamboo/bamboo-remote-agent-installation-guide-289276832.html) in the EC2 instance?

What is the error in the remote agent log when it fail to connect?

Is the Bamboo server publicly accessible so that the remote agent from EC2 can connect to it? (Elastic agent use tunnel connection so there is no need for public access)
How I can add people while restricted in email requested?
Asked by noman.ahsan:

I want users outside of my Jira Service Management project to create requests via email, even when customer permissions (channel access) are restricted, how configure an email channel to allow such requests?


Answers:
author: Nikola Perisic
body: Welcome to the community [@noman_ahsan](/t5/user/viewprofilepage/user-id/5478066)

You would need to go to project settings -\> email requests -\> three dots -\> Manage allowlist, and enter all of the domains that you want to allow to raise the email requests


Tags: jira-service-desk-cloud

jira-service-management

jira-service-management-cloud