youngmon/atlassian-qna huggingface dataset:
How can I get the repositoryId in the Bamboo CLI
Asked by Yongjun Rong:

When I try to clone a plan and I need change the subversion repository for different plan. But it also need specify the repositoryId when I try to "updateRepository". I would like to have automation way to get the repositoryId. Is it possible do it via this CLI?

Thank you.

Yongjun Rong


Answers:
author: Alvaro Castro
body: Hi:

As workarround we execute a HTTP GET to:

```
http://&lt;my_host&gt;:8085/chain/admin/config/editChainRepository.action?os_username=&lt;my_user&gt;&amp;os_password=&lt;my_password&gt;&amp;planKey=&lt;my_playkey&gt;
```

using:

**\<my_host\>:**your bamboo host:

**\<my_user\>:**your bamboo user

**\<my_password\>**: your bamboo password

**\<my_plankey\>:** is the combination "PROJECT-PLAN" for your project ('-' must be included).

Then you can parse the response and search for **repositoryId.**

I only test this on bamboo 4.4.5**,** but maybe works on others versions.

Regards,

comments: author: Bob Swift (personal)
body: Good idea! Although I had to use **buildKey** instead of **planKey** for the releases I was testing with (4.2 and 5.0 EAP). Translating that into CLI terms, you can use:

```
--action renderRequest --quiet --request "/chain/admin/config/editChainRepository.action?buildKey=XXX-DEF" --findReplaceRegex ".*repositoryId=(\d+).*:\$1"To get:37159110
```

That only gets the first repository.


author: Alvaro Castro
body: Thanks Bob:

Just as a side note, on windows I had to remove the "\\" scape character from \\$ on:  
`.*repositoryId=(\d+).*:\$1`

So the final sentence that works on windows will be:

```
--action renderRequest --quiet --request "/chain/admin/config/editChainRepository.action?buildKey=XXX-DEF" --findReplaceRegex ".*repositoryId=(\d+).*:$1"
```

Regards,


author: Yongjun Rong
body: Sorry I cannot login to the onDemand

comments: author: Bob Swift (personal)
body: If you don't have an id already, click on: Create an account


author: Yongjun Rong
body: Thanks for your quick response. But need another getRepositoryId when specify and plan key and the repo name. No, I will try to access the db directly to get the id as a tempaory workaround.

comments: author: Yongjun Rong
body: I cannot use the addRepository because the repository is cloned when I try to clonePlan. I need updateRepository. Or when after clonePlan, it will be great if it can return the repositoryId

I will open an issue. Thank you again.


author: Bob Swift (personal)
body: There isn't a way to list existing ones currently. [Open an issue](https://bobswift.atlassian.net/browse/BCLI). If you run [addRepository](https://bobswift.atlassian.net/wiki/display/BCLI/Documentation#Documentation-addRepository), then the repository id is returned on the command.


Tags: cli
Bamboo ActiveMQ says not enough space
Asked by Aram Kocharyan:

I'm getting this:

```
2013-05-19 00:44:06,746 WARN [QuartzScheduler_Worker-2] [BrokerService] Store limit is 100000 mb, whilst the data directory: /mnt/s913gc/opt/bamboo/activemq-data/bamboo/KahaDB only has 6806 mb of usable space2013-05-19 00:44:06,748 ERROR [QuartzScheduler_Worker-2] [BrokerService] Temporary Store limit is 50000 mb, whilst the temporary data directory: /mnt/s913gc/opt/bamboo/activemq-data/bamboo/tmp_storage only has 6806 mb of usable space
```

Can I change /opt/bamboo/bamboo.cfg.xml to reduce this obscenely large limit back to the default 32MB?

**EDIT**

I don't think this was the reason why my plans were remaining in scheduled mode, but there were no other errors in the log.


Answers:
author: Przemek Bruski
body: You can safely ignore these messages.


Tags: bamboo-administration
iOS Xcode Bamboo plugin fails after upgrading to v2.0 of the plugin
Asked by Patrick Aikens:

I'm running Bamboo 4.4.4 and just upgraded to the new iOS plugin v2.0. I now get the following when I try to run a build - it's complaining about the "unlock keychain" task:

```
17-May-2013 10:27:58	java.lang.IncompatibleClassChangeError: Found class com.atlassian.utils.process.ExternalProcess, but interface was expected17-May-2013 10:27:58	        at com.atlassian.bamboo.plugins.xcode.keychain.UnlockKeychainTaskType.execute(UnlockKeychainTaskType.java:90)17-May-2013 10:27:58	        at com.atlassian.bamboo.task.TaskExecutorImpl.executeTasks(TaskExecutorImpl.java:187)17-May-2013 10:27:58	        at com.atlassian.bamboo.task.TaskExecutorImpl.execute(TaskExecutorImpl.java:93)17-May-2013 10:27:58	        at com.atlassian.bamboo.build.pipeline.tasks.ExecuteBuildTask.call(ExecuteBuildTask.java:87)17-May-2013 10:27:58	        at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.build(DefaultBuildAgent.java:206)17-May-2013 10:27:58	        at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.waitAndPerformBuild(BuildAgentControllerImpl.java:103)17-May-2013 10:27:58	        at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent$1.run(DefaultBuildAgent.java:111)17-May-2013 10:27:58	        at com.atlassian.bamboo.build.pipeline.concurrent.NamedThreadFactory$2.run(NamedThreadFactory.java:52)17-May-2013 10:27:58	        at java.lang.Thread.run(Thread.java:680)
```

Anyone out there know what I can do to get past this?


Answers:
author: Jeremy Derr
body: i resolved this on our system by uninstalling, then re-installing the plugin.


Tags: addon-com.atlassian.bamboo.plugins.xcode

ios
Bamboo plan is queued indefinitely
Asked by Aram Kocharyan:

I can see:

**#33 has been queued for 1235 minutes Manual build by Admin**  
It isn't going to build anytime soon. I've checked atlassian-bamboo.log and bambool.log but can't find any relevant errors. Is there something any of you can recommend?  
**EDIT**  
Also, I'm running bamboo on a mounted remote file system which a regular user on the local machine has full privileges to. I'm thinking it's dying silently due to permission issues perhaps.  
**EDIT**  
It seems to be working fine now - I set the temporary directory to a subdirectory on the same virtual file system rather than the host machine.


Answers:
author: Aram Kocharyan
body: I used this guide to set the timeout higher for the wrapper - it was timing out and restarting each time, preventing the plan from competing.

<https://confluence.atlassian.com/pages/viewpage.action?pageId=179444239>


author: Sultan Maiyaki
body: Hi Aram,

Can you provide us with a little snippet of the contents of the logs at a time when the build is queued forever? This will help in identifying the issue. Also do you have any third-party plugins installed


author: Daniel Wester
body: Which part of Bamboo is running on a mounted remote file system? You should make sure that jms, cache etc are local - or you might have performance issues.

comments: author: Aram Kocharyan
body: The whole /opt/bamboo folder is on a remote file system, and I have a symlink to it.


author: nseinlet
body: Do you have an agent with all capabilities for running the plan?

comments: author: Aram Kocharyan
body: I believe so, since initially everything runs fine, then after a while the plans begin to hang... Restarting fixes it temporarily it seems.


author: Sultan Maiyaki
body: Hi Aram,

Which version of Bamboo are you using? I suspect tht you might be facing either of the following bugs:

* <https://jira.atlassian.com/browse/BAM-12776>
* <https://jira.atlassian.com/browse/BAM-12777>

If you are using a later version of Bamboo and still affected, then it is most likely the connection pool is quite two low. The default value should be 100. Check this line in your HOME/bamboo-cfg.xml file

\<property name="hibernate.c3p0.max_size"\>100\</property\>

comments: author: Aram Kocharyan
body: Thanks, the value is 100 I'm using 4.4.4.
Bamboo and Stash - Pull requests and Build Status
Asked by Alexandre Mutel:

Hi,

We are trying to integrate bamboo with stash, but the workflow between stash and bamboo is currently not crystal clear.

First, build status seems to not appear in stash, so I'm not sure if there is a setup problem somewhere (applications links seems to be correctly setup, as well as notifications from bamboo).

But the first thing we are not sure is that bamboo seems to be able to automatically trigger a build after commits have been done to a branch. So questions are:

* Does it mean that Pull Requests should be merged before trying to build?
* But if a merge is breaking the build, I would not prefer this commits to be actually merged. How are we supposed to proceed? Do we have to create a special branch for integration like master_integration, merge on this branch, build on this branch, if build is broken, wait for an update, re-run the build, build ok, automatically merge from master_integration to master. Is this the correct workflow?
* If we want to automatically build a branch before merging, how are we supposed to proceed?

Thanks


Answers:
author: ThomasA
body: Hi Alexandre,

Assuming you have branch builds setup and the build status is being published to Stash you should be able to stop pull requests being merged unless they have a green build.

There is a [setting](https://confluence.atlassian.com/display/STASH/Checks+for+merging+pull+requests) on the Pull Requests tab in repository settings to control the merge behaviour.

Hope that helps,

Tom.


author: Alexandre Mutel
body: Update: Sorry, I completely forgot that I can configure bamboo branches and this is where we can build branches before merging them. So it seems to like question 1 and 3 have a solution.


Tags: bitbucket-server
bamboo supports for VisualSVN SSO?
Asked by Marcelo Caldas:

Hi all,

I'm trying to evaluate bamboo. The only reason is becausemy company disabled usernmae/password access to our svnserver, requiring SSO kerberos access to it. I tried setting up a bamboo job, but still can't login to svn. Is there a plugin or something I can install on it to allow it to communicate with VisualSVN in that way?

thanks,

Marcelo.


Answers:
author: Marcelo Caldas
body: sorry, that really doesn't apply. I'm actually looking for kerberos authentication.

comments: author: bahrep
body: Kerberos authentication is not supported in Bamboo. So\~


author: bahrep
body: Have you tried suggestions from Bamboo KB?

See the article: <https://confluence.atlassian.com/display/BAMKB/Authentication+Failure+with+NTLM+Subversion+Authentication>

And this comment: <https://confluence.atlassian.com/display/BAMKB/Authentication+Failure+with+NTLM+Subversion+Authentication?focusedCommentId=289964410#comment-289964410>


Tags: bamboo-administration
run parameterised plan
Asked by Olivier Vandevoorde:

Does a user need to have edit permission to run a parameterised plan build?


Answers:
author: Jan Swaelens
body: No, users who can run the plan will also be able to run it customize even if they do not have edit permission on the plan.

comments: author: Olivier Vandevoorde
body: We're still running version 3.1. Is it possible that here edit rights are necessary ?


Tags: bamboo-administration
Bamboo Elastic instance gone!?
Asked by Thomas C:

We had a bamboo elastic agent running on an EC2 server, but suddenly it was gone. How can this happen? Is there a timelimit on these agents?


Answers:
author: AmberF
body: Hi Thomas,

By default, Bamboo will shut down Elastic agents that aren't in use in order to cut down on your Amazon costs. You can definitely modify this setting by editing the **Automatically terminate elastic instance when elastic agent process ends** option in Bamboo's Global settings. You can also specify a time limit that an agent has to be idle before Bamboo terminates it. For more information see [Configuring Elastic Bamboo](https://confluence.atlassian.com/display/AOD/Configuring+Elastic+Bamboo).


Tags: cloud
Bamboo Cloning
Asked by Patrick J Bonk:

Has anyone cloned one instance of Bamboo to a new server?


Answers:
author: Patrick J Bonk
body: I am going to do the cloning and was waiting to hear if I have to run the install after I unzip it on the new server or can I just start the service on the new server??


author: Patrick J Bonk
body: I am going from a 2003 to 2008 windows server. I have read some other post and can I just start the new service on the new server after unzipping or do I have to run an install from it?


author: AmberF
body: This depends on the platform - Bamboo on Windows and Mac both have an installer you can use, but the Linux installation is just a download that needs to be extracted and then started via a script. For step by step instructions for all platforms see our [Bamboo Installation Guide](https://confluence.atlassian.com/display/BAMBOO/Bamboo+installation+guide).


author: Patrick J Bonk
body: When run the install is there a install.exe that I should look for?


author: AmberF
body: Hi Patrick,

Are you having trouble with a specific step of the cloning procedure? If you're looking for detailed instructions, we've outline the process here: [Cloning a Bamboo instance](https://confluence.atlassian.com/display/BAMBOO/Cloning+a+Bamboo+instance).
Using MS SQL Integrated Authentication with Bamboo and Fisheye
Asked by Chris Wundram:

I am confugring Bamboo and Fisheye to use a Microsoft SQL database server. Our DBAs would like us to use integrated authentication instead of SQL authentication. I was able to configure this for Stash, but not for Bamboo or Fisheye. Has anyone been able to configure these apps for integrated authentication?


Answers:
author: Foong
body: Hi Chris,

Please try the following workaround in a test server:

1. Integrate Bamboo/FishEye to SQL Server through the UI
2. Stop Bamboo/FishEye
3. Copy *sqljdbc-\*.jar* driver from *STASH_INSTALL/lib* into *BAMBOO_INSTALL/webapp/WEB-INF/lib* or *FISHEYE_INST/lib*
4. Copy x64 or x86 from *STASH_INSTALL/lib/native* and rename it as *sqljdbc_auth.dll* into *BAMBOO_INSTALL/webapp/WEB-INF/lib* or *FISHEYE_INST/lib*
5. Modify *BAMBOO_HOME/bamboo.cfg.xml* or *FISHEYE_INST/config.xml* to have the new settings:

   ```
   Bamboo:&lt;properties&gt;    &lt;property name="hibernate.connection.driver_class"&gt;com.microsoft.sqlserver.jdbc.SQLServerDriver&lt;/property&gt;    &lt;property name="hibernate.connection.password"&gt;&lt;/property&gt;    &lt;property name="hibernate.connection.url"&gt;jdbc:sqlserver://CONFSERVER:1433;databaseName=Confluence;integratedSecurity=true;&lt;/property&gt;    &lt;property name="hibernate.connection.username"&gt;sa&lt;/property&gt;&lt;/properties&gt;FishEye:	&lt;database type="sqlserver2008"&gt;		&lt;connection dialect="com.cenqua.crucible.hibernate.dialects.SQLServer2008UnicodeDialect" driver="com.microsoft.sqlserver.jdbc.SQLServerDriver" jdbcurl="jdbc:sqlserver://localhost:1433;databaseName=fisheye;integratedSecurity=true;" password="" username="sa" maxPoolSize="20" minPoolSize="5" driverSource="user"/&gt;	&lt;/database&gt;
   ```

   Change the value mentioned in the above example only. Do not delete other settings in the file.
6. Start Bamboo/FishEye

Source: <https://confluence.atlassian.com/display/DOC/Database+Setup+for+SQL+Server?focusedCommentId=132383179#comment-132383179>

comments: author: StevenHawkins
body: Update;

For Bamboo 6 at least, the sqljdbc_auth.dll should be placed in \<bamboo-install\>/bin


author: Neil
body: Did this solution work for you? I am going to attempt this shortly so I am looking for any updated information on this for the most recent Fisheye. Thanks!


Tags: bamboo-administration

fisheye-crucible

fisheye-crucible-administration
update build summary with changed perforce checkin comment
Asked by Paul B:

I checkin files with a checkin comment that includes a Jira bug number.

The build(s) run and report that bug number in the build summary under "Code changes" as expected.

(all good)

then I find I had a typo in the checkin comment, and I change the bug number in the perforce checkin comment. (p4 change -f ###)That change is not reflected in the bamboo build summary.

Is there anyway to change or refresh the "Code changes" checkin comments listed in the bamboo build summary? (without editing the DB with sql?)

I expect this is read and kept at build time and can not be easily changed or updated or refreshed.

thank you in advance for any ideas you mght have.


Answers:
author: Przemek Bruski
body: No, it's not possible to refresh just the code changes. Editing the DB is the best option.


Tags: perforce
Displaying a summary of unit test results
Asked by Milan Negovan:

Maybe it's my limited knowledge of Bamboo as we're still evaluating it, but I can't figure out how/if I can get it to display a list of nUnit test results.

Jenkins shows a breakdown of test stats, including their names, duration, etc, but Bamboo simply gives me "24 tests in total, \< 1 second taken in total". I have both **NUnit Runner** and **NUnit Parser** tasks hooked up to this particular job.

Having test names would be great for visibility across departments.


Answers:
author: PiotrA
body: Hello Milan,

Please try to drill down to a particular \*JOB\* result page. I reckon successful tests are shown only on JOB level, not on the Plan level. So for example if you have a Plan consisting of a one stage, one job and some tasks, try to expand job navigator (left side panel) and navigate to the JOB result page. There you should go to 'test' tab to see successful tests.

I reckon that is not the most intuitive place to display that data, as I reckon there were similar questions raised here or on the [jira.atlassian.com](http://jira.atlassian.com)...

Am I helpful?

regards

comments: author: Milan Negovan
body: Piotr,

You're 100% correct. I usually have the left-side panel collapsed and didn't realize the summary was there.

<br />

While we're on this subject, going to the Job Summary only lists results as well. If this hasn't been brough up before, I'll submit an enhancement request to have a link to the test result page. Otherwise it's a bit difficult to find. The reason behind this is that I'd like to have people in QA/PM/Product to have good visibility into what's being tested.

<br />

Many thanks!

Milan
SCP Creating Remote Directory instead of File
Asked by Jeffrey Thibeault:

In trying to use an SCP task to deploy website files, I have an issue where the scp task is trying to create a directory instead of a file when that file is a substring of another file to be copied. Example: WebPage.aspx WebPage.aspx.cs

<!-- -->

The process tries to create WebPage.aspx as a directory instead of copying the file.

<br />

This issue seems to be referenced in

[BAM-13095](https://jira.atlassian.com/browse/BAM-13095)

(found by searching) but I am unable to find out how to resolve or workaround it.


Answers:
author: dave
body: unfortunately, even though the files are copied, the job fails due to the nonzero exit code thrown by scp.


author: Sultan Maiyaki
body: Hi Jeffrey,

Hmm okay I see.. by the way can you confirm if the files are copied over despite the error? sometimes this can be the case

comments: author: Jeffrey Thibeault
body: Yes, the files do appear to be copied despite the error.


author: Sultan Maiyaki
body: Hi Jeffrey,

Can you try using the 1.20 version of the plugin which has fixed the issue and if there is any problem, it will have better debugging logs. You can replace as thus:

# Shutdown Bamboo

# Download version \[1.17\|https://marketplace.atlassian.com/download/plugins/com.atlassian.bamboo.plugins.bamboo-scp-plugin/version/67\] of the plugin from this page and copy it over to $HOME/plugins directory

# Delete the HOME/bundled-plugins folder

# Remove the bamboo-scp-plugin-1.17.jar file from the $INSTALL\\webapp\\WEB-INF\\classes\\atlassian-bundled-plugins.zip folder

# Restart bamboo

Please try it and if it is happens again, create a support ticket at href="https://support.atlassian.com"\>https://support.atlassian.com attaching a sample build logs and the server logs.

Regards,

Sultan

comments: author: Jeffrey Thibeault
body: Hi Sultan,

Thanks for the response. I'm using Bamboo OnDemand so I don't believe I can update the plugin version (it appears to be at 1.19). Is there a timeframe for this to be updated, or a workaround in the meantime?

Thanks


Tags: cloud
How can I configure a project to allow only one of its plans to run at a time?
Asked by Craig Thayer:

I'm new to Bamboo and have been given the task of preventing a build plan from running in a project if any of the project's other build plans are running. For example:

The project has 4 plans: A, B, C, \& D. Plan C is common to A and B and A and B are configured with the parent C dependency and C is configured with A \& B children. Plan D is not dependent on any of the other plans. All plans are triggered to build upon any git source check-in. However, only one of the 3 related builds (A, B or C) can run at any given time else the builds fail. I believe their sequential building is handled by the dependency triggers, but it is not handled if, say, 2 of the 3 plans are kicked off by near simultaneous check-ins.

We're using Bamboo 4.4.


Answers:
author: Felipe Kraemer
body: Hi Craig,

Maybe you're looking for Plan Build Dependencies?

<https://confluence.atlassian.com/display/BAMBOO/Setting+up+plan+build+dependencies>

I hope this helps!

comments: author: Craig Thayer
body: Thanks Felipe. I previously read that section and verified the build plans were setup with the child blocking if the parent had changes or was building or queued. However, I requested more information and feedback from the developer who reported the issue to make sure I'm not misunderstanding their problem.
Not able to publish android aar library to bitbucket after updated android gradle to 7+
Asked by Arun singh:

Not able to publish android aar library to bitbucket after updated android gradle to 7+


Answers:
author: Mark C
body: Hi [@Arun singh](/t5/user/viewprofilepage/user-id/4685126)

Thank you for reaching out to the community.

When you tried publishing an Android aar library to Bitbucket, would it be possible for you to confirm if you're using Bitbucket Pipelines?  
If yes, may I kindly ask if you could provide some error messages and the exact command you're using?

Regards,  
Mark C


Tags: bitbucket-cloud

cloud
limit a repository access or can we limit a workspace access
Asked by Gajanan Sasane:

Greetings...!!!  

Suppose I am having two different bitbucket workspace.  
Workspace A are having repo Java and HTML  
likewise workspace B are having Python and Groovy.  
If I provide the access to Jhon of workspace A for Java repo and from workspace B given access to repo python.  
How would I restrict the repo visibility of the workspace of A and B for Groovy and HTML?  

Please let me know if the above clarification is not clear.  


Answers:
author: Jimmy Seddon
body: Hi [@Gajanan Sasane](/t5/user/viewprofilepage/user-id/1180422),

If I'm understanding your question correctly what you will need to do is make sure that user "Jhon" has been given permissions to the Java and Python repositories and is not a part of any groups that would provide access to the Groovy or HTML repositories.

When they access either Workspace A or B they will only be able to see a list of the repositories they have access to regardless of how many repositories exist in each Workspace.

I hope that helps answer your question!

-Jimmy


Tags: bitbucket-cloud

cloud