youngmon/atlassian-qna huggingface dataset:
How to properly integrate automake with Bamboo
Asked by Nicolas Nicolas:

Our project uses autoconf/automake and automake's "make check" target to do regression testing. I currently use a simple "Script" task to run this sequence of commands:

autoreconf -fis  
./configure  
make  
make check

The build is labeled "testless build" and the results of "make check" are treated as compilation errors.

Is that the recommended way of doing this? Should I not run "make check" as a separate task? But how do I then accesss the binary produced in the "make" step? And where is the "script" task in the "tests" task type so I can run "make check"?

Thanks already,

nick


Answers:
author: Przemek Bruski
body: Depends on your end goal. What does make check do? Does it supply test results in a format that can be understood by Bamboo (for a list, have a look at Test task type in the wizard)? If it does (or it can be configured to), you could add a test parsing task as a finalising task in your job. In this way, you'd get the test results into Bamboo.

If you have a new format, you can write a new test parser plugin - it's fairly simple and you can you use existing test parses as templates. If you don't want to do that, you can file an enhancement request for your test format at <http://jira.atlassian.com>

comments: author: Nicolas Nicolas
body: Thanks, I will try that.
Is it possible to treat a build with test failures as passing?
Asked by Uri Moszkowicz:

Cruise Control only considered a build as failed when Ant exited non-zero, even if there were test failures. Is it possible to get the same behavior from Bamboo?


Answers:
author: PiotrA
body: There is a <https://jira.atlassian.com/browse/BAM-1278> issue raised for treating arbitrary test failures as 'passed', making the Bamboo completing the builds. Not exactly what you need, but it still might be valuable to add yourself as a watcher to that issue.

cheers,

comments: author: Uri Moszkowicz
body: Actually it is - now I know that I can't do what I want exactly. Instead I think I will change my script to just remove known failures. It's not ideal but I'll leave the original file around somewhere so I can at least see what's still failing.


author: Brent Villalobos
body: If I understand correctly (I don't have any experience with Ant), all checking the "This build will produce test results" option is fail the test if no tests are found. But it is still up to that final, JUnit parsing task to actually looking for test failures. If it were me, I would modify the test runner (again, no Ant experience so I don't know how this is done) to take a list of tests to run, but always report that they were successful.


author: Brent Villalobos
body: If you remove the JUnit parsing task (or whatever test results parsing task you use) then Bamboo will only consider the exit code when deciding whether a plan passes/fails. If you need the test parsing task then you will want to look at modifying your test runner to ignore certain test failures.

comments: author: Uri Moszkowicz
body: How do I do that? I just added an Ant task and checked off the "The build will produce test results" checkbox.


author: Uri Moszkowicz
body: Note that I would still like to see the test results on the build page. I considered disabling the plugin but I don't think that will work.
Associate Agents based off of host name?
Asked by Cameron Ferguson:

I was wondering if there was a way to force Bamboo to associate agents based off of the agent's hostname rather than it looking to see if the agent ID exists or not.

What I noticed is that if we reformat a bamboo agent, and set it back up with teh same host name, it gets added as a new agent within Bamboo and I have to re-declare all of the capabilities for that agent so it can be used again, and delete the original. I noticed there is a config file that the .jar file creates that if I save that, and pop it back into the same directory after the cold start, it will re-associate just fine, but I find that process very messy for us.

If i could somehow tell the bamboo server to identify an agent based off of it's hostname rather than the ID, then that'd help alot. I know this would prevent running multiple agents on the same box, but we don't need to do that.

Also another question, is tehre a list of all the java arguments that can be used for an agent? like the -Dbamboo variables? I've seen 2-3 different ones while searching, but can't seem to find a compiled list anywhere... thanks!


Answers:
author: Przemek Bruski
body: 1. No, you can't associate them by name. Modifying the agent id in bamboo-agent.cfg.xml is the only option if you want to erase agent data and inherit the settings.

2. I don't think there's a list. The variables are used mostly during support cases debugging, normally you shouldn't need to use them (except for the documented ones).
64 bit AMI for elastic bamboo
Asked by Gunnar Sigurdsson:

We use Jira Studio. We have unit tests that require 2GB or more to run. All of the elastic bamboo AMI's we find in EC2 published by atlassian are 32 bit (ec2-describe-images -o 200193376361). In order to use an EC2 instsance with more than 2GB of menory we require a 64bit AMI.

Does atliassian provide such an AMI or do we have to create our own?


Answers:
author: Michael Knight
body: Atlassian will be providing a 64-bit AMI. It will most likely become available once OnDemand upgrades the version of Bamboo it's using. You can keep an eye on the following issue for updates:

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


Tags: cloud
Is there a way to use Mercurial repositories for a project?
Asked by Javier Ortiz Bultron:

I would like to use my source currently in Mercurial (hosted on [Java.net](http://Java.net)) Is this possible? Do I really need to migrate to hosted SVN?


Answers:
author: Michael Knight
body: Hi Javier,

If you clone your Mercurial repository to Bitbucket then you can use JIRA's Bitbucket integration in OnDemand. The integration does not yet extend to the other applications (e.g. FishEye, Bamboo) at this time though.

comments: author: Javier Ortiz Bultron
body: Hopefully the integration is 100% functional soon so I can use the service for something actually.


author: Magne Nordtveit
body: Any update on an ETA of this functionallity? Or when Mercurial will be supported as a hosted solution with OnDemand?


author: Felipe Cuozzo
body: Please read the following important announcement:

[End of Service Announcement for Subversion and FishEye/Crucible in OnDemand](http://go-dvcs.atlassian.com/display/EOL/Source+Review+Bundle+End+of+Service)

Please direct your questions to this question:

[Subversion, FishEye/Crucible (the Source + Review Bundle) on OnDemand End of Service](/questions/95199/subversion-fisheye-crucible-the-source-review-bundle-on-ondemand-end-of-service)


author: Magne Nordtveit
body: Any update on an ETA of this functionallity? Or when Mercurial will be supported as a hosted solution with OnDemand?


Tags: cloud
can a remote agent declare its own custom capabilities?
Asked by Olly Stephens:

I'd like to be able to pass in parameters when spawning a remote agent which would be reflected in custom capabilities on the server. The current model where I have to fire up the agent then once it has connected update it's capabilities manually via the web interface doesn't fit my use model.

Is it possible? If not in the core functionality, does anyone know if it's possible through a custom plugin. I'm not averse to writing it - I have lots of experience writing Jira plugins - but haven't delved into it enough yet to see if it's even viable.

Thanks,  
Olly


Answers:
author: Przemek Bruski
body: Something like this?

<http://confluence.atlassian.com/display/BAMBOO/Configuring+Remote+Agent+Capabilities+via+bamboo-capabilities.properties>

comments: author: Olly Stephens
body: Exactly like that. Thanks!

Think I missed that page when I was looking because it hangs off the 'remote agent installation' page rather than the 'configuring capabilities' page.
Can I have bamboo and subversion on the same tomcat server?
Asked by srinumanthena:

I am installing a licensed version of bamboo for my company next week. Can I have bamboo and subversion on the same tomcat server? or can i have bamboo and subversion running on different instances of Tomcat but on the same machine? I am using a windows machine. i asking this because in the installation guide it is mentioned that " we recommend not deploying *any other applications* to the same Tomcat container that runs Bamboo". Please advise. Thank you


Answers:
author: James Dumay
body: Hi applelover,

Yes its possible to run Bamboo on the same server as a Subversion server. The installation guide was refering to Tomcats ability to run multiple applications inside the same Tomcat process (like running JIRA and Bamboo in the same Tomcat instance).

Thanks

James


Tags: install

tomcat
Mercurial - hg pull never finishes
Asked by PixalereH:

hg pull always fails with file not found. I've successfully pulled the same code with both git, and subversion. It always fails on the same file (after already pulling down several 100 files), the following is the error I receive:

*Error encountered while triggering manual build: command \[hg, pull, --rev, 9881586d33e8cee18f7ea596475cc296967567e5, --config, ui.ssh=ssh -o StrictHostKeyChecking=no -o BatchMode=yes, [https://travdes:\*\*\*@bitbucket.org/travdes/xxxxxxxxx\]](https://travdes:***%40bitbucket.org/travdes/xxxxxxxxx%5D) failed. Working directory was \`C:\\Documents and Settings\\travis\\bamboo-home\\xml-data\\build-dir\\_hg-repositories-cache\\114d6f4dcd09cdff7dad2a3210847c7156a11f78'. stderr: transaction abort! rollback completed abort: No such file or directory: C:\\Documents and Settings\\travis\\bamboo-home\\xml-data\\build-dir\\_hg-repositories-cache\\114d6f4dcd09cdff7dad2a3210847c7156a11f78\\.hg/store\\data/offline/base/_application_server/jakarta-tomcat-5.0.28/server/webapps/admin/_w_e_b-_i_n_f/lib\\.catalina-admin.jar.i-qqpalr stdout: pulling from [https://travdes:\*\*\*@bitbucket.org/travdes/xxxxxxxxadding](https://travdes:***%40bitbucket.org/travdes/xxxxxxxxadding) changesetsadding manifestsadding file changes*


Answers:
author: Przemek Bruski
body: Does it work when you run

hg pull --rev 9881586d33e8cee18f7ea596475cc296967567e5 --config ui.ssh=ssh -o StrictHostKeyChecking=no -o BatchMode=yes https://travdes:\*\*\*@bitbucket.org/travdes/xxxxxxxxx

from the command line?
Repository size exceeds limit - Unable to push latest code
Asked by NaveenNayak:

Hello,

after Repository size exceeds limit, I have made undo the last commit. And it was done successfully.

But Still my repository shows the error

\`\`\`

Repository size exceeds limit  
This repository is over the 4 GB limit and your contributors are not able to push new commits. To resolve this, reduce the repository size.  
\`\`\`  
The commit was deleted from branch still the size wasn't decreased  
Please help me to reduce the repository size.

I have followed the document to undo the last commit is: <https://support.atlassian.com/bitbucket-cloud/docs/reduce-repository-size/>


Answers:
author: Theodora Boudale
body: Hi [@NaveenNayak](/t5/user/viewprofilepage/user-id/147484),

In order for a git gc to run when you undo the last commit, it is necessary to have the **Labs** feature "*Delete dangling commits when over size limit* " enabled (for the user that does the push). I can see in our system that this is disabled for your Bitbucket account (you can enable it here, in case you ever need to perform this action again: <https://bitbucket.org/account/settings/features/>).

I checked the repos your account has access to, and I saw one of them that was over the size limit. I went ahead and ran a git gc for it, and its size is now 1.2 GB. Does this agree with the size of your local repo?

Please feel free to let me know if things are ok now and if you need anything further.

Kind regards,  
Theodora


Tags: bitbucket-cloud
custom.p4.revision.number bad substituion?
Asked by Cameron Ferguson:

I can't find anything for this variable "${bamboo.custom.p4.revision.number}. On the documentation it mentions that it's a "plugin" type of variable, but what plugin? I can't find anything regarding how to gain access to this variable. I might just be blind. Thanks in advance!

EDIT:

The original question was answered, but it's not the problem I am having. I can not access the custom.p4.revision.number variable. I get a "bad substitution" error


Answers:
author: Przemek Bruski
body: It's provided by VCS Version Reader Plugin, which is bundled with Bamboo. You should be able to access it without any additional work if your plan uses Perforce VCS.

comments: author: Cameron Ferguson
body: I have verified that we do that plugin, and it is enabled. However I can not access the variable. I keep getting a bad substituion error. Other variables work just fine.


author: Cameron Ferguson
body: going to bump this post up, still looking for an answer. Thanks!


author: Cameron Ferguson
body: We opened up a formal support ticket on this issue. There have been a few back and forth responses so far with no resolution yet... Once we figure out what the problem is I will respond with an answer.


author: PiotrA
body: Is it possible that the Job using that variable has no Source Code Checkout task?


author: Cameron Ferguson
body: Wow... Piotr you are correct. I had the variable being used in a job that was concurrent with a job that was doing the perforce pull under the same stage... as soon as I tied them to the same job with different tasks.. it substitutes correctly. Makes total sense as to why it didn't work now. I may be the only one that had ever had an issue with this, but maybe if others have the same problem a bit more clarification could be added to the documentation, unless I am the only person who would have made this mistake...

Been fighting this problem all week. I appreciate it! Thanks again.


author: PiotrA
body: Definitely you aren't alone having this issue: <https://jira.atlassian.com/browse/BAM-10091> . :)

cheers,
Need assistance in upgrading Bitbucket in our production environment
Asked by Trinh X_ Nguyen:

We are in dire need of upgrading our production environment Bitbucket data center.

We have tried upgrading this ourselves, but we are having difficulties with it.

I request some assistance with upgrading.


Answers:
author: Nic Brough -Adaptavist-
body: Where are you stuck? What documentation are you following?

comments: author: Trinh X_ Nguyen
body: [Bitbucket Server upgrade guide \| Bitbucket Data Center and Server 7.15 \| Atlassian Documentation](https://confluence.atlassian.com/bitbucketserver/bitbucket-server-upgrade-guide-776640551.html) is the documentation i am following.

I installed the same version that our production enviroment is running, launched it and it all worked, but when i updated to the latest version all i am getting is the following: "Localhost refused to connect". I am still running it with the same port as before (7990).


author: Nic Brough -Adaptavist-
body: OK, there's two things that could cause that.

First, your local network settings are blocking access. You'll need to take a look at firewalls and security software (it may be that you've got something that does not recognise the new install as valid to run where the old one was)

Second, the service is not accepting calls. You will need to look at the application logs to see if it is running ok, and if not, what the problem is.


author: Trinh X_ Nguyen
body: Thank you. I will take a look at that.


Tags: bitbucket-server

data-center

server

upgrade
how i can see my repositories?
Asked by dasauser:

i'm maintainer of workspace, project, and repo, but accidentally remove my permissions from repo, and now i can't see repos in workspace and projects.

how can i get back my permission in repo?


Answers:
author: dasauser
body: okay, i'm stupido

i'm just need to go to this path:

[https://bitbucket.org/workspace-id/workspace/settings/groups](https://bitbucket.org/workspace-id/workspace/settings/groups/group-id)

create group and set group permission, and then add my account to this group

(or update the permissions of an existing group)

it' works


author: Theodora Boudale
body: Hi [@dasauser](/t5/user/viewprofilepage/user-id/4160947),

If you are an administrator of this workspace, and if you remember the URL of these repos, you can navigate to

<https://bitbucket.org/>\<workspace-id\>/\<repo-slug\>/admin/access

where **\<workspace-id\>** and **\<repo-slug\>** replace with the values for your workspace and repos. You should still be able to access this page, and then you can select **Add members** (from the top right corner) and you can re-add the Administrators group of this workspace to each repo.

If you don't remember the repo-slug, you can run **git remote -v** in a clone of each of these repos (if you have any) to find it out.

Please feel free to let me know if that works for you and if you need further help.

Kind regards,  
Theodora

comments: author: dasauser
body: hi. thanks, and sorry, but i'm just stupid, and solution solution was super simple (in my answer)


author: Theodora Boudale
body: Thanks for the update [@dasauser](/t5/user/viewprofilepage/user-id/4160947), I'm glad to hear that you were able to sort this out.


Tags: bitbucket-cloud

cloud

workspace
unable to scan repository ( couldn't resolved the team details) -- Critical
Asked by Adesh Kumar Singh:

Hi Team,

This is regarding the issue we have been facing since yesterday 4 P.M , Suddenly our jenkins start throwing error during scan with a message "**Could not resolve team details**" , initially we were things that this might be due to any maintenance jobs but still we are on same stage.


Answers:
author: Theodora Boudale
body: Hi [@Adesh Kumar Singh](/t5/user/viewprofilepage/user-id/3725363),

I see that you have opened a support ticket for this issue as well, but I wanted to provide the response here for any other users who may come across the same issue.

If you're using the Bitbucket Branch Source plugin in Jenkins, the reason for this error is that the plugin was not updated before the deprecation of certain Bitbucket API endpoints:

* <https://developer.atlassian.com/cloud/bitbucket/bitbucket-api-teams-deprecation/>

The plugin is not owned or maintained by Atlassian. Its owner has been notified here:

* <https://github.com/jenkinsci/bitbucket-branch-source-plugin/issues/473>

and I can see in that issue's comments that version 2.9.11 has been released for the plugin, which should solve the issue.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Not getting the verification email
Asked by Kedar Desai:

Hi,

I've tried to set up a new account for BitBucket for my work and apparently have had the verification email sent, the email address is correct however I'm not receiving any verification emails?

email which is not received verification i.e. \<email_removed\>

I've tried re-sending the email a number of times and haven't received any of them.

Kind regards,

Kedar.


Answers:
author: Theodora Boudale
body: Hi [@Kedar Desai](/t5/user/viewprofilepage/user-id/4533055),

I checked in our system and I saw a hard bounce event for the email you mentioned with the message:

```
550: 550 Invalid Recipient - https://community.mimecast.com/docs/DOC-1369#550
```

It's very likely that the email account was not operational yet when you tried to set up the Bitbucket account. The hard bounce informs us that the email does not exist and in this case, it is placed in a suppression list, as we no longer try to resend to non-existing emails.

I went ahead and removed the email from the suppression list, could you please try resending the verification email one more time?

A new one needs to be sent now, as the previous ones were dropped.

Just a heads up that I removed the email from your post to protect your privacy.

Please feel free to let me know if things are ok now and if you need anything further.

Kind regards,  
Theodora


author: Kedar Desai
body: [@Ana Retamal](/t5/user/viewprofilepage/user-id/1067288) Please help out with this issue


Tags: bitbucket-cloud

cloud
Bitbucket Issue assign problem
Asked by Nat:

I started to encounter this problem recently, but for one user, the user searches only provide non-repository users with the same name and does not let me choose the correct one.

Is there a setting or something that I am missing so that I can constrain the search result to the repo user only?


Answers:
author: Syahrul
body: Hi [@Nat](/t5/user/viewprofilepage/user-id/1769104)

May I know is this @mention or just a user search in assigning PR reviewers, issues etc.?

I would also like to confirm if the issue happens on specific repositories only or on all repositories and if the affected repositories are private or public? This should give me more information on what may cause the issue because public repositories will try to search all users that have similar names which may be confusing.

If it's private repositories, then I would suggest checking with your team if anyone else can reproduce the issue or only specifically you.

I look forward to hearing from you.

Cheers,  
Syahrul


Tags: bitbucket-cloud

cloud
Jenkins could not resolve team details
Asked by GoDlikEr:

Hey there,

*** ** * ** ***

***TL;TR:***

**My problem is similar to:** *<https://community.atlassian.com/t5/Bitbucket-questions/Jenkins-could-NOT-discover-Repositories/qaq-p/1540027>*

*** ** * ** ***

Although,

I tried both using *user* :*password* and/or *user* :*app-password* and it didn't change the results.

![Captura de Tela 2021-08-26 a?s 19.19.10.png](https://community.atlassian.com/t5/image/serverpage/image-id/157761i78EC64719CFECF69/image-size/large?v=v2&px=999 "Captura de Tela 2021-08-26 a?s 19.19.10.png")

Already checked:

1. the credentials,
2. user permissions (granted admin),
3. job configurations (nothing changed),
4. logs for errors (nothing found),
5. connection between bitbucket-cloud and jenkins (working fine)

I validated the 1,2,3 and 5 by creating a job of type "pipeline" and loading it from a pipeline-library we have on bitbucket, it successful retrieve from bitbucket as do everything it should.

The only problem is that the plugin suddently stopped from "reading" the bitbucket team info and importing the repos to the jenkins platform.

Some info about the environment:

* I'm using bitbucket plugin at version 1.1.29
* Jenkins platform is running at version 2.777.4 (also tried 2.289.2 and 2.303.1)


Answers:
author: Misha Znak
body: Hi, it can be related to this issue  

<https://community.atlassian.com/t5/Bitbucket-questions/Jenkins-not-able-to-login-with-username-and-password-anymore/qaq-p/1787644>  

try to find solution here   
<https://github.com/jenkinsci/bitbucket-branch-source-plugin/issues/473>  

<br />

comments: author: GoDlikEr
body: Thanks!

The solution provided on that issue solved our case.


author: Adam Raszkiewicz
body: What exactly is the fix for that? I went to the github page but can't find working solution there. It says to update 2.9.7 to 2.9.11 but what exactly? I have BitBucket plugins up to date.


author: VinitPania
body: Even I didn't understood what we have to do.


Tags: bitbucket-cloud

cloud

jenkins