Remove a watcher from my bitbucket project. - bitbucket

I have a private bitbucket repository for a side project. I invited someone to view it as part of an interview.
I have decided not to go any further with the interview. How do I remove this watcher?

Ok, found it.
To remove a watcher from a repo, go to repo and click the settings cog (bottom left).
Then access management on the left hand panel and you should get options there to remove them.
Another way to remove users from all repos is to go to your user settings (top right) -> manage account.
Then on the right go to "plans details" ans you have the option to remove users for all your repos.

Related

How to change the development branch in BitBucket?

How do I change the development branch for my BitBucket repository? Right now my master branch is labeled as both the main and the development branch.
This is a near duplicate of this question: How to change the main branch in BitBucket? however, I couldn't find anything telling me how to change the label for the development label and since it is different enough, I thought it warranted its own post for anyone in the future looking for this answer. (the top answer there is pretty clear so I copied the format he used)
Repositories
Select repository
Click Repository settings (bottom of menu)
In the menu under WORKFLOW select Branching model
Should see a screen that looks like this at the top
Click the dropdown menu under Development branch and change it to Use specific branch.
After that you should be able to click the dropdown menu next to it and change it to whatever branch you want
Make sure to hit save at the bottom
After saving it might take like 30 seconds but when you go back to your branches they should now have the DEVELOPMENT label changed to the branch you specified
I do not know how to do this from the terminal.

Cant find Sync link and compare button on bitbucket new interface

New user interface of bitbucket make me a little confuse. I just want to sync my repo from the parent repo. but I cant see any link of sync and compare button.
I have figured out the solution. It's true that bitbucket no longer provide sync link when there is any update from parent repo (master branch). So the remaining option is only by comparing. We can access the compare menu by choosing repo -> click plus button (on right side upper of the page) -> click Compare branches or tags.

Bitbucket: How to enable pipelines for continuous integration

I am new to Bitbucket (I just created my account). And I would like to test their continuous integration tool pipelines. I have uploaded my source code to my account. But I can't see how I can activate this feature. There is an icon at the left navigation pane that says "Pipelines (New)". When I click it, it takes me to a blank screen. And then nothing happens.
My account is a free account (for test purpose for now). But this stackoverflow answer says that even free accounts should have pipelines enabled.
From my settings, I don't see a setting to enable pipelines.
Is there something I am missing?
August 2022:
I had the same problem, seems that you can't use the pipeline feature if you don't have two factor authentication.
go to two step verification, do all the steps, and then you can just use the pipeline.
You can see the settings in:
Repository settings => scroll all the way down to "pipelines" =>
press the "Settings"
And you'll get to this screen:
Or go directly to:
https://bitbucket.org/user-name/repo-name/admin/addon/admin/pipelines/settings
You'll need to pop out the sidebar on the left and then there should be a pipelines icon there:

Securing folders in source control

I would like to know how I can secure an Area (folder within project) - i.e. give access to external consultants for reading and writing.
But I do not want them to be able to access other folders within that Project.
I know how to assign access to the folder (defined Area), but I'm not sure how I can safely remove their rights on the Project without cutting off their access to the folder (Area).
Any help appreicated.
It depends wither you mean Area Paths or Source Control folders.
!!Source Control
In TFVC you can open the web access and go to the code tab. There you can right click on any folder and select permissions. Her you can use any fine grain you like and control inheritance.
In Git you can only control permission ls at the Repository and Branch level.
!!Work Item Tracking
If you open the web access and go to the administration section (cog on top right) and then the Area Path tab you can control the permission in the same way you can with source code. If you have VSTS or TFS 2015 Update 2 you can also control inheritance.
!!Real solution
However any sort of compartmentalisation comes with significant overhead of managing it. If you are a defence company or bank and there is that one folder that you don't want externals to have access then it's easy. Remove inheritance for that folder and only allow specific access.
Anything more and you run into complexity and friction for users. Ultimately you should trust everyone you give access to your Team Project. Ifnuoy don'ttrust them, then don'tgive them access...
Go to the Administer Server page and create a new TFS user group.
Add the users to the TFS user group.
Go to the Code screen, right click the folder and choose Security. Next add the TFS User Group you create and give them the rights you want:

Minimum permissions to give to a project manager

I'm new to Visual studio online. A project manager will join me for a project, and I want to give him full permissions to create/edit/manage processes, features, backlogs. I want also to deny his access to everything else ( Code, builds, tests... ).
What I have done :
- Created a group ( Project managers ) and added him in it.
- Added this group to project team
- Denied access to everything in "Version Control" tab
This way, the user can see the project, and can create features and backlogs, but not see code.
The problem is that, for a reason I can't figure out, the user can't see the items I have created before( features etc ), everything seems empty, he can only do it when I add his group to the group Project Administrators. I can't figure out what is the missing permission in Project Administrators ( or inherited one ) that I should give to his group.
Can someone help me please ?
NB: Maybe I don't have to create a new group and use one of the existing ones.
You can check if the group has the permission to view/edit the work items via following steps:
Open your project from Web Portal.
Click "Manage Project" button in the up right corner.
Click "Areas" tab.
Right click on the root area and select "Security".
Add your group if it isn't listed in the dialog and make sure it has "View work items in this node" and "Edit work items in this node" permission at least.

Resources