youngmon/atlassian-qna huggingface dataset:
Login Bitbucket Issues - I cann't login
Asked by jeysong:

Issue Tips:

-------

We couldn't log you in You may run into this issue when you use specific browsers or add-ons that hide the referer header for id.atlassian.com and other Atlassian sites. Check for these and then try logging in again.


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

Your Bitbucket Cloud account was set to inactive, which I believe was the reason for the error you were getting.

I went ahead and reactivated it, could you please try to log in now and let me know if it works?

Kind regards,  
Theodora

comments: author: jeysong
body: It's OK now. Thanks!


author: Theodora Boudale
body: That's good to hear, thank you for the update. Please feel free to reach out if you ever need anything else!


Tags: bitbucket-cloud

cloud
My account just disappeared before my eyes
Asked by Steve White:

I've been using your repositories under my account all the way up to an hour ago (git pushes and pulls from my desktop and AWS) and now that I;ve wrapped up a but project I wanted to log on and update some Jira tasks.

The first time I launched the bitbucket web page all the jira links (like create new item and clicking old work items) just flashed (like a web page was launching but then died) and nothing else.

So then I decided - unwisely, as it turns out, that I should log off and back on. Bam - when I clicked the "login using google email' I now get a page with nothing, No repositories, no Jira, no nothing.

What gives?

Steve White (drstriate@gmail.com)


Answers:
author: Brant Schroeder
body: [@Steve White](/t5/user/viewprofilepage/user-id/5015879) Welcome to the Atlassian community

You should submit support issue to Atlassian here: <https://support.atlassian.com/contact/>

If you are on a free plan let me know and I will escalate it for you since there will not be able to submit a support issue.

comments: author: Steve White
body: I am (or was) on the free plan so I'd appreciate that.

One more hint at what may have happened. I suspect that I set the plan up with my google email and an explicit password but accidentally hit the "log in using your google email" lozenge on your site which looks like it created a new account but with the same email id so my old email/password login is now messed up.


author: Steve White
body: Update: Time to eat some crow: It turns out I was using the wrong one of my email accounts. I just logged into the correct one and all is well. I'll be sure to delete the accidentally created account and promise to get the right email id in the future!

Thanks for your time and attention. Much appreciated. Peace out.


Tags: bitbucket-cloud

cloud
API curl in pipelines to create a pull request returns "Bad request"
Asked by Chris Runo:

I have a custom pipeline which runs on a schedule to run some automated updates and then create a pull request with the branch that was created.

The update commands run, the branch gets created and pushed up, but the curl request I make with the Bitbucket API fails with "Bad request" and no other info.

Here is how I'm obtaining credentials and posting the API request:  

```
BB_TOKEN=$(curl -s -S -f -X POST -u "${AUTOMATED_UPDATES_AUTH}" \
  https://bitbucket.org/site/oauth2/access_token \
  -d grant_type=client_credentials -d scopes="repository" | jq --raw-output '.access_token')
export BB_TOKEN

curl https://api.bitbucket.org/2.0/repositories/"${BITBUCKET_REPO_OWNER}"/"${BITBUCKET_REPO_SLUG}"/pullrequests \
  -S -X POST \
  -H 'Content-Type: application/json' \
  -H "Authorization: Bearer ${BB_TOKEN}" \
  -d '{
      "title": "'"${TITLE}"'"
      "description": "",
      "source": {
        "branch": {
          "name": "'"${NEW_BRANCH}"'"
        }
      },
      "destination": {
        "branch": {
          "name": "f2-main"
        }
      },
      "close_source_branch": true,
      "reviewers": '[]'
    }'
```

Here is the output:  
% Total % Received % Xferd Average Speed Time Time Time Current  
Dload Upload Total Spent Left Speed  
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0  
100 397 100 11 100 386 174 6126 --:--:-- --:--:-- --:--:-- 6301  
Bad Request


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

There is a comma ( , ) missing after the entry for title in the data which I believe may be causing this error. I am referring to the following part of the data:

```
"title": "'"${TITLE}"'"
"description": "",
```

There is no comma after the value of the title, before the "description". Could you please add it, and let me know if the call succeeds then?

Kind regards,  
Theodora


Tags: bitbucket-cloud
Is it possible to resume automaticly pipeline that were paused by Deployment concurrency
Asked by Lawrence Michaux:

Is it possible to resume automaticly pipeline that were paused by Deployment concurrency  

Our deployment process work as follow. when a dev branch is merged in the develop branch, it trigger a sccript that create and push x number of tag (where x is the number of api/services the the merge affects).  

Bitbucket then start x pipeline where those api/servicce are build and deploy to our k8s clusters.  

We decieded to add the environment annotation to our pipeline definition to get a good view of what is being deployed on a timeline. Since we added the annotation, only 1 out of the x pipelines run and the others are paused.   

Sometime it can be up to 6-8 pipelines that are paused and need to be manualy resumed. I have not found a way to allow concurent deployment. Is there a way to auto resume paused pipelines


Answers:
author: Ben
body: Hey Lawrence!

Unfortunately, at present, there is no way to automatically resume paused pipelines.

We have a feature request with our development team to include this in our feature set that you can find below:  
<https://jira.atlassian.com/browse/BCLOUD-16304>

Feel free to "Watch" and "Vote" on the issue to increase visibility, I have internally communicated with our dev team to let them know that you have raised this as well.  
Unfortunately we have no ETA at present so "Watching" will be the best way to keep track of any future updates.

Cheers!

- Ben (Bitbucket Cloud Support)


Tags: bitbucket-cloud

bitbucket-pipelines

cloud

deployment
Issues with Bitbucket Pipeline because the underlying Kata Container does not support 32bit kernel
Asked by JBellero:

Having issues with Pipeline because the underlying Kata Container does not support a 32bit kernel. Would love to see either the kernel supplied to pipeline builder with 32 bit support or else make it a toggle-able feature to select a specific Kata container kernel.

This inhibits building processes that utilize Wine in the environment. Specifically this effects Electron.js applications because they rely on Wine to build an executable.

Related information:

[Gitub Issue 513 -- Kata Containers and 32bit kernels](https://github.com/kata-containers/packaging/issues/513)

[Github Issue 5665 -- Electron Builder and Wine 32bit libraries](https://github.com/electron-userland/electron-builder/issues/5665)


Answers:
author: Ben
body: G'day!

Thank you for raising this to our attention, I have logged a feature request ticket with our developers:  
<https://jira.atlassian.com/browse/BCLOUD-22111>

Feel free to "Watch" the issue to receive updates and "Vote" for the issue to increase visibility of customer demand.

Cheers!

- Ben (Bitbucket Cloud Support)

comments: author: JBellero
body: Thanks Ben!! ?


Tags: bitbucket-cloud

bitbucket-pipelines

cloud
Golang not found in Bitbucket pipeline
Asked by sebastien.amet:

Hello,

I am using a pipeline definition proposed here:

<https://bitbucket.org/atlassian/pipelines-examples-go/src/master/>

But during the pipeline I have

bash: go: command not found

I have debug it:

echo $GOPATH =\> empty  
GOPATH=/c/Go/bin  
echo $GOPATH =\> /c/Go/bin  
go version =\>bash: go: command not found

Is Golang deployed? Shall I deploy it?

Thanks


Answers:
author: sebastien.amet
body: The base image was not correct.

Works much better with  
image: golang :) !!


Tags: bitbucket-cloud

cloud

golang
Maximum number of branch permissions?
Asked by Lance Harbour:

Currently we're using Bitbucket server and there's a maximum of 100 branch permissions. We're planning to migrate to cloud and are wondering if there is still the 100 branch permission limit?


Answers:
author: Mark C
body: Hi [@Lance Harbour](/t5/user/viewprofilepage/user-id/5013642)  

Welcome to the community.  

I just got an update from our team that there is no limitation on the maximum branch permissions you can create in Bitbucket Cloud.  

Hope it helps and let me know if you have further questions.  

Regards,  
Mark C


Tags: bitbucket-cloud

cloud
bitbucket pipeline doesn't work with grep using dollar sign $
Asked by Ky Nguyen:

I'm trying to filter out any empty env variable inside of my .env file like this  
cat .env \| grep "=$" but the pipeline doesn't output any, in fact it even giving out error Does anyone know how to fix this?![Screen Shot 2022-08-24 at 8.39.21 PM.png](/t5/image/serverpage/image-id/212539i2A4A86CA5D7130E9/image-size/large?v=v2&px=999 "Screen Shot 2022-08-24 at 8.39.21 PM.png")


Answers:
author: Ben
body: G'day Ky!

Welcome to the Bitbucket Cloud community :)

I have copied your commands and ran this against my own repository, I was able to produce the same issue with the error in pipelines but only when there was no empty variables.

When I have tried with the following sample text (similar to yours, when there is some empty), it executed in pipelines without issue:

```
DB_HOST=localhost
DB_USER=root
DB_PASS=test123
TEST=
TEST2=123
```

Are you able to perform the grep commands in a local Docker container and see if you encounter the same issue?  
<https://support.atlassian.com/bitbucket-cloud/docs/debug-pipelines-locally-with-docker/>

Cheers!

- Ben (Bitbucket Cloud Support)


Tags: bitbucket-cloud

cloud
How to integrate ci/cd pipeline for .net core mircoreservices
Asked by Developer Mohali:

hi , I have a multiple .net core api project (microservices) in single solution. Now, I just need a help how can I publish all microservices in their specefic ftp address through bitbucket pipeline. I have a multiple ftp's for all .net core projects in single repository


Answers:
author: Mark C
body: Hi [@Developer Mohali](/t5/user/viewprofilepage/user-id/4989833),

Welcome to the community.

To deploy using SFTP/FTP on Bitbucket Cloud Pipelines, you can use the Pipes script below:

* [Deploy your code using FTP](https://bitbucket.org/product/features/pipelines/integrations??&search=FTP&p=atlassian/ftp-deploy)
* [SFTP Deploy](https://bitbucket.org/product/features/pipelines/integrations??search=FTP&p=atlassian/sftp-deploy)

Let me know if you have further questions.

Regards,  
Mark C


Tags: .net

bitbucket-cloud

cloud
trigger-pipeline-5.0.1 fails on variables containing the empty string
Asked by plussier:

Greetings.

It seems that when calling trigger-pipeline-5.0.1 like this:

```
 - pipe: atlassian/trigger-pipeline:5.0.1
variables:
BITBUCKET_USERNAME: ${BBUSER}
BITBUCKET_APP_PASSWORD: ${BB_PIPELINE_APP_PASSWD}
REPOSITORY: 'my_awesome_repo'
REF_TYPE: ${REFTYPE}
REF_NAME: ${REFNAME}
CUSTOM_PIPELINE_NAME: ${CUSTOM_PIPELINE}
```

that the pipe will fail if ${CUSTOM_PIPELINE} is an empty value. Looking at the code in the pipeline the problem seems to be with this section:

```
if custom_pipeline is not None:
    data['target'].update({
        "selector": {
            "type": 'custom',
            "pattern": custom_pipeline
        }
    })
```

The issue is that testing for "is not None" merely checks to make sure the variable 'custom_pipeline' does not exist. It does not take into account the fact that the variable may exist but not contain a useful value

There are lots of reasons for setting the variable despite not actually wanting it to hold a useful value. The major reason in bitbucket pipelines would be to have a trigger which can be used in various ways but executed differently.

In my case, I want to REFNAME to be one of \[ develop, release, master \], but CUSTOM_PIPELINE to be empty when on one of the above branches in order to trigger the corresponding branch in the triggered repo. However, on a feature branch, I want REFNAME to be 'develop' all the time, and trigger a custom pipeline in the remote repository with the name passed in "${CUSTOM_PIPELINE}".

The way the pipeline is written now, I can't set "${CUSTOM_PIPELINE}" to an empty value. The mere presence of the "CUSTOM_PIPELINE_NAME" automatically the triggers the "if custom_pipeline is not None:" code. Which is not what should happen on an empty string value.

It would be better written as:

```
if (not custom_pipeline and not custom_pipeline.isspace() ):
```

Or similar.

Thanks.

--

Paul


Answers:
author: Igor Stoyanov
body: [@plussier](/t5/user/viewprofilepage/user-id/4136091) hi. Thanks for your feedback.  

Try this to cover your case (*The way the pipeline is written now, I can't set "${CUSTOM_PIPELINE}" to an empty value.*)

```
 - pipe: atlassian/trigger-pipeline:5.0.1
   variables:
   ...
   CUSTOM_PIPELINE_NAME: 'null'
```

This will exactly set CUSTOM_PIPELINE_NAME to an empty value (*None in python* )  

Regards, Igor


Tags: bitbucket-cloud

bitbucket-pipelines

bug

cloud

trigger
Bitbucket Pipeline on Windows How to Execute the Script always
Asked by lprada:

Hi, how I have to configure the execution of the script every time windows start and how to keep the execution in background.


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

I assume that you are referring to a Windows Runner?

I'm not sure how to keep the execution in the background, but if you don't mind running it in the foreground you can do the following:

<br />

**1.** Find the location where you unzipped **atlassian-bitbucket-pipelines-runner.zip**, let's say this is

```
C:\Users\<My_User>\Documents\atlassian-bitbucket-pipelines-runner\
```

**2.** Create a .cmd file in your computer, named e.g. **startRunner.cmd** with the following content:

```
cd C:\Users\<My_User>\Documents\atlassian-bitbucket-pipelines-runner\bin & powerShell C:\Users\<My_User>\Documents\atlassian-bitbucket-pipelines-runner\bin\start.ps1 -accountUuid '{.....}' -runnerUuid '{.....}' -OAuthClientId ..... -OAuthClientSecret ..... -workingDirectory '..\temp'
```

where

* **C:\\Users\\\<My_User\>\\Documents** replace with the directory where **atlassian-bitbucket-pipelines-runner** is located
* the arguments given after **C:\\Users\\\<My_User\>\\Documents\\atlassian-bitbucket-pipelines-runner\\bin\\start.ps1** in the content should be copied from the preconfigured runner command you were given when you created the Windows Runner from Bitbucket website

You can then create a scheduled task in Windows to run the file **startRunner.cmd** every time your Windows user or another user logs in to Windows.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
failed to access git server because of cert error
Asked by Cyril Guh:

I am an issue in accessing git. I have error like below :

unable to access 'https://username@git-reporitory/xxxxxxxx.git/': SSL certificate problem: self signed certificate in certificate chain

I know I can fix this by setting GitDisableSSLChecks as true in SourceTree.exe.config.

But is there an more politically correct way for solve the issue ?

Thanks.


Answers:
author: Ana Retamal
body: Hi Cyril, We have documented a similar issue at [Resolving SSL self signed certificate errors](https://confluence.atlassian.com/bitbucketserverkb/resolving-ssl-self-signed-certificate-errors-806029899.html), have you tried that solution already?

If you're still having problems, please provide further information so we can continue helping you:

1. What operation are you performing when are you getting this error?
2. Which version of SourceTree and OS are you using?
3. Do you also get the error when using the command line?
4. Where is the repository hosted?

Best regards,

Ana


Tags: windows
Distribute license to my team
Asked by Manigandan Neelakandan:

I am raising this question based the link <https://confluence.atlassian.com/sourcetreekb/sourcetree-license-for-corporate-usage-388404078.html>

Currently I am using Version 2.1.10.0

I can't able to find the licence file in the specified path as in the link.

May I know what is the way to generate a licence file just by using a nominated general email address and to distribute to my team?

Also can you confirm that Sourcetree is Free for use in corporate too.


Answers:
author: Ana Retamal
body: Hi Manigandan, as you can see at the top of the article you linked, that information is no longer relevant:
> PAGE NO LONGER VALID WITH THE RELEASE OF SOURCETREE FOR MAC OSX 2.2 AND SOURCETREE FOR WINDOWS 1.8

SourceTree no longer uses license keys. Last year, we removed the notion licensing and now the users need to register the product with their Atlassian account. We are tracking direct feedback on this request at [SRCTREE-3593](https://jira.atlassian.com/browse/SRCTREE-3593). Feel free to add your feedback if this is something you'd be interested in.

I can also confirm that SourceTree is free for every kind of user, including corporate organizations :)

Is there anything else I can help you with?

Cheers!

Ana

comments: author: Manigandan Neelakandan
body: Thanks Ana.

Now if I use Source Tree 1.6 (Due to offline option) will it create any issues or is support is available for 1.6 as for the latest versions.

Regards,

Manigandan


author: Ana Retamal
body: Officially, only the latest SourceTree version is supported meaning that we are not issuing bug patches for previous versions, instead we create new maintenance releases.

In our latest [Security Advisory](https://confluence.atlassian.com/sourcetreekb/sourcetree-security-advisory-2017-08-11-933099891.html), we urge our users to update their applications immediately to fix the vulnerabilities mentioned in our article.

If you decide to stay in an older version, keep in mind that you're at your own risk, but if you have any usage questions you'll still be able to post them here and get help from the Community.

Hope that helps!

Ana


author: Manigandan Neelakandan
body: Thanks Ana for your detailed explanation.

Is there any probability for offline source tree in upcoming versions?????


author: Ana Retamal
body: I have no news regarding an offline version of SourceTree coming in the near future. My recommendation is that you watch the ticket[SRCTREE-3593]( https://jira.atlassian.com/browse/SRCTREE-3593) to receive further notifications, as any updates will be published there. You can also leave there your comments or questions. Lastly, remember to add your vote to make that feature more popular :)

Let me know if you have any more questions!

Ana


Tags: windows
How disable updates for sourcetree?
Asked by Nick Galko:

I not planned do update, but obtrusive messages make me angry


Answers:
author: Nick Galko
body: Hi, Maarten.  

Thanks for reply, but i can't find "SourceTreeUpdate.ini" in installation directory.(How i'm understand this file only for 2.x versions and later)  

My Currently version - 1.10.23.1

comments: author: Maarten Cautreels
body: Hi Nick,

You can try the steps described on [Edit SourceTree Configurations Without Opening the Application. (Windows)](https://confluence.atlassian.com/sourcetreekb/edit-sourcetree-configurations-without-opening-the-application-windows-785323524.html)

Best,

Maarten


author: Maarten Cautreels
body: Hi Nick,

I've found a potential solution in a feature request: [SRCTREEWIN-2084](https://jira.atlassian.com/browse/SRCTREEWIN-2084)

"setting the parameter CheckFrequency=-1 in SourceTreeUpdate.ini"

Can you give that a try and let us know if that works?

Best,

Maarten
Can I use Source Tree (Mac) for another system?
Asked by MichalJurnik:

Hi,

I have Mac OS with the newest version of Source Tree and Windows 10, virtualized through Parallels. Can I use Source Tree for Mac to add repository from Win?

I tried it but you can see the result at the picture below.

Thank you for any advice!

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


Answers:
author: MichalJurnik
body: Unfortunately, It still doesn't work. It seems like after **git init** command, I can browse the folder in SourceTree but I can't make a commit.

Here's the error:

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

Thank you both for help!


author: bgannin
body: SourceTree picks up your Terminal's environment (in 2.5+) when running commands - if set the specified variable in your shell's profile it should "just work" if there aren't any other problems for git when translating the paths.

Brian Ganninger  
Senior Mac Developer, SourceTree


author: Ana Retamal
body: Hi Michal, can you make sure that .git is present in that directory? If it's not, you can initialize it as a repository by typing `git init` into your command line.

Let us know if that was your case!

Regards,

Ana


Tags: mac
[Sourcetree]How can i merge brances without commit even though fast-forward is possible?
Asked by j s:

Hello.

I have only one trouble with Sourcetree.

\[My Problem\]

I want to merge branch without commit event though fast-forard(=FF) is possible.

But if I check 'Create a commit even if merge resolved via fast-forward' option, it creates commit.

If i uncheck 'Create a commit even if merge resolved via fast-forward' option, it fast-forward if it's possible.

\[Request\]

Would you seperate 'Create a commit even if merge resolved via fast-forward' option into two options of these:

'fast-forward if fast-forward is possible when merge' and

'create commit when merge'?

\[Benifits\]

If I uncheck the two suggested options, I can do that:

I can get a chance to easily change commit message before create the merged commit even if FF is possible.

Thank you.


Answers:
author: minnsey
body: Hi  

Can you raise an 'Improvement' request at <https://jira.atlassian.com>.

Thanks


Tags: commit

merge

message