youngmon/atlassian-qna huggingface dataset:
Can I change location of temp directory for bamboo agent?
Asked by Shailesh Tiwari:

Hello,

How can I change location of temp directory for bamboo agent? Currently it is defaulting to /tmp, I want to change it into /abc/tmp

Thanks


Answers:
author: Colin Goudie
body: You need to set the java tmp directory attribute

    -Djava.io.tmpdir=/path/to/tmpdir

One windows you could edit the wrapper.conf file and add an additional java parameter  
e.g.  
wrapper.java.addition.x=-Djava.io.tmpdir=C:\\Somewhere  

Oh just saw you are probably running the slave on Linux. :(

comments: author: Matthew Douston
body: I tried doing that and it simply did not work. I'm using cygwin to run the java command to install a bamboo remote agent on Windows Server 2012 R2. I need to have cygwin running for a bamboo plan to succeed a build on this remote agent, because it sticks the git temp drive in /cygdrive/e/remote-agent-1/xml-data/build-dir/DAR-DAR-JOB1/.git/. Weirdly all the other properties are in E:\\remote-agent-1/etc... as they should be.


author: Jesse Cooke
body: Slight correction to the previous answer ('\*.additional', not "\*.addition'). This worked for me in wrapper.conf on linux.

```
wrapper.java.additional.3=-Djava.io.tmpdir=/tmp/bamboo
```
Is the Bamboo application is compatible with Oracle Weblogic 9.X 10.X deploy?
Asked by Roberto Flores:

To try the Continous Deployment whith Oracle Weblogic.


Answers:
author: Jan Swaelens
body: Sure, if you use the Ant task (wldeploy) it is compatible with those versions (also latest 12c release).

<http://docs.oracle.com/cd/E13222_01/wls/docs92/programming/wldeploy.html>


Tags: oracle

weblogic
Rename a project?
Asked by Cameron Ferguson:

Is it just me.. or is there no way to simply rename a project?

Am I going to have to move the plan to a temporary holding area to change the key.. then move it back to the original key with the new name?


Answers:
author: PiotrA
body: Try "configure plan" -\> "plan details" -\> "project name". That way you can rename the project.

comments: author: Cameron Ferguson
body: Ah thanks! Yeah I remember seeing that awhile back now... It just doesn't seem like a very intuitive place to rename a project is in a plan of the project.


author: Ramiro Pointis
body: I don't know how it is in Bamboo, but in Jira unfortunately you can only change the name of the project, the key can't be changed. So I usually create a new project with the correct key and then with the option "change in block" I traspass all the issues to the new name project.
"Fatal: unable to access" & "Could not resolve host: Bitbucket.org"
Asked by ArgeneTanyong:

Hi Everyone,  

Last **Sept 21, 2021 (Tuesday)** , I was able to access bitbucket.org website thru browser and was able to fetch code in our repository thru command terminal.  

Suddenly, on **Sept 23, 2021(Thursday),** I couldn't access Bitbucket thru browser and terminal anymore.  

Here is the error that I encountered on the browser:

**"DNS_PROBE_FINISHED_NXDOMAIN"**   

And here is the error I encountered in the terminal:  

**"Fatal: unable to access" \& "Could not resolve host: Bitbucket.org"**

------------------------------------------------------------------------  

I already tried the following steps to solve the issue:  

1. RELEASING AND RENEWING OF IP ADDRESS  

2. FLUSHING DNS (

```
`dscacheutil -flushcache`
```

)  

<br />

3. CHANGING OF DNS  

**Google**   
8.8.8.8  
8.8.4.4  
2001:4860:4860::8888  
2001:4860:4860::8844

**Cloudfare**   
1.1.1.1  
1.0.0.1  
2606:4700:4700::1111  
2606:4700:4700::1001  

After changing the DNS, I was able to access Bitbucket via browser. However, I still can not clone a repository thru terminal.  

I also tried restarting my computer and router but it didn't work.  

Can anyone please help me resolve this issue?  

Best,  


Answers:
author: Theodora Boudale
body: Hello,

We've had reports of similar issues from some users in your region, and the issues were specific to one ISP in that location. I've checked in our logs the IP that you've been accessing Bitbucket from, and your IP seems to be from the same ISP.

If the issue is still occurring for you, I would suggest contacting your ISP to investigate why bitbucket.org is inaccessible from their end, as they have direct access to the same network as you and are in a much better position to help troubleshoot this.

Kind regards,  
Theodora


Tags: bitbucket-cloud
Capture the audit log in bitbucket
Asked by rhernandez:

How can I obtain the audit record of Bitbucket to be able to use it in my own control of my company


Answers:
author: Caroline R
body: Hi, [@rhernandez](/t5/user/viewprofilepage/user-id/4570873)! Welcome to the community!

Currently, it's not possible to download the audit logs via UI, but we have a script that can be used to scrape the logs from there, converting them to a .txt file. You can open the following link to access the script:

* <https://bitbucket.miwalker.net/projects/BBCS/repos/parse_audit_log/browse>

Note: We are actively reviewing what is logged and have plans to release more in-depth logs and a way to export this natively in an upcoming change in 2022. This can be seen on [our Roadmap](https://www.atlassian.com/roadmap/cloud?selectedProduct=bitbucket).

I hope this helps, but do let me know if you have any questions.

Kind regards,  
Caroline


Tags: bitbucket-cloud

cloud
merge url after pushing changes to a new branch
Asked by soubhikev:

Hello

Earlier when i used to push changes to a new branch using my terminal, it would generate a merge request url and show in my terminal.

But lately it isnt returning any merge url.

FYI, I am using ubuntu 20.04

<br />

Any help is appreciated.


Answers:
author: Theodora Boudale
body: Hi [@soubhikev](/t5/user/viewprofilepage/user-id/4571073) and welcome to the community.

There are a few things to check regarding this issue, I would like to ask a few questions so I can better help you:

**1.** Can you please confirm if the issue concerns a repo hosted in Bitbucket Cloud (<https://bitbucket.org/>)?  
I can see in our system that you have a Bitbucket Cloud account, but your question has the tag 'unknown-hosting-type', so I would first like to confirm if this is indeed about Bitbucket Cloud (instead of Bitbucket Server).

**2.** In case this indeed concerns Bitbucket Cloud, can you check the settings of your account here:

<https://bitbucket.org/account/settings/>

there is an option "**Enable console messages**". Is that option checked for your account? This needs to be enabled in order for the console message to show.

**3.** If the option "Enable console messages" is enabled, the message will show on pushes before the first pull request for that branch is created. If a pull request is already created for that branch, this message will also not show up.

Does the issue occur for new branches that there is no PR for, or does a PR exist for the branch you are pushing?

**4.** Are you using HTTPS or SSH to push to this repo?

If you're using SSH, are you authenticating with an SSH key associated with your Bitbucket account? Or with an SSH key that is associated with a workspace?

Please note that this console message will not show if you are authenticating with an SSH key associated with a workspace instead of your account, as workspaces don't have the option to "Enable console messages".

Kind regards,  
Theodora

comments: author: soubhikev
body: Thanks Theodora,

It was the 4th point that was causing the issue. I have now added the SSH in my account. I can now see the merge url in the console.

Cheers!!

Soubhik


author: Theodora Boudale
body: You are very welcome Soubhik, I'm glad to have helped.

Please feel free to reach out if you ever need anything else!

Kind regards,  
Theodora
How to configure Directory Configuration Summary using automated way
Asked by Rohit Dalvi:

I have been trying to run bitbucket in our data center. I was able to deploy the service and access it using the url. I need to configure the Directory Configuration Summary. Is there a way this can be done using a curl or setting it up during installation on the data center host itself instead of manually putting in and configuring ?  

Also wanted to know how can I configure the license in automated way instead of putting it in the browser when the server is deployed ?


Answers:
author: Rohit Dalvi
body: Figured out the easiest way to do is, to point your old DB to your new server and that way it did load all the previous configuration related to LDAP.


Tags: bitbucket-server

migration-customer-care

server
Not receiving a recovery link: Still can Login using Microsoft.
Asked by Joerie Judong:

Hello,  

While I currently can log in to my Bitbucket/Atlassian account by Microsoft link. But I have forgotten my regular password. I need this password to integrate my Bitbucket repos into my Visual Studio. I have tried to reset my password multiple times by recovery link, but I cannot receive it. Strange, though, I can receive other mails from Atlassian. Can someone help me with this?


Answers:
author: Theodora Boudale
body: Hi [@Joerie Judong](/t5/user/viewprofilepage/user-id/4571220),

I checked in our system and I saw a hard bounce event for your email on 15th September 2021.

Your email provider might have had an outage that day, Atlassian attempted to send an email to your inbox during this time, and as a result, received a hard bounce response from the mail server. Your email was then placed in a suppression list.

I went ahead and removed your email from the suppression list, could you please ty requesting a new password reset email now?

A new one needs to be requested since the previous ones were dropped.

We use different email service providers, which explains why you can receive other Atlassian emails but not the password reset email.

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

Kind regards,  
Theodora

comments: author: Joerie Judong
body: Thank you, I have successfully reset my password.


author: Theodora Boudale
body: Thank you for the update and you are very welcome, please feel free to reach out if you ever need anything else!


Tags: cloud
add new feature on create PR section
Asked by bruce qian:

I've read through the web fragment about the available pluggable locations, however for creating PR, there are no available pluggable place in the main part of create PR section![12.png](https://community.atlassian.com/t5/image/serverpage/image-id/161864iC35D0CE2F208E60E/image-size/large?v=v2&px=999 "12.png")

Let say if I want to add some new feature to formate the description, and put a template inside the input block, or add some checklist in the section to make sure whoever create PR all go through the systematic procedure, is there any way I can modify that part?


Answers:
author: Ulrich Kuhnhardt _IzymesCo_
body: I have quickly searched the [BSERV](https://jira.atlassian.com/browse/BSERV-2560?filter=98687) project, but not found anything. You can create an feature request there.


Tags: app

bitbucket-server
How to cache pipe on a local runner
Asked by Ashley Unitt:

We are using runners as a way of running long tests without using up a lot of build minutes. As part of these runners, we are using pipes to run SSH commands and do SCP deploys.  

We don't have a fast internet connection to the machine that is hosting the runners, so each time we run a new runner it takes a few minutes to download the pipe.  

Is there a way of caching pipes between runs so that we don't have to download the whole pipe each time we have a new pipeline run?


Answers:
author: Theodora Boudale
body: Hi Ashley,

It is possible to use cache with runners, the cache will be uploaded to Atlassian infrastructure though and not locally. However, since the cache is then downloaded compressed, it may still be faster than not using cache (since without using cache, each layer of the pipe's docker image will be downloaded).

If you want to try it, you can add the following in your yml file, to each step that is using these pipes:

```
services:
  - docker
caches:
  - docker
```

The cache for each pipe's docker image will be uploaded after the first successful build that is using each pipe. The next time you use a pipe, the docker image of the pipe will be downloaded from the cache.

If this is also taking a long time, another option would be to use SSH/SCP commands in your script to connect to your server and run commands/deploy, instead of using pipes.

Kind regards,  
Theodora


Tags: bitbucket-cloud

bitbucket-runners

cloud
Non admin people can still deploy the app to production
Asked by Mahdi:

Hi,

I subscribed for the premium version and non-admin people with write access still can deploy the app to production. I used the toggle and enforce the environment to just give the access to admin, but it does not work.

![Screenshot 2021-09-23 122448.png](https://community.atlassian.com/t5/image/serverpage/image-id/161809i20E30A542DCDBF7C/image-size/large?v=v2&px=999 "Screenshot 2021-09-23 122448.png")![Screenshot 2021-09-23 122409.png](https://community.atlassian.com/t5/image/serverpage/image-id/161810i22014BC5CDFCC402/image-size/large?v=v2&px=999 "Screenshot 2021-09-23 122409.png")


Answers:
author: Mahdi
body: It was a bug and the bitbucket team is working on it to fix the issue.


author: Caroline R
body: Hi, [@Mahdi](/t5/user/viewprofilepage/user-id/4570065)!

I saw that you created a ticket with our support related to the same question, so to avoid any possible misunderstandings or miscommunication that may arise from discussing the same matter on two different platforms, let's focus on the ticket instead.

Once the ticket is resolved, feel free to share the resolution here to help other community members that may have the same issue.

Kind regards,  
Caroline


Tags: bitbucket-cloud

bitbucket-pipelines

cloud
Deployment variables not working with multiple staging
Asked by Greg Hinch:

I have a deployment pipeline I'm trying to configure, and within the pipeline I have multiple deployment steps for various parts of the staging environment.

I have configured the repository settings to group these deployments under Staging:

"Staging-step-1"  
"Staging-step-2"

In my pipeline, I've configured some variables at the Repository level, and some additional Deployment specific variables at the Staging level. However, when I try and run the pipeline, the Staging Deployment variables are empty. Here's an example step:

```
 - step:
    name: Build and deploy Lambda image on Staging
    deployment: Staging-step-1
    trigger: manual
    size: 2x
    services:
      - docker
    script:
      - echo "Building container image"
      - docker build --build-arg SHA=$BITBUCKET_COMMIT -t $MY_IMAGE_NAME .
      - pipe: atlassian/aws-ecr-push-image:1.4.2
        variables:
          IMAGE_NAME: ${MY_IMAGE_NAME}
          AWS_DEFAULT_REGION: ${AWS_DEFAULT_REGION}
          AWS_ACCESS_KEY_ID: ${AWS_ACCESS_KEY_ID}
          AWS_SECRET_ACCESS_KEY: ${AWS_SECRET_ACCESS_KEY}
      - pipe: atlassian/aws-lambda-deploy:1.1.0
        variables:
          AWS_ACCESS_KEY_ID: ${AWS_ACCESS_KEY_ID}
          AWS_SECRET_ACCESS_KEY: ${AWS_SECRET_ACCESS_KEY}
          FUNCTION_NAME: ${MY_FUNCTION_NAME}
          COMMAND: 'update'
          IMAGE_URI: '${AWS_ACCOUNT_ID}.dkr.ecr.eu-west-2.amazonaws.com/${MY_IMAGE_NAME}:latest'?
```

In the above, all of the AWS variables are defined for the Repository, and they are set correctly. The rest of the variables (eg. MY_IMAGE_NAME) are set at the Staging Deployment level, and they come in blank.

What am I missing here?


Answers:
author: Theodora Boudale
body: Hi Greg and welcome to the community!

You mention the following:
> I have configured the repository settings to group these deployments under Staging:
>
> "Staging-step-1"  
> "Staging-step-2"

Could you please clarify if you have created additional deployment environments with the names **Staging-step-1** , **Staging-step-2**? If so, are the deployment variables defined for these environments?

For the example you included in your post, the variable MY_IMAGE_NAME will need to be defined for the environment with the name **Staging-step-1**.

Based on your description, it sounds that you may have defined the variable for the environment named **Staging** only, which would explain why the variables are empty. Even if you create multiple staging environments, each of them is separate and cannot read variables set for a different staging environment.

I would suggest double-checking if the rest of the variables are set for the deployment environments where you're using them, e.g. Staging-step-1, Staging-step-2, and if not, define them there. Please feel free to let me know if this helps or if you're still facing issues.

Kind regards,  
Theodora


Tags: bitbucket-pipelines
Working with Reviewer Groups
Asked by ENRIQUE QUINTANO LOPEZ:

I need to define a Repo in which PRs must be validated by one member inside a Reviewing group.

Is it a valid option if I create a Reviewer Group or in that case, all of the members have to approve the PR?


Answers:
author: Ulrich Kuhnhardt _IzymesCo_
body: As far as I know Bitbucket repository reviewer groups are for adding reviewers to new pull requests. Bitbucket repository merge-checks 'minimum approvals' is checked against all reviewers that are on the PR.

If you want group specific approval quota(s) you need to use an app like [Workzone for Bitbucket](https://marketplace.atlassian.com/apps/1211303/workzone-pullrequest-workflow?hosting=datacenter&tab=overview) that allows you to configure individual reviewer groups down to file/module level and then enforce specific group quotas as PR merge-checks preventing a PR being merged if approvals are still missing from some groups.

You can find out more details [in the blog](https://www.izymes.com/workzone-advanced-merge-conditions-with-specific-group-quota/)

Please let me know if that helps, happy to help you further.

Kind regards, Ulrich

[www.izymes.com](http://www.izymes.com?)

comments: author: ENRIQUE QUINTANO LOPEZ
body: Thank you for your help!!

Right now we have a Merge Check for this, so users can include the reviewer they want and it automatically validates that the PR has the OK from a member of the defined group.

Our intention was to replace this script, but with this option we have seen that it is necessary to manually include the group in each PR, so that does not help us.

For the time being, we will continue to work in the same way.


Tags: bitbucket-server

server
How do I install add-on's when not connected to the marketplace?
Asked by Michael Kingsbury:

Hi!

I'm in the process of migrating a very old instance (4.6.2) of bitbucket to a new server and database. I understand that I have to migrate as-is first and then upgrade the instance to a newer, supported version. In order to make this happen I need to complete a snapshot of the entirety of what's in bitbucket and I need the Bitbucket Server Backup Client but cannot figure out how get this installed.

The instruction set I was able to locate on the Atlassian site said I can download the add-on and then upload it into the instance of Bitbucket using the .jar or OBR files. I completed the download and it is a zip file, I uploaded the zip file to the server and extracted the files and there are quite a few jar files and no OBR files that I can locate.

My question is: what is the actual procedure to install add-on's in Bitbucket when not connected to the Atlassian marketplace?


Answers:
author: Brant Schroeder
body: [@Michael Kingsbury](/t5/user/viewprofilepage/user-id/4569121)

Welcome to the Atlassian community

You should be able to download and manually install the app from the marketplace. Just go to the app you want then select versions. Under the versions tab you will see a link on the right for all versions. Click this and you will be taken to the versions page. On the versions page you will be able to hover over the version and their will be a download link. You can take a look here <https://marketplace.atlassian.com/apps/1215474/post-webhooks-for-bitbucket/version-history>


Tags: bitbucket-server

server
Deployments multiple destinations at the same time
Asked by Samantha Adrichem:

Now with the new deployments structure, where i followed this guide:

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

Is it possible to have it deploy to multiple production environments at the same time?

(Basically that it starts 2 machines and starts running both at the same time, instead of waiting on eachother?)


Answers:
author: Samantha Adrichem
body: Ok found my own answer!

<https://support.atlassian.com/bitbucket-cloud/docs/set-up-or-run-parallel-steps/>

So basically their example becomes like this (changed staging1 to production-west, so that it's more clear that you'd want this with multiple production destinations)

```
pipelines:
  default:
    - step:
        name: Deploy to test
        image: aneitayang/aws-cli:1.0
        deployment: testbed
        script:
          - python deploy.py test
    - parallel
      - step:
          name: Deploy to production west
          image: aneitayang/aws-cli:1.0
          deployment: production-west
          trigger: manual
          script:
            - python deploy.py prod
      - step:
          name: Deploy to production east
          image: aneitayang/aws-cli:1.0
          deployment: production-east
          trigger: manual
          script:
            - python deploy.py prod
```


Tags: bitbucket-cloud

bitbucket-pipelines

cloud

deployment
Bitbucket CI not running my script within the step when using a custom docker container
Asked by Tigo Middelkoop:

We have a custom docker container we are using for testing and building, but the script in the first step its not executing, it just tells me that it did the build setup and build teardown but nothing else... I tried so set a workdir (/root) in the container, put most apt commands in one RUN command but to no avail,

What baffles me the most is that all other containers run fine and execute the steps properly like the google sdk alpine image

The parts that failing in our bitbucket-pipelines.yml

```
- step:
    name: Install Dependencies
    script:
      - composer install
    caches:
      - composer
      - vendor
      
- step:
    name: Test
    script:
      - /vendor/bin/phpunit
    caches:
      - composer
      - vendor?
```

This is our current test container setup

```
FROM ubuntu:20.04

WORKDIR /root

# Install PHP & NodeJS
RUN apt update && \
    apt upgrade --yes --no-install-recommends &&\
    apt install \
    software-properties-common \
    curl \
    tzdata \
    --no-install-recommends \
    --yes && \
    curl -fsSL https://deb.nodesource.com/setup_lts.x | bash - && \
    add-apt-repository ppa:ondrej/php && \
    apt install \
    php8.0-bcmath \
    php8.0-common \
    php8.0-cli \
    php8.0-curl \
    php8.0-gd \
    php8.0-imagick \
    php8.0-intl \
    php8.0-mbstring \
    php8.0-mysql \
    php8.0-opcache \
    php8.0-imagick \
    php8.0-readline \
    php8.0-redis \
    php8.0-soap \
    php8.0-xml \
    php8.0-zip \
    nodejs \
    git \
    --no-install-recommends \
    --yes && \
    apt clean && \
    rm -rf /var/lib/apt/lists/*

# Install PHP tools
RUN php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" && \
    php composer-setup.php --install-dir=/usr/local/bin --filename=composer

USER nobody

ENV HOME /root


VOLUME ["/root"]
CMD ["bash"]
```


Answers:
author: Theodora Boudale
body: Hi Tigo and welcome to the community!

I've built a Docker image based on the Dockerfile you posted here and I see the same issue. The issue gets resolved if I remove the following line from the Dockerfile:

```
USER nobody
```

So, this seems to be the culprit, I suspect because Pipelines by default runs as root.

Are you able to use the image if you remove that from the Dockerfile?

Kind regards,  
Theodora

comments: author: Tigo Middelkoop
body: Thank you for your suggestion!

It was indeed the problem...

Thanks!


author: Theodora Boudale
body: You are very welcome, I'm glad to have helped.

Please feel free to reach out if you ever need anything else!


Tags: bitbucket-cloud

cloud