youngmon/atlassian-qna huggingface dataset:
How to get a full list of linked Issues to a build since last release in Bamboo?
Asked by Vishal Gautam:

Looking for some best practices advice here .... One of the key requirements we have for using Bamboo is to show in JIRA how a bug-fix or feature is linked with a build and where all it has been deployed. In this context we are mostly interested in showing the builds those are deployed to production environments. Issue linking with builds is happening but as we are building continuously (several times a day) issues are spread across several builds. When release time comes we create a final build and in this build we want to show all Issues since the last release. How to do this?

We thought reverting the svn rev number of the build workspace to the rev of last release would trigger svn up of all changes since last release and hence update the linked issues list, but that did not work. Looks like Bamboo saves this linked issues list somewhere else? Do we need to clear this cache or something? Another idea we have thought (though not tried) is to have a different build plan and workspace for production builds and run the build there only during release times, but again sometimes we may need to run the build multiple times before final build is ready, then how do we get a full list of linked issues (since last release) to the final build?

Any pointers or advice will be much appreciated.


Answers:
author: Mike Howells
body: You can use Deployment Projects in Bamboo for continuous deployment/delivery, and this allows you to see all the commits and issues they mention between two releases.

1. Create a deployment project attached to your release plan.
2. Configure environments with tasks to deploy a release to an environment.
3. Configure a trigger on the first environment in your pipeline to auto-deploy.
4. Configure a trigger on the other environments to auto-deploy if the previous is successful.

You'll need some kind of verification step to deployments so you don't promote to next unless this environment looks okay after the deploy.

Each build of a new version will create a "release" in the deployment project. If you look at a release there are tabs that show the commits and issues since the previous release.

If you don't want to release on every commit, create a separate release branch and only merge to that when you want to deploy. Then configure your release plan to build from that release branch.


author: shari_anderson
body: We use a perl script (which runs as part of the build) which uses the previous tag as an argument. Then we do an 'svn log' to find all the changes since the tag was applied, which gives us a list of the issues as we use the issue ID when we commit code.


author: Kunwar Sangram Singh
body: Similar concern, How does Bamboo distinguishes between builds and releases ? And How to treat each build as release candidate but whether released or not remains in Manual control, with this will it be possible to list all issues fixed till current build from previous release ?Idea is to have Continuos Integrations with Continuos delivery (as function of major releases).
why do I get "No resource was found for hudson.model.Messages" when importing .jenkins into Bamboo?
Asked by David Zayas:

while importing a .zip of jenkins home directory, (.jenkins), I get an error during import that reads: No resource was found for hudson.model.Messages "


Answers:
author: Ayellet
body: me too


author: Jonathan Paul
body: Same, bump


author: Peter Novotnak
body: bump


author: fmorenosrc
body: me too.


author: matan banin
body: me too. any solution?


author: Vinit Jain
body: i'm running in to same issue. Any workarounds?


Tags: jenkins
Problem with Bamboo script task hanging indefinitely at "exit 0"
Asked by Andrew Stiles:

I have a "script" task that completes successfully, but Bamboo doesn't seem to recognize that it's complete. The task itself is an inline script that does some simple setup (creates directories and symlinks) and then as the last line it executes another script with \`/bin/sh -x build.sh\`. This script runs to completion, with the last line being \`exit 0\` to ensure a successful exit code. In the Bamboo job log, I see the last line of the log is \`+ exit 0\` indicating it successfully reaches that point, but the Bamboo job never moves on from there to the final tasks of the job.  

The agent is running on OS X. If I monitor the agent running the job with \`ps\` to check on the execution of the task, I see the temporary script created by Bamboo as well as the \`build.sh\` script running until they complete, then the processes disappear as expected. Bamboo itself doesn't seem to recognize that it's done, though.  

The \`build.sh\` script does quite a lot of things, and it's possible that it's trampling on the bamboo agent process somehow. What might cause Bamboo to behave this way? What can I do to troubleshoot this?


Answers:
author: Andrew Stiles
body: Turns out this was caused by some dangling child processes that weren't getting terminated properly. Finding these and ensuring they were killed by the end of the script resolved the issue.

comments: author: Isaac Stennett
body: Andrew could you clarify what you mean by "dangling child processes"? I'm experiencing this same issue, but all I do in my script is start up a web server. I don't know what child processes I would be needing to kill. Thanks!


Tags: cloud
Bamboo Upgrade Failed: "Failed to run pre-bootstrap upgrade tasks."
Asked by Todd Ellner:

Level: Fatal Type: Bootstrap

I had created a test server running Bamboo 5.6.0 on the embedded database, data in /opt/atlassian/bamboo-home, with a plan that had run successfully. I exported and shut down the server.

I created an upgraded instance Bamboo 5.7.2, embedded database, data in /opt/atlassian/bamboo-5.7.2 and imported my export. When I restarted the server I got the error.

Here is a link to pastebin with representative entries from the catalina.out log

<http://pastebin.com/AexXgcg4>


Answers:
author: Marcin Gardias
body: Please contact our support: http://support.atlassian.com


Tags: bootstrap

error

upgrade
IP whitelisting - UI works but API fails
Asked by Vishal Paike:

Hi All,

I am facing very weird issue with respect to IP whitelisting.

I have whitelisted my ip bitbucket cloud settings(workspace -\> access control). Now, my bitbucket UI works fine however when I try to fetch any data with bitbucket cloud apis like - *[https://api.bitbucket.org/2.0/repositories/{workspace}/{repo}/pullrequests?state=DECLINED\&pagelen=2](https://api.bitbucket.org/2.0/repositories/{workspace}/{repo}/pullrequests?state=DECLINED&pagelen=2)* - API responds - {"type": "error", "error": {"message": "To access this repository, an admin must whitelist your IP."}}

Is this a known bug? Or am I missing something?


Answers:
author: Theodora Boudale
body: Hi Vishal,

* Are you running these API calls from the same machine where you access Bitbucket from browser?
* Are you running the API calls from terminal with curl, or are you using an API client?

If you are using curl to run API calls from a terminal application, I would suggest running

```
curl ipinfo.io
```

and seeing what IP this command returns.

If you're using an API client, you can run a GET request to ipinfo.io and check what IP this call returns.

Is the IP you get the same one you whitelisted and do you see it listed in

<https://bitbucket.org/{your-workspace-id}/workspace/settings/access-controls>

(replace {your-workspace-id} with the id of your workspace)

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
BitBucket API repository Pipelines search query
Asked by Kelly:

Im following the documentation available here on how to pull down pipeline information for a specific repository.

<https://developer.atlassian.com/cloud/bitbucket/rest/api-group-pipelines/#api-repositories-workspace-repo-slug-pipelines-get>

I cant seem to work out if using a search query similar to that documented here is possible <https://developer.atlassian.com/cloud/bitbucket/rest/intro/#filtering>

Id like to only pull back pipelines for master, or ones which title contains a specific string.. is this possible?


Answers:
author: Theodora Boudale
body: Hi Kelly and welcome to the community.

I'm afraid that the Pipelines API endpoint doesn't support filtering at the moment.

We have a feature request about this in our issue tracker:

* <https://jira.atlassian.com/browse/BCLOUD-14000>

I would suggest adding your vote to that feature request (by selecting the **Vote for this issue** link) as the number of votes helps the development team and product managers better understand the demand for new features. You are more than welcome to leave any feedback, and you can also add yourself as a watcher (by selecting the **Start watching this issue** link) if you'd like to get notified via email on updates.

Implementation of new features is done as per our policy [here](https://confluence.atlassian.com/support/implementation-of-new-features-policy-201294576.html) and any updates will be posted in the feature request.

In the meantime, you can retrieve all pipelines via our API and then use another tool that filters JSON data, e.g. jq, in order to filter the results.

Kind regards,  
Theodora

comments: author: Kelly
body: Thanks for the reply, for the time being ill just keep making calls to the pipeline api until i've found the one i'm looking for by comparing against the target info in the response object.

Also sorting by date when I made the call...

```
/2.0/repositories/{workspace}/{repo_slug}/pipelines/?sort=-created_on
```


Tags: bitbucket-cloud

cloud
Can't use Bitbucket Pages after username change
Asked by RenatoLL:

Hello friends, how are you?  

I was using X user name, my repository name was C.bitbucket.io  

Now i changed my username to Y, created another repository called Y.bitbucket.io

And not it doesn't work anymore:  
Repository not found  

What should i do?  
Any tip?  

<br />


Answers:
author: RenatoLL
body: Pleease, where should i ask support, so they can refresh my currently page username?


author: RenatoLL
body: I'm probably stuck with my first username

I created a new repository with old name setup, and its working(with this old username/repository name)


Tags: bitbucket-cloud

cloud
Bitbucket WIndows service user change
Asked by AP:

Hello all. I've look around the community posts and found a few with similar issues and nothing that was responded to seemed to work.

We have an issue with a licensed bitbucket server that runs as a normal user account on a server. However, due to many reasons we need to change this. When this is changed, all of the Repositories go away. Even though BITBUCKET_HOME is the same path for both accounts and have the same permissions on the folder.   

Any ideas?


Answers:
author: AP
body: So basically whatever user you setup your repos under, you're stuck using it, even if the users leaves. Which is a security risk to most organizations.


Tags: account

bitbucket-server

server

user

windows
Is there a way to resolve merge conflicts directly in BitBucket?
Asked by Eric Paul:

Microsoft provides a free extension that can be used to resolve merge conflicts online in AzureDevops. Does any such functionality exist in BitBucket?  

![MergeSummary.png](/t5/image/serverpage/image-id/197116i80ECE4E48CBDAA6E/image-size/large?v=v2&px=999 "MergeSummary.png")


Answers:
author: Theodora Boudale
body: Hi [@Eric Paul](/t5/user/viewprofilepage/user-id/4921445),

I'm afraid that this is not possible in Bitbucket Cloud at the moment.

We have a feature request about this in our issue tracker:

* <https://jira.atlassian.com/browse/BCLOUD-19568>

If you'd be interested in that feature, I would suggest adding your vote to that feature request (by selecting the **Vote for this issue** link) as the number of votes helps the development team and product managers better understand the demand for new features.

You are more than welcome to leave any feedback, and you can also add yourself as a watcher (by selecting the **Start watching this issue** link) if you'd like to get notified via email on updates.

Implementation of new features is done as per our policy [here](https://confluence.atlassian.com/support/implementation-of-new-features-policy-201294576.html) and any updates will be posted in the feature request.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Not receiving bitbucket invitation emails
Asked by ????? ???????:

Hello,

I'm trying to add new member to user group. This member's account has been deleted from repository access for a while via disabling atlassian account at all (it had had jira and confluence access too)

Also we have deleted accesses for this acccout for our organisaton workspace/repositories in Bitbucket.

Things changes and right now we recover email access and enable atlassian account for this member.

But when i'm sending invintation email to repository or invintation to company workspace - emails haven't recieved. Spam folder is clear. I'm have been waiting for a day to receive.

Could it be some enabled restrictions for our member account? Where is looking for them?

If some additional information about member account is needed - you could use my own account as example to this issue.

Thank you.


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

It is possible that this user's email address is in a suppression list. This occurs when we attempt to send an email and we receive a hard bounce response from the recipient's mail server, indicating that the email account doesn't exist or some other permanent failure.

In this case, the email is placed in a suppression list, as we no longer try to resend to non-existing emails.

We need to know the user's email address in order to check if that's the case, so I would suggest creating a support ticket (instead of sharing the email here publicly).

You can create a ticket via <https://support.atlassian.com/contact/#/>, in "What can we help you with?" select "Technical issues and bugs" and then Bitbucket Cloud as product.

Please feel free to let me know if you have any questions.

Kind regards,  
Theodora

comments: author: ????? ???????
body: Hello Theodora!

Thank you for navigating me about probable cause of the issue and point of contact with the support!

I hope it's really supression list related problem and support engeneers fix it for me.

Best regards, Denis.


Tags: bitbucket-cloud

cloud
How to know the JIRA issues included in a build on bitbucket
Asked by Micha?l Lemieux:

Hi community, this is my first question posted!

As product manager, I would like to see the list of JIRA issues/bugs that were included in a deployment pipeline build on bitbucket, such that I can track the progress to production and identify whether an issue/bug is included in a specific build.

So, it is currently possible for me to track down the issues that were included in a specific build, but my journey to do this is really time consuming. What I would expect is some kind of report that would include all the JIRA issues that are included in a specific build number. That way, I do not have to track down pull requests, commits and so on to identify all the issues included.

I'm using Team-managed project and bitbucket cloud.

Thanks!


Answers:
author: Theodora Boudale
body: Hi Micha?l!

If you have an integration with Jira Cloud, and if you use Pipelines deployments (**deployment** keyword in the *bitbucket-pipelines.yml* file), this should be possible.

You can

1. Open the repo on Bitbucket website
2. Select **Deployments** from the sidebar on the left
3. Select the deployment environment you are interested in. On the right side of the page, you will see a list of all builds that have deployed to that environment.
4. Select the build you are interested in, and you will see a new window that has the tabs **Commits** , **Diff** , **Issues** . The **Issues** tab will show you all associated Jira issues.

There is more info on how to set this up (in case you haven't already) in the following link:

* <https://support.atlassian.com/bitbucket-cloud/docs/set-up-and-monitor-deployments/>

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
How to tell if a git connection (for Push/Pull) was successful/failed on BitBucket Server?
Asked by David Hubbard:

We have a third party product which we have configured to use BitBucket (https//bitbucket.org) for git.

This has been working successfully for a while, including move to App Passwords.

However that product is now showing "Repository failure" messages when trying to commit through it.

I would like to determine if that product is actually making a connection into BitBucket and if so, why that connection failed.

So is there any audit logging of connections (for push/pull) available in the Cloud Bitbucket environment to allow me to check this?


Answers:
author: Theodora Boudale
body: Hi David,

I'm afraid that we don't have these kinds of events available in the audit log.

My suggestion would be to check if there is any logging in the third-party product you use, where you can see what kind of operation is performed and what is the output of the command that is failing.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
How do you make a feature request for bitbucket?
Asked by Eric Paul:

There does not appear to be a way to make feature requests for bitbucket. It says to use the feedback in the app. No idea where to find that option in BitBucket. Does it exist? Next option said to contact support if you are a premium customer (which I am). That option just leads me to "Ask the community".

![2022-05-12 09_52_55-Create Issue - Create and track feature requests for Atlassian products..png](https://community.atlassian.com/t5/image/serverpage/image-id/197068iE71BC5FCC215F7BE/image-size/large?v=v2&px=999 "2022-05-12 09_52_55-Create Issue - Create and track feature requests for Atlassian products..png")


Answers:
author: Nic Brough -Adaptavist-
body: This will loop you back to the Community if you have a free, starter or community licence for Bitbucket. Is that the case for you?

comments: author: Eric Paul
body: I guess you missed this part of my message:

<br />

\`if you are a premium customer (which I am)\`  

So it looks like there is something funky going on with my account. I will get with our administrator and work it out. Then I should be able to use the normal channels for feature requests.


Tags: bitbucket-cloud

cloud

feature-request
Git gc for remote repo
Asked by Daniel Torres:

I [@Theodora Boudale](/t5/user/viewprofilepage/user-id/818086)

I hope you are well.

I ran git gc for my repo <https://danielSSantosTorres@bitbucket.org/danielssantostorres/devops-21-22-atb-1211757.git> , and returns the size of 121.66 MiB.

Despite that, Bitbucket warns that repository size is 2.68gb / 4gb.

Can you check and update the repo's size on Bitbucket?

Many thanks.

Daniel Torres


Answers:
author: Theodora Boudale
body: Hi Daniel,

Of course! I ran git gc for your remote repo and its size is 122.6 MB now.

Please feel free to let me know if you can see the updated size and if you need anything further.

Just a heads up, I moved your post to a new question. We encourage users to create a new question when they need help with an issue because it can become difficult to address multiple users' issues in a single question, and also because a new question will be visible to the rest of the Atlassian team as well.

Kind regards,  
Theodora
Is there a way to change the default .gitignore file?
Asked by Eric Paul:

The default .gitignore does not work for .net projects. Is there a way to change the default file so it creates something more appropriate?

We're switching from Azure to the Atlassian stack and I have to say it feels like Microsoft is a second or third class citizen. This is a small thing because I know I can always add my own but when your used to being able to pick from a list of .gitignore files (based on programming language) it's a downgrade when you don't have that feature.


Answers:
author: Craig Nodwell
body: Hi [@Eric Paul](/t5/user/viewprofilepage/user-id/4921445) welcome to the community.

I'm trying to understand your requirement a bit better.  
The .gitignore file is git specific and not server specific and lives at the root of the repository, unless someone has intentionally created a Global Git Ignore Rule... you should be able to edit it and commit it back to the repo. You can also define .gitignore rules for individual directories within the repo.  

Have a look at this page.

[.gitignore](https://www.atlassian.com/git/tutorials/saving-changes/gitignore#shared)

comments: author: Eric Paul
body: Thanks for your reply.

When I create a project in bitbucket there is an option to add a .gitignore file.  
I want that file to be one that is appropriate to a .Net project--not python or whatever the current default is.


author: Eric Paul
body: ![AddingGitignoreInAzureDevops.JPG](https://community.atlassian.com/t5/image/serverpage/image-id/197060i388FB1778C78ECA0/image-size/large?v=v2&px=999 "AddingGitignoreInAzureDevops.JPG")

This is what it looks like when you add a .gitignore file to a project in AzureDevops. It's "Language/Platform specific"


author: Craig Nodwell
body: Ya, I went looking to see for you ... There's nothing but an old feature request even in the developer site. Sorry man. Maybe vote up on the request or submit a new one it was really old.  
I hate giving folks these kind of answers ... ugghhh  
I wonder if you set the .gitignore globally with the settings you want included if it would modify the default....


author: Eric Paul
body: Yeah a global gitignore will probably work, but now I'm going to have to write up a set of instructions for all of the devs (setting the global gitignore file from visual studio is not supported) before the instruction was just "Select the most appropriate .gitignore file when you create the project". Now it will be a procedure to set it up.  

Given that Visual Studio is one of the most popular IDE's I'm just surprised not to see more/better integration. Guess I'm a bit spoiled by the tools provided by Azure Devops and AWS. Atlassian should go find the person who wrote the Visual Studio extension for BitBucket and just hire them.


Tags: bitbucket-cloud

cloud

git
Can we create a Sandbox to the Bitbucket Cloud?
Asked by Vishnuvardhan Reddy:

Hi,

We already using Bitbucket Server, recently we got the subscription for the Bitbucket Cloud.

So, we are planning to migrate Bitbucket Server to cloud. We are afraid that we may loose some data while migrating mentioned in the Atlassian documentation. Because we are thinking that to test migrating data to**Bitbucket sandbox** first and will later start migrating to production Bitbucket cloud if the migration of sandbox is fine.

So, here our concern is, is this possible? We are expecting some help from you.

Regards,

Vishnu.


Answers:
author: Theodora Boudale
body: Hi Vishnu,

In Bitbucket Cloud repositories belong to a certain [workspace](https://support.atlassian.com/bitbucket-cloud/docs/create-and-manage-workspaces-in-bitbucket-cloud/).

We don't have such a thing as a sandbox, but you can create a workspace for testing purposes, and migrate your repositories to this test workspace first.

After you inspect the data and if everything looks ok, you can perform your migration to the workspace that you are going to use as a production one. You can delete the test workspace when you no longer need it.

In case you are not aware of it already, you can use the following plugin to do the migration:

[https://marketplace.atlassian.com/apps/1226610/bitbucket-cloud-migration-assistant?tab=overview\&hosting=server](https://marketplace.atlassian.com/apps/1226610/bitbucket-cloud-migration-assistant?tab=overview&hosting=server)

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud