youngmon/atlassian-qna huggingface dataset:
Adding an admin user on a workspace
Asked by Abel Brazal:

Hello all,

Good day!

I would like to ask how to add another user to my workspace with this kind of privilege.

As an admin of this workspace, \<User\> has admin access to all repositories.

I tried creating an admin group and adding a user there but the message above is still not showing on his "View Access".

Thank you,


Answers:
author: Theodora Boudale
body: Hi [@Abel Brazal](/t5/user/viewprofilepage/user-id/4725227) and welcome to the community!

I can see that your workspace has already a user group named **Administrators** . If you want to give this user the same admin permissions (for repos and workspace) as you have, you can remove the extra **Administrator** group you created and add the user to the existing Administrators user group.

In case you prefer to keep two groups with administrator permissions:

**1.** Open this new user group that you created specifically for this user on Bitbucket website  
**2.** Aterwards, select the tab **Repositories**   
**3.** If this tab is empty, select **Add repository** from the top right corner  
**4.** In the new dialog that appears, select one or multiple of the existing repositories so that this user group gains access to them, and **Confirm** .  
Make sure to change the access type in the dialog to **Admin**, if you want this user group to have admin permissions to these repos.

If you have any questions or if there are any issues, please feel free to let me know.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Bitbucket Pipeline step artifact visibility control?
Asked by Tim Apps:

Is there a way to disable or limit the visiblity of Pipeline step artifacts so they cannot be downloaded?

I have a bitbucket-pipelines.yml file which contains the following definition for a custom pipeline:

```
pipelines:  
  custom:
    A custom pipeline:
      - step:
          name: Set environment
          deployment: dev
          script:
            - echo "export env=$env" >> environment_variables.txt
          artifacts:
            - environment_variables.txt
```

When the pipeline step runs it is possible to download the created artifact as follows:  
![Screenshot 2022-01-24 175706.png](/t5/image/serverpage/image-id/179490iE30B6078E1940028/image-size/large?v=v2&px=999 "Screenshot 2022-01-24 175706.png")

Ideally I would like to find a way to not expose the artifacts to an end user - I simply want to share the contents with subsequent steps in a multi-step pipeline.

Is this possibe with current configuration?

Sincerely, Tim


Answers:
author: Caroline R
body: Hi, [@Tim Apps](/t5/user/viewprofilepage/user-id/4334832), thank you for reaching out to Atlassian Community.

Currently, it's not possible to disable or limit the visibility of Pipeline artifacts so they cannot be downloaded. However, we already have a feature request to restrict the download of Pipelines artifacts as you can see here:

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

We suggest that you add your vote there (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,   
Caroline


Tags: bitbucket-cloud

bitbucket-pipelines

cloud
Can't receive invitation email
Asked by william:

Same issue as :  
<https://community.atlassian.com/t5/Bitbucket-questions/I-can-t-receive-invitation-email/qaq-p/1091582>  

My team manager sent 4-5 invitations to me for company repo, but I got none of them. \& all of our company member with same domain should be able to access, but I can't see that. Wondering if the email queue was stuck as described in the above issue.   

Thanks


Answers:
author: Caroline R
body: Hi, [@william](/t5/user/viewprofilepage/user-id/4724976), welcome to the community!

I performed an analysis on our logs and confirmed that your email had a block on the server that prevented emails from being sent to you. This can occur when the system tries to send an email to the user and the account does not exist, is not activated yet, or rejects the email for some internal reason.

In this case, I have removed the block from your email. Could you please ask your manager to **remove** the invitation and send you a new one? They can do this by following the next steps:

In case they have invited you to a **specific repository**:

* Access the workspace \> Go to the repo they have invited you to;

* Access the **Repository Settings** \> **User and group access;**

* Click on the "invitation pending";

* Select the "**Cancel invitation**" option to remove the invitation;

* Add your email again to send a new invitation.

In case they have invited you to a **group on this workspace**:

* Access the workspace \> **Settings**;

* Access **User groups** \> Open the group they have invited you to**;**

* Click on the "invitation pending";

* Select the "Cancel invitation" option to remove the invitation;

* Add your email again to send a new invitation.

Please let me know how it goes and feel free to share any additional questions or concerns regarding this case.

Kind regards,  
Caroline

comments: author: william
body: Thanks Caroline, it works now.


Tags: bitbucket-cloud

cloud
Bitbucket cloud and Jira server Integration
Asked by angelaaa:

Hey guys,

I connected my Jira server to the bitbucket cloud workspace

I want to show my Issues in the bitbucket.

For example: when a pull request is open, I want to see which Jira issues are connected to the branch

Is it possible?

Thanks.


Answers:
author: Norbert C
body: Hi [@angelaaa](/t5/user/viewprofilepage/user-id/4634181)

Thank you for contacting Atlassian Community, I'm Norbert from Bitbucket Cloud Support, it's nice to meet with you!

I would like to ask if Fabio's suggestion has worked for you?

We're looking forward to hear from you.

Have a great day!

Best Regards,  
Norbert  
Atlassian Bitbucket Cloud Support

comments: author: angelaaa
body: Hey,

No, It didn't answer my question.

I followed this guide for the connection itself and it was fine but my question is how to show Jira server issues in the bitbucket itself.

I am not seeing them in the bitbucket.

The only connection is on the Jira side: the branches that are related are shown in the issue.

Can you advise?


author: Norbert C
body: Hi [@angelaaa](/t5/user/viewprofilepage/user-id/4634181)

Thank you for your reply and for your explanation.

Unfortunately this type of integration doesn't work between Bitbucket Cloud and JIRA Server. In case you connect a JIRA Server with Bitbucket Cloud, you can see some information related to Bitbucket Cloud on JIRA Server, but unfortunately you don't really see any additional information from Bitbucket Cloud related to JIRA Server tickets.

Best Regards,  
Norbert  
Atlassian Bitbucket Cloud Support


author: angelaaa
body: Thanks, [@Norbert C](/t5/user/viewprofilepage/user-id/1190200)!

Do you know if there is a work plan for this issue in the future?


author: Fabio Racobaldo _Herzum_
body: Hi [@angelaaa](/t5/user/viewprofilepage/user-id/4634181) ,

here a complete step by step guide that could help you <https://support.atlassian.com/bitbucket-cloud/docs/connect-bitbucket-cloud-to-jira-software-server/>

Hope this helps,

Fabio


Tags: app

bitbucket-cloud

cloud

jira

jira-server
Is it possible to combine deployment and variables in a custom pipeline?
Asked by Matthias Maier:

Hi,  

I would like to combine "deployment: Dev" or "deployment: Test" together with variables for my custom pipeline.

The purpose is that I want to trigger the deployment of a specific release version either to our Dev environment or Test environment.

Therefore I need a variable "releaseVersion" and also the ability to define different environments by using the "deployment: Dev" or "deployment: Test".  

In fact I would like to combine:  
<https://support.atlassian.com/bitbucket-cloud/docs/configure-bitbucket-pipelinesyml/#deployment>  
and  
<https://support.atlassian.com/bitbucket-cloud/docs/configure-bitbucket-pipelinesyml/#variables>  

Both can be used within a custom pipeline but somehow not in combination.  

**Following is currently working:**   

```
pipelines:
  custom:
    deploy-dev-reset:
      - step:
          <<: *deploy-reset
          deployment: Dev
      - step: *reset-dev-elastic-search

    deploy-test-reset:
      - step:
          <<: *deploy-reset
          deployment: Test
```

But if I try to add variables to the custom pipline it is not working anymore:  

```
pipelines:
  custom:

    deploy-dev-reset:
      - variables:
        - name: releaseVersion
      name: Deploy Dev Env
      - step:
          <<: *deploy-reset
          deployment: Dev
      - step: *reset-dev-elastic-search

    deploy-test-reset:
      - variables:
        - name: releaseVersion
      name: Deploy Test Env
      - step:
          <<: *deploy-reset
          deployment: Test
```


Answers:
author: Matthias Maier
body: I could solve this issue. In general it is possible to combine "deployment" and "variables" within a custom pipeline.  

Example:  

```
pipelines:
  custom:

    deploy-dev-reset:
      - variables:
        - name: releaseVersion
          default: "snapshot"
      - step:
          <<: *deploy-reset
          deployment: Dev
      - step: *reset-dev-elastic-search

    deploy-test-reset:
      - variables:
        - name: releaseVersion
          default: "0.1.0"
      - step:
          <<: *deploy-reset
          deployment: Test
```

The actual root cause of the issue was something else. It was just an "echo" which contained a ":"  

Example (which causes an error):

```
- echo "Re-install everything using image tag: $releaseVersion"
```

to use ":" within a script it needs to be escaped by using a "\>"  

```
- >
  echo "Re-install everything using image tag: $releaseVersion"
```


Tags: bitbucket-cloud

cloud
Repository variables not working in "complex" command
Asked by Kurucz D?vid:

Hi,

I setup repository variables NOT as secured, and don't have any deployment or workspace variables.  
When I try to run this pipeline:

```
pipelines:
default:
- step:
name: Build and deploy front-end
image: node:16.9.1
script:
- echo $API_DOMAI
- echo 'VAR_FROM_BITBUCKET=$API_DOMAIN' > .env.production.local
- rsync -a -e 'ssh -p $PORT' $BITBUCKET_CLONE_DIR/dist/ $USER@$HOST:$DEPLOYMENT_DIR/frontend
```

The pipeline only replaces the variable in the fist echo but not the other command.  
Why the variables not working in the rsync command and a quoted echo?  
The $BITBUCKET_CLONE_DIR variable working fine in rsync.  

Am I doing something wrong? This is driving me crazy!


Answers:
author: Norbert C
body: Hi D?vid,

Thank you for contacting Atlassian Community. My name is Norbert and I'm a Bitbucket Cloud Support Engineer, it's nice to meet you! Welcome to the Atlassian Community.

I'd like to inform you that in case you want this to work, please change your script to the following:

```
echo 'VAR_FROM_BITBUCKET='"$API_DOMAI" >> .env.production.local
```

Please let me know if it's working for you.

Have a great day!

Best Regards,  
Norbert  
Atlassian Bitbucket Cloud Support


Tags: bitbucket-cloud

cloud
SourceTree install fails at 7za.exe copy
Asked by Kirk Hutchinson:

SourceTreeInstallFail.jpg

I have verified that I have Admin privs to the dir, and I've even tried creating that prior to the install with R/W sig to no avail. Any ideas?  
[](https://community.atlassian.com/t5/Sourcetree-questions/SourceTree-install-fails-at-7za-exe-copy/qaq-p/196950?attachment-id=10213){#link_116ac9cf56dd8d}  
[](/tnckb94959/attachments/tnckb94959/sourcetree-questions/5650/1/SourceTreeInstallFail.jpg){#display_116ac9cf56dd8d_0}


Answers:
author: Peter Schuebl
body: Same problem here.Manually copying 7za.exe to the folder fails.Renaming 7za.exe to 7za1.exe and copying workings.Might be connect to McAfee AntiVirus


author: Kirk Hutchinson
body: Yes on McAfee, but no on encryption since it can't be disabled. Please be aware that I have tried installing it on both the encrypted (c:) and non-encrypted (d:) drives without success. I tried replying right after your response, but I'm limited to 3 communications per day by your website. :-(


author: Seth
body: Have you tried temporarily disabling those?


author: Kirk Hutchinson
body: The install onto my Windows 7 desktop worked fine, but the one on my corporate laptop does not. Here are some interesting differences: McAfee \& Dell data protection encryption are running on the laptop. Other programs install fine with or without running in Administrator mode, but this one fails every time irrespective of the directory or disk that is specified.


author: Kirk Hutchinson
body: This is a fresh install of SourceTreeSetup_1.6.11.exe on Windows 7. It is behind a corporate firewall if that makes a difference.


author: Seth
body: Do you know what version you are installing? Is this a fresh installation or an upgrade?
How to make SourceTree aware of repository checked out by Git ??
Asked by Dan Miller:

I've been using command-line Git to manage my repositories, but SourceTree doesn't seem to know about them automatically. Is there some way that I can tell it to look in a directory and recognize the branch(es) checked out there?


Answers:
author: Bal?zs Szakm?ry
body: If you already have the open is SourceTree and it does not notice the changes made outside of SourceTree, press F5 to refresh the view.


author: thinsoldier
body: You've got to drag your repository directories into the Sourcetree bookmarks window.

comments: author: Dan Miller
body: Oh!! It's that simple?!?!? Okay, I'll test that on Monday...


author: Dan Miller
body: Yes, those instructions both work fine; thanks!
Heavy RAM usage
Asked by jakub_matuszewski:

Hello everyone. I've a problem with SourceTree app. I noticed that it can eat up, up to 850 MB of RAM on my laptop. I suspect, that this might be caused by usage of Grunt task runner, which compiles scss and uglifies js files. It start's low - about 80 MB's, and over time it's growing to enormous sizes.

My setup is:   

Windows 8.1, 64 Bit, 16 GB RAM, 350 GB of free space on project partition. I keep project files on HDD 7200 RPM, and system with all the software runs on primary SSD. I have 5 repos hooked up.   

I develop projects using PHPStorm 8.0.2 with Grunt, Bower and Composer for dependency management and running tasks.   

My repos are hosted on Bitbucket.

Thanks,

Jakub


Answers:
author: Christopher Wilson
body: Not an answer, but I have the same issue trying to push my code to a GIT repository. I have half of your ram, but use PHPStorm and Bitbucket as well. I can break 1GB of ram easily.I just tried to load a local repository and I am at 1.5 and climbing.


Tags: management

memory
What is the difference between push to origin/[branch] (tracked) and push to origin?
Asked by Keith Lam:

Can someone let me know if there is a difference between these push options? Thanks

sourcetree.png  
[](https://community.atlassian.com/t5/Sourcetree-questions/What-is-the-difference-between-push-to-origin-branch-tracked-and/qaq-p/191614?attachment-id=11136){#link_1174861d4ca1ba}  
[](/tnckb94959/attachments/tnckb94959/sourcetree-questions/5506/1/sourcetree.png){#display_1174861d4ca1ba_0}


Answers:
author: Seth
body: There is not a difference. The "Push to origin/master (tracked)" is there for the convenience of not having to pop out an extra menu. If you had more remotes, or you were pushing a branch that was NOT tracked from origin, you would have to use the "Push to \>" popout menu.
File search in SourceTree
Asked by Linda Knapp:

How can I do a file search in SourceTree? For example, I am looking for all file commits with the .yml extension only.


Answers:
author: Exia
body: While I'd love to see a feature added to SourceTree that would allow you to see the history of a file that does not currently exist. A workaround though would be to add to every commit the files that were updated. That way you could search commit messages for .yml and get all commits where a .yml file was updated.


author: Seth
body: You can't search commits by filename in SourceTree. It might be possible on the Git command line, but I don't know for sure.

You can search your working copy by filename. In the File Status tab, choose to show "All" instead of "Pending", then type your search in the search box to the right (e.g., "yml").

You can also view all of the commits for a particular file by right-clicking the file, and choosing "Log Selected..."

comments: author: Petr Bodn?r
body: > You can't search commits by filename in SourceTree.

Confirmed, even now in 2020. Which is quite surprising, when other tools like the Git command line or TortoiseGit can do this for years already. BTW "git blame" is also pretty limited when compared to some other tools.
> It might be possible on the Git command line, but I don't know for sure.

Sure that this is possible, it is even *super easy* , see for example [How can I list all commits that changed a specific file?](https://stackoverflow.com/questions/3701404/how-can-i-list-all-commits-that-changed-a-specific-file).

Yet, Sourcetree seems to be a handy tool. It's a pity that authors, or Atlassian generally, keep overlooking some "details" in their otherwise great products...
let me know is there any documentation on atlassian sourcetree getting started
Asked by ShrutiM:


Answers:
author: rahuldanwade
body: Hi Shruti,

Refer below link for sourcetree documentation

<https://confluence.atlassian.com/display/SOURCETREEKB/SourceTree+Knowledge+Base+Home>

I don't think it is suffice, but still you can have a nice walk-through.

comments: author: rahuldanwade
body: <https://blog.bitbucket.org/2013/03/19/introducing-sourcetree-git-client-microsoft-windows/>
Cannot stage truncated hunk
Asked by dchilvers:

I have a file with a series of changes (11) . All of the the hunk buttons are enabled apart from the last one which is greyed out. Please can you explain why.

David Chilvers


Answers:
author: Jonas Meyer
body: On windows, If you go to Tools-\>Options-\>Diff, there is a property "Max Diff Line Count",

Increasing cap to suit your needs will make Sourcetree show the entire diff, and ungrey the buttons.

comments: author: Seth
body: Wow, that's handy. Thanks!


author: dchilvers
body: Thanks for that.


author: Seth
body: It may not be unduly large, but it appears to be larger that SourceTree is willing to handle. You can obviously choose to stage the entire file, or try to figure out how to stage hunks via command line. Other than that, I've updated my answer with a possible alternative.


author: dchilvers
body: BTW I am using Windows 7, SourceTree 1.6.11.0 and git version 1.9.0.msysgit.0Seth, I tried your suggestion but to no avail. The last hunk of about 500 lines, a pure insertion, still had the stage hunk button greyed out. 500 lines does not seem unduly large for a hunk.David


author: Seth
body: SourceTree limits how much of a diff it displays. If there are too many changes, SourceTree will eventually truncate the display in the middle of a hunk. It does not let you stage or discard that hunk because it is not showing you the entire hunk.

If you choose to stage or discard earlier hunks, it should reduce your diff content enough to display that entire hunk, which would let you use the buttons.

It's an annoying feature, but I assume it is necessary to keep SourceTree responsive when viewing large changesets.

EDIT: If your hunk is still too large, you can try highlighting large portions of it by clicking and shift-clicking within the large hunk, then staging or discarding "selected lines". I have never tried this in a partially displayed hunk, so I'm not sure if you'll be allowed or not.
SourceTree crashes when trying to pull
Asked by cmepeomun:

When I'm trying to Pull in SourceTree, I get this:

```
hg pull -u C:\Users\...pulling from C:\Users\...** Unknown exception encountered with possibly-broken third-party extension hgattic** which supports versions unknown of Mercurial.** Please disable hgattic and try your action again.** If that fixes the bug please report it to the extension author.** Python 2.7.4 (default, Apr  6 2013, 19:54:46) [MSC v.1500 32 bit (Intel)]** Mercurial Distributed SCM (version 2.6.1)** Extensions loaded: eol, rebase, transplant, extdiff, fetch, hgattic, mq, hgflow, sourcetree_auth
```

It works before, and started happening this morning. I can't make pull requests since then. What can it be?


Answers:
author: cmepeomun
body: In the end, I deleted local repository and cloned it from BitBucket via SourceTree.


author: cmepeomun
body: Actually, I can't do anything in SourceTree.

Update To previous commit says:

```
hg update -y -r 111error: preupdate.eol hook raised an exception: need more than 1 value to unpack** Unknown exception encountered with possibly-broken third-party extension hgattic
```

Reverse commit:

```
hg backout -y --merge -m "Backout changeset 68cc998a09d9e500f4555589973e5a48d9c184" 68cc998a09d9e500f4555589973e5a48d9c184** Unknown exception encountered with possibly-broken third-party extension hgattic** which supports versions unknown of Mercurial.
```

Strip:

```
hg strip -y 638978ff64e3f9e92aac1241c2cd5a58ed6ec909error: preupdate.eol hook raised an exception: need more than 1 value to unpack
```


Tags: bitbucket-cloud

cloud

mercurial
SourceTree 2.0.3 is not showing differences between unstaged and staged file
Asked by Geoffrey C. Begen:

Using Git.

I have a change staged to the index, and more changes that are not staged. When I click on the staged file in staged file list of the working copy or the unstaged file in the unstaged file list, I see differences between the file in my working copy and the last commit. Previous versions of SourceTree were able to show me the staged differences separate from the unstaged differences.

This appears to also be affecting the ability to stage or unstage hunks or lines.


Answers:
author: Seth
body: Sounds like a bug to me. You can report these to Atlassian at jira.atlassian.com.

comments: author: Geoffrey C. Begen
body: That's what I thought this was. :) I got here by following the report a bug link at SourceTree support.
How to search files present in multiple git repositories and see the history of changes done for a file in all branches?
Asked by pruthvi raj chowda:

i want to find a source which can be present in multiple repositories and see the history of all the changes done to it in multiple banches


Answers:
author: thinsoldier
body: Feature Request:  

A new app called Source Forest that regularly scans all your repositories bookmarked in sourcetree and pulls the history data into a searchable database.  

See also: <https://answers.atlassian.com/questions/239704>  

I've implemented something similar for myself for subversion. I found it very useful. For example I wanted to know which of 10 projects had been worked on most contiguously and which had the most gaps of more than 15 days at a time between commits.


author: Seth
body: Neither Git nor SourceTree have many operations (possibly none) that effect multiple repositories at the same time.

Within one repository, if you find the file, you can right-click it and choose "Log Selected..." to view the history for that specific file.