youngmon/atlassian-qna huggingface dataset:
Where is the server.xml file located?
Asked by James K.:

I continue to see references to the server.xml file, but when I search on my system, there isn't one. When does the server.xml file get created, and where does this server.xml file reside? I am having issues connecting to bitbucket thru my localhost:7990 connection since I've generated the self signed certs. I followed the instructions here, that were given to me by my VDI tech.

[How to Generate a Self-Signed SSL Certificate on Linux - RoseHosting](https://www.rosehosting.com/blog/how-to-generate-a-self-signed-ssl-certificate-on-linux)

Has anyone experienced the same issue, and if so, how did you navigate thru the solution?


Answers:
author: Daniel Eads
body: Hi [@James K.](/t5/user/viewprofilepage/user-id/4313770) , welcome to the Community!

Bitbucket Server uses a file called **bitbucket.properties** since version 5.0 to host the types of things that were previously in server.xml, or would be in server.xml for Jira or Confluence. The default location for this file is *\<your-bitbucket's-home-directory\>/shared*, which is an upgrade-safe location that won't be wiped away during a Bitbucket application upgrade.

Are you looking to put your Bitbucket Server instance behind a reverse proxy, or serve HTTPS directly from the application? Here is the detailed documentation for enabling HTTPS:

* [Secure Bitbucket with Tomcat using SSL](https://confluence.atlassian.com/bitbucketserver/secure-bitbucket-with-tomcat-using-ssl-776640127.html) (no reverse proxy)
* [Secure Bitbucket behind nginx using SSL](https://confluence.atlassian.com/bitbucketserver/secure-bitbucket-behind-nginx-using-ssl-776640112.html)
* [Secure Bitbucket with Apache using SSL](https://confluence.atlassian.com/bitbucketserver/secure-bitbucket-with-apache-using-ssl-776640117.html)
* [Secure Bitbucket behind HAProxy using SSL](https://confluence.atlassian.com/bitbucketserver/secure-bitbucket-behind-haproxy-using-ssl-779303273.html)

Happy to help if you're stuck with any of the particular implementations after locating your bitbucket.properties file and working through the specific document for where you're going to terminate the SSL connection. Just give a shout!

Cheers,  
Daniel


Tags: bitbucket-server

migration-customer-care

server
Bitbucket pipeline don't trigger
Asked by duy.huynh:

I don't know how but when I active "*Require users to enable two-step verification"* in my workspace setting, bitbucket pipeline don't trigger run pipeline.


Answers:
author: Justin Thomas
body: [@duy.huynh](/t5/user/viewprofilepage/user-id/4092667) This shouldn't be happening, can you please raise a [support ticket](https://support.atlassian.com/contact/) so we can investigate this further?


Tags: bitbucket-pipelines

cloud
Sourcetree won't let me connect to my github account
Asked by Stephen V:

This is a fresh install of Sourcetree v3.4.4 on a brand new machine. I setup bitbucket access already and have connected to my bitbucket repos through it and cloned a repo down. I attempted to add a hosting account for Github using Basic authentication and HTTPS preferred protocol with my Github username and password, copy and pasted from my password manager that I verified by logging into github.com and all I get is an "Authentication failed" message "Failed to check login for user \[\<username here\>\] Requires authentication. I attempted clearing out windows credentials manager records for github and still had the same problem. Seems to be a bug with Sourcetree? Is there a workaround?


Answers:
author: jboada
body: Hi Stephen,

I am going thru the same issue right now, I have not found a solution yet.

I just found this post "Can't link SourceTree to GitHub account" ( <https://community.atlassian.com/t5/Sourcetree-questions/Can-t-link-SourceTree-to-GitHub-account/qaq-p/1570763> ).

Among its comments, it refers to a GitHub post, <https://github.blog/2020-12-15-token-authentication-requirements-for-git-operations/> .

I have not tested any solution that the post mentions yet.

If you try any of the solutions, please let me know.

Best Regards,

JB


Tags: github

sourcetree
Why excluding .envi is not working?
Asked by Klein-Hans Escuton:

Here's how I do it. The main project is actually native PHP and has a Laravel project inside it.

![Untitled.png](https://community.atlassian.com/t5/image/serverpage/image-id/137622i855D8B7B8569C02F/image-size/large?v=v2&px=999 "Untitled.png")


Answers:
author: Halyna Berezovska
body: [@Klein-Hans Escuton](/t5/user/viewprofilepage/user-id/4337581) is smpp-laravel is right pattern?

--exclude accept a patten wildcard, that means, you use:

--exclude=\*.envi or --exclude=smpp-laravel/\*.envi.

Regards, Galyna


Tags: bitbucket-cloud

bitbucket-pipelines

rsync
Handle multi-subscriptions in pipe azure-web-apps-containers-deploy
Asked by R?mi Mercier:

I'm trying to use azure-web-apps-containers-deploy (<https://bitbucket.org/microsoft/azure-web-apps-containers-deploy/src/master/>) in my pipeline with a service principal.

The problem is that my service principal has access to several subscriptions and there is no option in the pipe to set the subscription to use (by running az account set -s "My Working Subscription").

Is there a workaround? or is there a possibility that this feature will added to the pipe?


Answers:
author: Halyna Berezovska
body: [@R?mi Mercier](/t5/user/viewprofilepage/user-id/4336205) we have released a new version 1.1.0.

Use

```
pipe: atlassian/azure-web-apps-containers-deploy:1.1.0
  variables:
    AZURE_APP_ID: $AZURE_APP_ID
    AZURE_PASSWORD: $AZURE_PASSWORD
    AZURE_TENANT_ID: $AZURE_TENANT_ID
    AZURE_RESOURCE_GROUP: 'your-group'
    AZURE_APP_NAME: 'your-app'
    DOCKER_CUSTOM_IMAGE_NAME: '...'
    ...
    AZURE_SUBSCRIPTION: 'Azure subscription name or ID'
```

Looking forward to seeing your feedback.

If this does not work for you, we'll reproduce and investigate your case

Regards, Galyna

comments: author: R?mi Mercier
body: Oh nice!

I'm back to you when I will have could try it on my side.

Thanks :)


author: Oleksandr Kyrdan
body: Hi [@R?mi Mercier](/t5/user/viewprofilepage/user-id/4336205) ,

Thank you for your question!

We'll investigate the feature and notify you!

Cheers,  
Oleksandr Kyrdan

comments: author: ishetnogferre
body: Hi [@Oleksandr Kyrdan](/t5/user/viewprofilepage/user-id/2885705) can we have the AZURE_SUBSCRIPTION on the [Azure Web Apps Deploy](https://bitbucket.org/atlassian/azure-web-apps-deploy/src/master/README.md) as well?

(Added [here](https://bitbucket.org/atlassian/azure-web-apps-containers-deploy/commits/a4e34ba8006ec232fcb85a66f46fa4ec643de0b5))


Tags: application

azure

bitbucket-pipelines

cloud
how to cherry pick commit id in bitbucket for pull request
Asked by naresh2389:

HI All,

I have DEV,SIT,UAT branches and now want to move specific story from DEV to SIT i.e specific commit to SIT using pull request or cherry pick option in front end?

Now pull request is taking full difference code from source branch.


Answers:
author: Tyler T
body: Cherry picking is not supported in the UI but it is easy to accomplish on the command line or using a tool like SourceTree.

You could do something roughly like this:

```
git checkout DEV
git log

# copy the commit hash

git checkout SIT
git cherry-pick <commit_hash_from_DEV>

# now that commit from DEV is in SIT (assuming there are no conflicts)
```

Here is some additional documentation: <https://www.atlassian.com/git/tutorials/cherry-pick>


author: naresh2389
body: [Tyler T -](https://community.atlassian.com/t5/user/viewprofilepage/user-id/444655)Is there any way to create pull request with specific commits rather than full changes

comments: author: Tyler T
body: Certainly. In that case you'd want to create a feature branch off the main branch and cherry-pick the commits you'd like (using the command line or SourceTree). Then open a pull request against the main branch.


Tags: atl-orange

bitbucket-cloud

cloud

git
is it possible to run a rebase in a scriptrunner pre/post hook?
Asked by Omar Morales:

Hello All,

I was wondering if it were possible to run a custom rebase as part of a scriptrunner pre/post hook.

An example of what I am trying to accomplish.

If there are 4 commits being pushed, I want to run a rebase so that the end product is a single commit that contains all changes and the revisions of the other 3 are deleted so that they no longer exist in git's history.

I already know the git command that I would have to run for the actual rebase itself. I just need to know if it's possible to make all pull requests go through that rebase before being merged. Either via scriptrunner or some other method. The rebase would have to be run at any point between the user pushing up their changes and the pull request for those changes being merged back into master.

Any and all help is appreciated!

Thanks!


Answers:
author: Robert Giddings [Adaptavist]
body: Hi [@Omar Morales](/t5/user/viewprofilepage/user-id/4231786) ,

The ScriptRunner for Bitbucket team would advise against automating this functionality in a pre/post hook.

However, we do have a custom merge-check Script on our Library which can be used to enforce squashed commits before a Pull Request is allowed to be merged into the target branch.

This merge-check would then advise the user attempting the merge to squash their commits, which they would then need to do manually.

The custom merge-check can be found here: <https://library.adaptavist.com/entity/enforce-squashed-commits>

If however, you do still want to automate squashing on Pull Request merge, an alternative would be to use Bitbucket's built-in merge strategies, as documented here: <https://confluence.atlassian.com/bitbucketserver/pull-request-merge-strategies-844499235.html>

Using Bitbucket's merge strategies, you can select to have all commits squashed on merge.

Kind regards,

Robert Giddings,

Product Manager, ScriptRunner for Bitbucket


Tags: adaptavist

bitbucket-server

git

scriptrunner

server
How do you back up your bitbucket repositories?
Asked by Daniel Heitz:

Is there any open source tool you can recommend? Do you back it all up manually?

I'm the founder of [BackHub](https://www.backhub.co) and we have been successfully running a GitHub backup service for the past seven years. I'm wondering if such a service would be useful to bitbucket users as well. Please let me know your thoughts.


Answers:
author: Aron Gombas
body: Not on Cloud, but with our internal Bitbucket Server instance, we use a custom hook to push all accepted changes from Bitbucket to GitHub. Therefore, the GitHub repositories are the cloud-based backups of our actual repositories.

I'm not sure if a hook like that is available for Bitbucket Cloud (it has been rather limited in the past in this sense), but it may worth a check.

comments: author: Daniel Heitz
body: This is a great idea, then you can just continue working in case bitbucket isn't available. Wondering about the metadata, such as pull requests and issues, are these important to you and worth backing up?


author: Aron Gombas _Midori_
body: Pull requests could be useful, but I don't think you can replicate issue with great precision, because Jira issues (used by Bitbucket) are much richer than GitHub issues.


Tags: bitbucket-cloud

cloud
How to auto-update existing registered task definition with specific tags?
Asked by Tarek Abdel Sater:

Suppose I already have a task definition registered. The task-definition source file is not in the same repository as my code. I want to re-use the registered task definition and only update the container image tag.

How do I do this?

If the option is not supported, I suggest something like this:

```
IMAGE_TAGS: "<container_name>:<tag_name> <container_name>:<tag_name>"
```

wherein each tuple sets the tag for a specific container, incase you have a multi-container task definition.


Answers:
author: Halyna Berezovska
body: [@Tarek Abdel Sater](/t5/user/viewprofilepage/user-id/4334164)you need to use aws cli for that, to update image tag.

If you know some tags that you find your task definition by, use aws cli command describe-task-definition (by family, revision etc.) , describe it, clean up non-acceptable fields , change your image tags.

The new task definition will be registered , because you did change the tags. This how aws ecs works, if you use specific tags. ([Task definition](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_definition_parameters.html) ).

If you use latest, the FORCE_NEW_DEPLOYMENT option, that we support, would help you.

Otherwise you will need to register task definition again, because tags has changed, by executing aws command describing task definition and constructing it again, changing only image tags. Don't forget to remove non-acceptable fields like registeredAt, updatedAt etc.

You can find suitable solution here in the question thread

<https://community.atlassian.com/t5/Bitbucket-Pipelines-questions/Pipeline-failing-Unknown-parameter-in-input-quot-registeredAt/qaq-p/1585076#M4043>

<https://community.atlassian.com/t5/Bitbucket-Pipelines-questions/Pipeline-failing-Unknown-parameter-in-input-quot-registeredAt/qaq-p/1585076#M4064>

However we can think more about supporting it from the box. You also can raise a Suggestion request to component Bitbucket Pipelines - Pipes here <https://jira.atlassian.com/browse/BCLOUD-13452?filter=97052>

or vote for existing ones.

Regards, Galyna

comments: author: Tarek Abdel Sater
body: Hi,

Thank you for the response. I manage the task definition using terraform in a separate repository, so storing \`task-definitions.json\` in the same repo is not acceptable to us, neither is using latest tag and force deploy.

For now, we're a script to fetch the current task definition from AWS and replacing the image tag with jq.

However, I think this pattern is so common that it needs to be implemented directly into the pipe. I will open a suggestion for this.


author: Tarek Abdel Sater
body: The suggestion is here: <https://jira.atlassian.com/browse/BCLOUD-20949>

I think this is a critical feature that should exist in this pipe, I was surprised it didn't.

In fact, there's already a PR for it but it seems to have been abandoned

<https://bitbucket.org/atlassian/aws-ecs-deploy/pull-requests/23>


Tags: aws

bitbucket-pipelines

cloud
Immutable ECR repositories
Asked by Tarek Abdel Sater:

There is an option in ECR to use immutable repositories which is a best practice to use. Pushing an image with an existing tag gives you an error, which is expected.

However, this is not compatible with re-running builds. There should be an option in this pipe to ignore uploading an image if the tag already exists.

The only alternative is to tag the image with a unique tag for each build.


Answers:
author: Oleksandr Kyrdan
body: Hi [@Tarek Abdel Sater](/t5/user/viewprofilepage/user-id/4334164) ,

As we investigated:

to support immutable AWS ECR and re-running builds you could provide build with unique tags by passing TAGS parameter:

```
script:  # build the image  - docker build -t my-docker-image .  # use the pipe to push to AWS ECR  - pipe: atlassian/aws-ecr-push-image:1.3.0    variables:      AWS_ACCESS_KEY_ID: $AWS_ACCESS_KEY_ID      AWS_SECRET_ACCESS_KEY: $AWS_SECRET_ACCESS_KEY      AWS_DEFAULT_REGION: $AWS_DEFAULT_REGION      IMAGE_NAME: my-docker-image      TAGS: '${BITBUCKET_STEP_UUID}-<timestamp>'
```

Or setup your AWS ECR to use mutable tags, so you always have fresh version after re-running a build.  

To help you, we need to understand what is your case, provide us with more details please (your pipelines configuration, main workflow, used parameters) ?

Cheers,  
Oleksandr Kyrdan

comments: author: Tarek Abdel Sater
body: Hi,

We re-evaluated our requirements and concluded that ignoring failure to push to immutable tags is a bad practice.

The solution is, as you said, including a unique tag for each build. However, we ended up going with MUTABLE tags because we don't want to deal with noisy Docker tags.


author: Oleksandr Kyrdan
body: Hi [@Tarek Abdel Sater](/t5/user/viewprofilepage/user-id/4334164)

Thank you for your question!

Good suggestion, we'll investigate this feature for the [aws-ecr-push-image pipe](https://bitbucket.org/atlassian/aws-ecr-push-image) and notify you.

Cheers,  
Oleksandr Kyrdan


Tags: aws

bitbucket-pipelines

cloud
After the login change from google SSO to email, lost my old project/repositories
Asked by Karthik Murugesan:

Dear all,

Previously I was using a google SSO to login to atlassian bitbucket acount and manage my repositories.

But yesterday i have changed to email based login and after the change, I lost my old workspace and all project data. Now I have lot all my Git code along with the repository and I dont have any local backup.

Does anyone know about this issue and please guide me on the solution.


Answers:
author: Theodora Boudale
body: Hi [@Karthik Murugesan](/t5/user/viewprofilepage/user-id/4333705) ,

I see that you opened a support ticket for this issue and the engineer working on your case assisted you with regaining access to your account.

I just wanted to mention here, for any other users who may come across your post with a similar issue: in Bitbucket Cloud, login is possible only with the primary email of the account.

Bitbucket Cloud uses Atlassian accounts (the ones at <https://id.atlassian.com/>) for authentication, and each Bitbucket account is linked with an Atlassian account. The email of that account is the primary one for Bitbucket.

This email is the one that should be used for login to Bitbucket. Logging in with an email that is an alias of a Bitbucket account, will prompt the user to create a new account, as logging in with an alias is not supported. [Email aliases](https://support.atlassian.com/bitbucket-cloud/docs/set-email-aliases/) can be used for Git aliasing only.

If you have accidentally created a new account while attempting to log in with an email alias of a Bitbucket account, you can delete the extra account that was created accidentally, and then log in to your account using its primary email.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Is it possible increase deployment environment beyond 50
Asked by thirukumaranc:

We are in the premium tier for one specific pipeline we need to have deployment environment beyond 50. Can we make a special request to you for increase this ?


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

I'm afraid that it is not possible to increase deployment environments above 50 at the moment.

We've another customer with the same request, and we have created a feature request in our issue tracker:

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

I would suggest that you add your vote in 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.

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

Kind regards,  
Theodora


Tags: bitbucket-cloud

bitbucket-pipelines

cloud
how do I check whether I have admin permission or not?
Asked by proaxia:

I would like to import a file to a newly created space but cannot find import option.

Maybe I do not have a permission to do so. How can I check my permissions?


Answers:
author: Dave Mathijs
body: Hi [@Jola](/t5/user/viewprofilepage/user-id/5178538) welcome to the Atlassian Community!

Would you like to add an attachment (file/image) to a page?

To upload a file you'll need the [**Add Attachments**](https://support.atlassian.com/confluence-cloud/docs/upload-a-file/) space permission. Without this permission, the relevant option in the editing toolbar will not appear.

Please check with the Space Admin if this permission has been granted for you.

comments: author: proaxia
body: hi Dave,

thank you for your quick reply. Yes, I am able to add attachments but I would like to import a content of the file (not a file itself as an attachment). The file is in .PDF and has content with text, pictures etc. It has approx.230 pages and I do not want to do it one by one. Is it a way to do so?


author: Dave Mathijs
body: You cannot import PDF documents directly as pages into Confluence.

You can however convert the PDF document to a Word document and i[mport the Word document](https://support.atlassian.com/confluence-cloud/docs/import-content-into-confluence-cloud/) into Confluence.


author: proaxia
body: OK, I can convert into a Word but I cannot see 'import tab'. Even if I click more actions menu (\*\*\*) that means I do not have proper authorisations, right?


Tags: cloud

confluence-cloud
How do I show custom fields from a Jira Story in Confluence
Asked by Peter Johnson:

I want to be able to add some of the custom fields from a Jira story to a confluence page to give a snapshot of where they are without people having to go in to all the individual Jira tickets. So something like this <https://confluence.atlassian.com/doc/jira-issues-macro-139380.html> but not from issues.

Thanks


Answers:
author: Fabio Racobaldo _Herzum_
body: Hi [@Peter Johnson](/t5/user/viewprofilepage/user-id/3983175) ,

in order to do that you need to use jira-issues-macro and select columns. If you use a specific jira issue link you can select embed to have a full overview of that issue in a confluence page

![Immagine.png](https://community.atlassian.com/t5/image/serverpage/image-id/247604i59FFBDDAA48B5BDA/image-size/large?v=v2&px=999 "Immagine.png")

Hope this helps,

Fabio


Tags: cloud

confluence-cloud

jira
Confiforms Smart Multi-row - Default Value
Asked by Tim Oldendorf:

I have a form with a smart multi-row. Everything works great. Is there a way to set a default value to a field within a smart-multi row? Specifically a field type = dropdown?


Answers:
author: Alex Medved _ConfiForms_
body: Hi

Not really, you cannot set the defaults on a "sub form" fields

Sorry, only for the fields that are in a "current form" you can apply the rules, not on a fields that are in the "connected form"

Alex

comments: author: Tim Oldendorf
body: Bummer! Any plans to include that feature?


author: Alex Medved _ConfiForms_
body: Applying the rules in the sub form's fields while being on the main form?

No, we have no plans to implement that at the moment


Tags: confiforms

confluence-server

server