youngmon/atlassian-qna huggingface dataset:
how can i change the initial build number for a bamboo plan to say 10000
Asked by Ryan O Sullivan:

I have a plan that is at 4100, i have created a new plan but don't want it to start at v 1.

I don't think there is a way to share the build number between plans, and even if i could i think it's neater to just say the new plan starts at 10000. so there won't be any build number collisions


Answers:
author: Marcin Oles
body: It is not currently possible to do it directly in Bamboo.

However, there is a way to do it, but it's not recommended. It requires direct database manipulation.

To do it, please first make sure your Bamboo instance is not running. Then, modify the column value \`next_build_number' in the table \`build' for the specific plan to your desired value, eg. 10001.

Regards,  
Marcin Ole?

comments: author: Krystian Brazulewicz
body: I'd suggest performing this kind of direct DB manipulation with Bamboo shut down.


author: Ryan O Sullivan
body: i left it restart at 0


author: Daniel Latimer
body: Any update on this in the last 5 years or is it still not possible?


author: Krystian Brazulewicz
body: What do you mean by build collisions?


Tags: bamboo-administration
set up / view elastic agents
Asked by laughingblade:

I've got Bamboo picking up github commits and starting up an elastic instance of an EC2 AMI image.

On the build queue I can see my job, but it says that "No agent can build this job".

When I click the lightning-flash to manage elastic instances I can see an instance running, but the elastic agent is "pending".

When I look at the job/plan there are no unmet requirements, but it says it can be built on No Agents / 1 elastic image.

So I assume I need to set up an agent. The docs at <https://confluence.atlassian.com/display/AOD/Viewing+your+elastic+agents> say there should be an Agents link in the left panel of the Bamboo Overview page, but I don't have one. Are there some other pre-reqs I haven't set up? How do I set up an agent to run on my elastic instance?

Thanks

Rich


Answers:
author: laughingblade
body: I made sure that the correct version of MSBuild is in the path on the AMI, so that the agent should be able to find it, but still no joy.


author: laughingblade
body: OK, so I realised I need an agent on my EC2 machine. I followed advice at <https://confluence.atlassian.com/display/BAMBOO/Creating+a+custom+elastic+image+-+Windows> to get that going. Tested it on-box and then manually starting from Bamboo. All good - I can spin up the instance OK.

Then I set up a trigger for a github repo change to build using the AMI I have made. When ti runs it spins up the AMI on EC2 as it should, but leaves the build status in Bamboo saying "No agent can build this job". All I'm trying to do is MSBuild the solution... and the Agents Matrix shows that the requirements are met by my AMI.

Does anybody know what I need to do next to invoke MSBuild on the .sln?


Tags: cloud
How to get the Jira issues for a specific build
Asked by J?rg Malter:

For several Reports, i have to fetch the Jira issues for a specific build via CLI.

Currently i use:

java -jar lib/bamboo-cli-3.9.0.jar --server <https://xxxxx.xx> --user xxxxxx --password xxxxx --action getBuild --build "EBA-TESTING-129"

and Receiving the info:

jiraIssues:  
max-result . . . . . . . : 2  
size . . . . . . . . . . : 2  
start-index . . . . . . . : 0

But i need as output only the list of Jira issues which are in this build. I can't use in this script the rest api via https i need to use the atlassian CLI tool.

Do you have any idea for this?  
Best Regards

Joerg


Answers:
author: J?rg Malter
body: Hi,

thanks for your answer. In the meantime i found the solution and also a solution for a transition change.

Run this in Bamboo as Job in the last build step.

```
#!/bin/bashJAVA_HOME=&lt;your java dir&gt;JAVA=$JAVA_HOME/bin/javaCLI=&lt;atlassian cli directory&gt;USER="&lt;userid&gt;"PASSWORD="&lt;password&gt;"BAMBOOSERVER="&lt;bamboo url&gt;"JIRASERVER="&lt;JIRA url&gt;"TRANSITION="false"TRANSITIONSTEP="deploy prod"cd $CLITicketList=` \$JAVA -jar lib/bamboo-cli-3.9.0.jar \--quiet \--server $BAMBOOSERVER \--user $USER \--password $PASSWORD \--action getBuild \--build "${bamboo_planKey}-${bamboo_buildNumber}" \--expand jiraIssues | \grep key | grep -E -o "&lt;regexp for your issue keys&gt;"`echo "Jira issue list:"echo $TicketListecho " "for i in $TicketListdo$JAVA -jar lib/jira-cli-3.9.0.jar \--quiet \--server $JIRASERVER \--user $USER \--password $PASSWORD \--action progressIssue \--issue $i \--step "$TRANSITIONSTEP"done# A failed transition should never abort the buildexit 0
```


author: rsperafico
body: Hello Joerg,

Thank you for your question.

You could run the same command and append '--expand "jiraIssues"' to it. As a result, you would have:

```
java -jar bamboo-cli-3.9.0.jar --server http(s)://&lt;bamboo-base-url&gt; --user &lt;bamboo-username&gt; --password &lt;bamboo-password&gt; --action getBuild --build "EBA-TESTING-129" --expand "jiraIssues"
```

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

Thank you for your understanding.

---

Kind regards,  
Rafael P. Sperafico  
Atlassian Support


Tags: bamboo-administration
Bamboo NUnit System.InvalidOperationException
Asked by Ryan Holzum:

```
I'm trying to get Bamboo to Run NUnit tests.  I'm currently getting this error.  I've tried giving the task my sln, my csproj, I even added a step before hand to build the solution, and tried giving the NUnit task the compiled dll, they all resulted in below.  It's pretty much an empty NUnit test project, that has a single test that asserts 1 = 1.
```

```
?
```

And idea on what to try next?

> ```
> Unhandled Exception: System.InvalidOperationException: Showing a modal dialog box or form when the application is not running in UserInteractive mode is not a valid operation. Specify the ServiceNotification or DefaultDesktopOnly style to display a notification from a service application.error	09-Nov-2014 15:43:15	   at System.Windows.Forms.MessageBox.ShowCore(IWin32Window owner, String text, String caption, MessageBoxButtons buttons, MessageBoxIcon icon, MessageBoxDefaultButton defaultButton, MessageBoxOptions options, Boolean showHelp)error	09-Nov-2014 15:43:15	   at System.Windows.Forms.MessageBox.Show(String text, String caption, MessageBoxButtons buttons, MessageBoxIcon icon)error	09-Nov-2014 15:43:15	   at NUnit.UiKit.MessageDisplay.Error(String message)error	09-Nov-2014 15:43:15	   at NUnit.Gui.AppEntry.Main(String[] args)error	09-Nov-2014 15:43:15	   at NUnit.Gui.Class1.Main(String[] args)simple	09-Nov-2014 15:43:15	Parsing test results under C:\Atlassian\bamboo-home\xml-data\build-dir\AW-ACC-JOB1...simple	09-Nov-2014 15:43:15	Failing task since return code of [C:\Program Files (x86)\NUnit 2.6.3\bin\nunit.exe client/C:\Atlassian\bamboo-home\xml-data\build-dir\AW-ACC-JOB1\client\ABlight.Client.Test\ABlight.Client.Test\bin\Debug\ABlight.Client.Test.dll -xml=TestResult.xml] was -532459699 while expected 0simple	09-Nov-2014 15:43:15	Finished task 'Run Client NUnit Tests' with result: Failed
> ```


Answers:
author: Ryan Holzum
body: Incase anyone runs against this problem, I had a small error in the file path to the DLL. However, the big problem is is I was using NUnit.exe instead of NUnit-console.exe Once I changed that it worked.
Query Bamboo for 10,000 test results = Connection reset by peer: socket write error or URI too long
Asked by Peter Kahn:

When I execute the following I either receive URI-Too-Long when accessible bamboo via apache or "[java.net](http://java.net).SocketException: Connection reset by peer: socket write error" when accessing bamboo directly

```
result/BAMSYT-BRGIT-JOB1-latest?expand=testResults.allTests
```

Can I get a list of IDs from REST which I can use to iterate and access individual results ?

My goal is to track success and failures across partial builds. I need to know last-known-pass and first-known-fail. Because I have 10,000 unit tests the query is long.

Is it possible for me to do this via the REST interface on bamboo 4.4.2 or must I package the details in a file and store that as an artifact?

```
def restClient = new RESTClient(myBambooURL)def query = 'result/BAMSYT-BRGIT-JOB1-latest?expand=testResults.allTests'// Added This to set a long wait, but I'm not sure it is workingdef headers = ['http.connection.timeout': 300000, 'http.socket.timeout': 300000]restClient.setHeaders(headers)def response = restClient.get(path : path , contentType: 'TEXT' ,      headers : [Accept: 'application/json'], query : [ (splitQuery[0]):(splitQuery[1]), "max-results" : "100" ] )return JsonParser(response.data.text)
```

Let me know if you have any ideas.

Thanks

Peter


Answers:
author: Peter Kahn
body: I'm pretty sure the answer is = don't access the data via this channel and parse the surefire reports directly.
Manual Upload Step
Asked by Ryan Holzum:

I am currently using the free version of Unity, so I can't use command line tools to build Unity apps. My project includes a site that wraps around a Unity plugin.

Is it possible to have a deployment, where it builds/tests the website portions, and then has a manual step requiring me to upload a compiled Unity program, and then continue?

I know it's not very 'CI/ContinuousDeployment', but at least it can run automated tasks before, and then deploy the finished site+plugin to a server for me after


Answers:
author: Norman Abramovitz
body: You would make a builder task script that has no test results and it would scp your unity program and then email you that the upload is done.

Then create a test task waiting for an artifact to come into existence.
Win8: Git submodule failed from bamboo, please help
Asked by whtank:

I encounter a problem on Win8, when clone submodule from bamboo, detail is as below:

==========================================

Submodule 'jni' (git@xxxxx.git) registered for path 'jni'

Cloning into 'jni'...

Permission denied (publickey).

fatal: Could not read from remote repository.

Please make sure you have the correct access rights and the repository exists.

==========================================

The Bamboo agent is installed on Win8 64bit with Administator account, the repository include a submodule, when running the sync source code job, it always failed at the submodule -- 'permission denied'.

I searched the forum, and found a saying "Git doesn't ask bamboo for private key, but just use whatever is available in \~/.ssh". But I confirmed under the C:\\Users\\Administrator\\.ssh, there is the correct id_rsa. because I manually run git submodule on the machine, it works but from bamboo, doesn't.

Then I found bamboo calling git use the profile of "System" on Win8, not "Administrator" like Win7 does. Does that mean the private key need be located at System's home folder? or even bamboo agent need be installed by System account?

What I should do? Any suggestions? I need Win8 to build, please help, thanks.


Answers:
author: whtank
body: This was resolved after setting a environment variable HOME=C:\\Users\\Administrator and restart bamboo agent service....
manully deleted files Bamboo server Service Unavailable
Asked by ldap service:

We were running out of space so I manually deleted files in the Bamboo directory and now Bamboo starts but when you go to the website <http://bamboo:8085> you get Service Unavailable ?? The service is running in the Windows box. How do I get it to come back so we can build again??

MH


Answers:
author: Pawel Skierczynski
body: So either you have removed some Bamboo application files in which case you need to reinstall it.

Or you have removed Bamboo data files - if you don't need old one it's easy enough to stop Bamboo and change it's home directory to something new.

This should help you understand what is where: <https://confluence.atlassian.com/display/BAMBOO/Locating+important+directories+and+files>

bamboo.cfg.xml will tell you what db is used (most probably embedded H2)

to change home directory look at

|-----------------------------------------------------------|
| `atlassian-bamboo/WEB-INF/classes/bamboo-init.properties` |


author: ldap service
body: Pawel,

Thanks so much for your help in this matter, you answer was able to get me back online and I give you my thanks!!!

MH


author: ldap service
body: I just need it back up is there a way to direct it to a new location so I can start clean??

MH


author: ldap service
body: yeah well I know that now..., I am not that knowledgeable about this the person that was running it left the company and I am trying to take over and the developers were building last night and failing for lack of space so I went in and deleted some files it was very late and not sure where I deleted from did not think it was going to cause this. Not sure what DB how do I find this out?

MH


author: Pawel Skierczynski
body: Wow, try to avoid that in the future...

Do you know what directory/files exactly was deleted? Was it int bamboo data directory or some bamboo libraries?

Log file could also reveal more about the reason.

What database are you using? H2?


Tags: bamboo-administration
How can I install a bamboo server on an ubuntu virtual private server?
Asked by Daniel Dropik:

I have ab Ubuntu 14.04 virtual private sever with digital ocean.

I have attempted to follow along the installation instructions for installing a bamboo server on Linux (see <https://confluence.atlassian.com/display/BAMBOO/Installing+Bamboo+on+Linux> ), until I am told to run the setup wizard.

To manage my Ubuntu VPS, I use SSH terminal, and I don't have a graphical user interface.

How do I proceed to configure and install the bamboo server without using the setup wizard?


Answers:
author: rsperafico
body: Hello Daniel,

Thank you for your question.

You will be required to work with iptables in order to make your Bamboo accessible outside your VPS and do the installation from a box with graphical user interface. The same will be required if you want to create projects, plans, application links, linked repositories, ....

You can check which ports are listed on your iptables as per following:

```
sudo iptables -L
```

You should be able to find the following listed, since you are SSH your VPS, port 22 should be opened unless you have changed its default port to something else.

```
iptables -A INPUT -p tcp --dport 22 -j ACCEPTiptables -A INPUT -p tcp --dport 80 -j ACCEPT
```

After that, you have to add Bamboo's Connector port which can be found under "\<bamboo-install\>/conf/server.xml". By default, Bamboo works on port 8085

```
sudo iptables -A INPUT -p tcp -m tcp --dport 8085 -j ACCEPT
```

Now, you should be able to hit Bamboo from your web browser under http://\<ip-to-vps\>:8085/\<context-path\>

---

Kind regards,  
Rafael P. Sperafico  
Atlassian Support


Tags: bamboo-administration
Bamboo and nexus
Asked by Susant Prusty:

Hi All,

Is there a way to get artifacts from nexus to bamboo in my builds.

I know after a build I can use the created artifacts in other child plans or new plans , but is there any way we can get from nexus first before doing the build?

We can the do the other way around that upload to snapshot nexus repository from bamboo using maven and pom.xml file.

But is the reverse allowed getting from nexus ? and yes can you please let us know the plugin name ? or any other way to do it ?

Thank you

Regards,

Susant


Answers:
author: Susant Prusty
body: Thank you for your answer and sample pom file.

I will try to do the steps and let you know if I am stuck somewhere.

My requirement is when I run the build it should get the artifacts from my nexus hosted repository and should use those artifacts in the same buils.

Regards,

Susant


author: Susant Prusty
body: Hi,

Thank you for the reply.

Can you please send me a sample pom file is it's okay ?

Regards,

Susant

comments: author: Sergey Podobry _Stellarity Software_
body: I've added a sample pom to my answer.


author: Sergey Podobry _Stellarity Software_
body: Actually you can use maven and pom to upload and download artifacts. The trick is to create the correct pom file for that.

Sample pom.xml:

```
&lt;project xmlns="http://maven.apache.org/POM/4.0.0"          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0                             http://maven.apache.org/maven-v4_0_0.xsd"&gt;  &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;   &lt;groupId&gt;dummy.group&lt;/groupId&gt;  &lt;artifactId&gt;dymmy-artifact&lt;/artifactId&gt;  &lt;version&gt;1.0.0&lt;/version&gt;  &lt;packaging&gt;pom&lt;/packaging&gt;   &lt;dependencies&gt;    &lt;dependency&gt;      &lt;groupId&gt;com.googlecode.boost-maven-project&lt;/groupId&gt;      &lt;artifactId&gt;boost-thread&lt;/artifactId&gt;      &lt;version&gt;1.49.0-b1&lt;/version&gt;      &lt;classifier&gt;windows-amd64-msvc-release&lt;/classifier&gt;    &lt;/dependency&gt;  &lt;/dependencies&gt;&lt;/project&gt;
```

Run:

```
mvn dependency:copy-dependencies
```

And you'll get all your dependencies in /target/dependency directory.

Also if you don't need to copy transitive dependencies you can use wget or curl to download a file from a repo (or any other http download tool).


Tags: bamboo-administration
How do you customize the deployment email notification?
Asked by Nick Hynes:

Hi,

I want to customize the deployment success/fail email notification, but I cant find a ftl file in the WEB-INF\\classes\\notification-templates that relates to this event. Am I looking in the wrong place?


Answers:
author: rsperafico
body: Hello Nick,

Thank you for your question.

Deployment email notification are located under "*\<bamboo-install\>/atlassian-bamboo/WEB-INF/lib/atlassian-bamboo-deployments-5.6.2.jar* ". You should be able to find the "*.ftl* " files under "*com.atlassian.bamboo.deployments.notification-templates*".

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

Thank you for your understanding.

---

Kind regards,  
Rafael P. Sperafico  
Atlassian Support


Tags: bamboo-administration
Bamboo REST API create branch for Perforce
Asked by jay_wagner:

I have been able to create branches through the REST API using calls similar to this:

curl -X PUT --user admin:admin [http://awebsite.com:8085/rest/api/latest/plan/PROJ-PLAN/branch/testbranch](http://poping.backflipstudios.com:8085/rest/api/latest/plan/GT-IOS/branch/testbranch?vcsBranch=dev_clientspec_test)

For Git and Mercurial, you can add the vcsBranch parameter to specify what branch to create.

curl -X PUT --user admin:admin [http://awebsite.com:8085/rest/api/latest/plan/PROJ-PLAN/branch/testbranch](http://poping.backflipstudios.com:8085/rest/api/latest/plan/GT-IOS/branch/testbranch?vcsBranch=dev_clientspec_test)?vcsBranch=branch_test

If you try this with a Perforce-based repository, you get a huge stack trace starting with a null pointer exception. Is there any way to specify other parameters? I tried client and clientspec. These don't completely fail, but they also just use the default Perforce workspace, which defeats most of the point in trying to create it via the REST API.


Answers:
author: Mi?osz Kosobucki
body: I'm afraid, branches aren't supported for Perforce in Bamboo
Bamboo deosn't run on Windows 7
Asked by Yinsong:

After I followed the online instructions to install Bamboo on windows 7 and run start-bamboo.bat. I got Bamboo Standalone edition Version: 5.6.2. and got "this page can't be displayed " when I try to open [http://localhost:](http://localhost) 8085 through web browser. I check the config file and the port number is set to be 8085

My java version is "1.7.0_71"; Bamboo home direcoty has not been created since it has not launched yet and there is not log file created under bamboo\\logs.

Any help would be appreciated!


Answers:
author: Yinsong
body: The problem is fixed. it turns out JAVA_HOME was not set up properly. it was set as C:\\Java instead of C:\\JAVA_jdk1.7.0_71 (java version), after update and restart, the bamboo server is running perfectly fine

Just thought I would share and close the question


author: Dayle Kotturi
body: Sounds like "Bamboo" process that you launched via "start-bamboo.bat" is not running. I had this yesterday. Try running "BambooConsole.bat" and read the output in the console window that appears to see what problem is. If this stays up, refreshing your browser window should start to work.

Oh yeah, and don't forget to rt-click on the .bat and select "Run as Administrator". This was necessary for me.

HTH


author: Yinsong
body: I ran BambooConsole.bat as administrator and still got the same message. it doesn't give me any errors or anything. The screenshot is attached. Do I need to install Tomcat or anything seperately to get this running. I saw it has built in Tmocat under bin. Any ideas?

Thanks in advance!

Bamboo.png  
[](https://community.atlassian.com/t5/Bamboo-questions/Bamboo-deosn-t-run-on-Windows-7/qaq-p/189843?attachment-id=4289){#link_116966b262cd56}  
[](/tnckb94959/attachments/tnckb94959/bamboo-questions/6061/1/Bamboo.png){#display_116966b262cd56_0}
Can I change the time that Bamboo runs the clean up of old plan branches?
Asked by JRob:

Plan branches will be automatically removed if no commits to the respective VCS branch have been made. Cleanup runs daily at 3am.

This time is not convenient for my team. Is there a way to configure when this job runs?

For example, can I configure the cleanup job to run at 8pm instead of 3am?


Answers:
author: Ron Chan
body: You can set the number of days (of inactivity) before their cleaned. Then on that day, they get purged at 3am.

comments: author: JRob
body: I edited the question with additional context for what I'm after.


author: Ron Chan
body: I see...then that one i don't have an answer for


author: Mikoj
body: Can i change hour to purge ?


Tags: bamboo-administration
default branch selection
Asked by Zohar Amir:

I would like to set the **default** branch that is shown to "current branch" - how do I do that?![Screen Shot 2022-04-14 at 17.15.39.png](https://community.atlassian.com/t5/image/serverpage/image-id/192970iE510F521E7FAC59A/image-size/large?v=v2&px=999 "Screen Shot 2022-04-14 at 17.15.39.png")


Answers:
author: Zohar Amir
body: Atlassian guys - **please please please** - <https://jira.atlassian.com/browse/SRCTREE-7825>


author: Nes Fel
body: I have the same question. Pretty much everybody I work with has this same question. Please Atlassian, provide a way to change the default value from "All Branches" to "Current Branch" in that dropdown. The OP provided a screenshot in their initial post so please refer to it for clarification of what's being requested.


author: Karthick S
body: Hello [@Zohar Amir](/t5/user/viewprofilepage/user-id/3896575)

Thank you for reaching out to Atlassian Community!

If you are looking for this option in Bitbucket Cloud, please go to \[*Your Repository* *\>\> Settings \>\> General \>\> Repository details \>\> Advanced \>\> Select Main branch* .\]

![Screenshot 2022-04-15 at 9.51.12 AM.png](https://community.atlassian.com/t5/image/serverpage/image-id/193069iE4342592279D18E1/image-dimensions/431x242?v=v2 "Screenshot 2022-04-15 at 9.51.12 AM.png")  

Kind regards,  
Karthick S

comments: author: Zohar Amir
body: Thanks Karthick,

I don't think this is what I'm looking for.

In my repo the "main branch" is develop, but when I open source tree I see "All Branches" as the default (and it reverts s back to it very often).


author: Zohar Amir
body: hello [@Karthick S](/t5/user/viewprofilepage/user-id/4557546) ,

Can we continue this discussion? Is it clearer what I am looking for?


Tags: bitbucket-cloud

cloud