youngmon/atlassian-qna huggingface dataset:
Jenkins could NOT discover Repositories
Asked by Joel DeWitt:

I just started seeing this error this morning(**Could not resolve team details**) :

```
[Thu Aug 26 10:14:35 CDT 2021] Starting organization scan...[Thu Aug 26 10:14:35 CDT 2021] Updating actions...Looking up team details of MyTeam...Connecting to https://bitbucket.org using xxxxxxxxx/****** (bitbucket cloud xxxxxxxx app-password credentials)**Could not resolve team details**[Thu Aug 26 10:14:35 CDT 2021] Consulting Bitbucket Team/ProjectConnecting to https://bitbucket.org using xxxxxxx/****** (bitbucket cloud xxxxxxxx app-password credentials)Looking up repositories of user MyTeam0 repositories were processed
```

Previously it would resolve to the correct Team and then list the proposed repositories:

```
Looking up team details of MyTeam...Connecting to https://bitbucket.org using xxxxxx/****** (bitbucket cloud svcbitbucket app-password credentials)Team: MyTeam[Wed Aug 25 14:09:00 CDT 2021] Consulting Bitbucket Team/ProjectConnecting to https://bitbucket.org using xxxxxx /****** (bitbucket cloud svcbitbucket app-password credentials)Looking up repositories of team MyTeam
.
.
.
.
.Proposing MyTeam/repoConnecting to https://bitbucket.org using xxxxxx/****** (bitbucket cloud xxxxxxapp-password credentials)Repository type: GitLooking up MyTeam/repo for branchesChecking branch develop from MyTeam/repo      ?Jenkinsfile? found    Met criteria  1 branches were processed (query completed)
```

I found this post which outlines our problem:  
<https://community.atlassian.com/t5/Bitbucket-questions/Jenkins-could-NOT-discover-Repositories/qaq-p/1540027>

It appears we are set up correctly and have been for some time. Could this maintenance have affected this:  
<https://bitbucket.status.atlassian.com/incidents/1l51l5byt9dk>  

Either way - any thoughts on a fix?


Answers:
author: Misha Znak
body: As i understand this issue is also related.  
<https://community.atlassian.com/t5/Bitbucket-questions/Jenkins-not-able-to-login-with-username-and-password-anymore/qaq-p/1787644>


author: Misha Znak
body: <https://github.com/jenkinsci/bitbucket-branch-source-plugin/issues/473>  

guys here compiled PR which fix an issue. You can find a link inside

comments: author: lgracey
body: We are reviewing the link thank you!


author: lgracey
body: To anyone looking at this thread for this issue - we have reached out to Atlassian support and confirmed the plugin needs to be updated for the new API.

Please refer to the URL Misha sent for Jenkins \<-\> bitbucket communication issues.

Thank you again for the link Misha!!


author: Misha Znak
body: you are welcome


author: lgracey
body: We are also having the same issue, there was a webhooks maintenance today - wondering if it's related.

<https://bitbucket.status.atlassian.com/>


author: Misha Znak
body: The same problem  
Already tried update related plugins and also tried different combinations.  

Changed account and tried another workspace. the same result


Tags: bitbucket-cloud

cloud

jenkins
Permission Denied error
Asked by sai.varala:

Hello I am receiving permission denied error on the RetreiveCI file when trying to run the pipelines. I do see that I have full permissions on the file, but not sure why it is giving that error. Can someone please help.


Answers:
author: Mark C
body: Hi [@sai.varala](/t5/user/viewprofilepage/user-id/4528905)

Welcome to the community.

Depending on where you're running your command, would it be possible for you to try adding the **chown** command below and see if it helps?

```
chown -R root:root $BITBUCKET_CLONE_DIR
```

I would also recommend [testing your Pipelines build locally in a Docker container](https://support.atlassian.com/bitbucket-cloud/docs/debug-pipelines-locally-with-docker/) to see and compare if it works there or not.  
Ideally, if it works locally, it should also work on Pipelines.

Let me know how it goes.

Regards,  
Mark C


Tags: bitbucket-cloud

cloud
Garbage collection Request
Asked by Qasim Jabbar:

Hi

We are trying to reduce our bit bucket size. We have cleared the last commits but still getting messages saying our repo size is above the limit

I think we need a garbage collection from support to action this. Please advise how we can reduce the repo size if this does not work as we have taken steps outlined here. <https://support.atlassian.com/bitbucket-cloud/docs/reduce-repository-size/>

I am unable to create a ticket to have this actioned and it leads me to this community page

Thank


Answers:
author: Theodora Boudale
body: Hi [@Qasim Jabbar](/t5/user/viewprofilepage/user-id/4532012),

I can see in our system which workspaces and repos your account has access to, and I ran a git gc for the repository that was over the size limit. Its size is 531.2 MB now. Does this agree with the size of your local repo?

Please feel free to let me know if you have any questions and if you need anything further.

Kind regards,  
Theodora

comments: author: Qasim Jabbar
body: Yes thank you for your help :)


author: Theodora Boudale
body: You are very welcome! Please feel free to reach out if you ever need anything else!


Tags: bitbucket-cloud

cloud
are there common rest api to get commit details for cloud and non cloud account?
Asked by Ramya Ravi:

Seems there are two differetn api's and differetn response format for onprem and cloud versions

Onprem API  
[https://bitbucket.test.net/rest/api/1.0/projects/{projectname}/repos/{reponame}/commits/{commitid}](https://bitbucket.opsmx.net/rest/api/1.0/projects/OES/repos/rixirepo/commits/08c76de692cb38a9bac05554e26e0e7a087e91f5)

<br />

saas(cloud) API  
[https://api.bitbucket.org/2.0/repositories/{workspaceID}/{reponame}/commit/{commitid}](https://api.bitbucket.org/2.0/repositories/Ramya_Ravi_opsmx/testdeletefile/commit/5d8f62c475a55fc04b2599b47fd6323555294ae0)

any alternate solutions for it?


Answers:
author: Mark C
body: Hi [@Ramya Ravi](/t5/user/viewprofilepage/user-id/4419969)  

Welcome to the community.  

I'm afraid Bitbucket Cloud's API schema is different from Bitbucket Server.  

For the Bitbucket Cloud commit's API endpoint, you can check out [this documentation](https://developer.atlassian.com/bitbucket/api/2/reference/resource/repositories/%7Bworkspace%7D/%7Brepo_slug%7D/commit/%7Bcommit%7D) for the complete details of the API response.  

Right now, you will have to parse Bitbucket Cloud APIs differently from Bitbucket Server.  

Regards,  
Mark C


Tags: bitbucket-cloud

bitbucket-server

cloud
Organisation scanning stopped working
Asked by Torben Norling:

Suddenly I'm getting this (has been working for like a year+).

This is when Jenkins does it's organisation scanning...

```
Started by user ######### (Obscured)[Thu Aug 26 11:11:03 GMT 2021] Starting organization scan...[Thu Aug 26 11:11:03 GMT 2021] Updating actions...Looking up team details of gnilron...Connecting to https://bitbucket.org using JenkinsAccessToBitbucketCould not resolve team details[Thu Aug 26 11:11:03 GMT 2021] Consulting Bitbucket Team/ProjectConnecting to https://bitbucket.org using JenkinsAccessToBitbucketLooking up repositories of user ####### (Obscured)0 repositories were processed[Thu Aug 26 11:11:04 GMT 2021] Finished organization scan. Scan took 1 secFinished: SUCCESS
```

Nothing found anymore.  

Any recent change I need to be aware of?


Answers:
author: Michal Knobel
body: We have similar issue and we have created a support ticket for bitbucket team.


author: Miko?aj
body: I have the same problem since yesterday.

comments: author: Torben Norling
body: Thx for that, then I can probably rule out some n00b-issue on my side.

I also did a sanitycheck testing to setup a fresh jenkins on a local docker and got the same issue.

For clarity I use Bitbucket cloud - The free tier.

I noticed Atlassian has done some Fix / maintenance last two days. Maybe something is related to that?

<https://bitbucket.status.atlassian.com/>


author: Miko?aj
body: It took me 2 hours to figure out it's not a problem on my side...

And finally, there is something that you can follow: <https://github.com/jenkinsci/bitbucket-branch-source-plugin/issues/473>


Tags: bitbucket-cloud

cloud
Jenkins not able to login with username and password anymore
Asked by Michael Wellens:

From 24/08/2021 our Jenkins server is not able to login with a username and password anymore to discover repositories and to checkout. When I read the logs I get the following error:

```
Started by user "username of jenkins" (My personal credentials)[Thu Aug 26 11:49:03 CEST 2021] Starting organization scan...[Thu Aug 26 11:49:03 CEST 2021] Updating actions...Looking up team details of "Team/project" (I have changed to conceal our name)Connecting to https://bitbucket.org using Bitbucket userCould not resolve team details[Thu Aug 26 11:49:04 CEST 2021] Consulting Bitbucket Team/ProjectConnecting to https://bitbucket.org using Bitbucket userLooking up repositories of user "Team/project"0 repositories were processed[Thu Aug 26 11:49:04 CEST 2021] Finished organization scan. Scan took 0.81 secFATAL: Failed to recompute childrenjava.lang.NullPointerException	at com.cloudbees.hudson.plugins.folder.computed.ComputedFolder.orphanedItems(ComputedFolder.java:263)	at com.cloudbees.hudson.plugins.folder.computed.ComputedFolder.updateChildren(ComputedFolder.java:285)	at com.cloudbees.hudson.plugins.folder.computed.FolderComputation.run(FolderComputation.java:165)	at jenkins.branch.OrganizationFolder$OrganizationScan.run(OrganizationFolder.java:1033)	at hudson.model.ResourceController.execute(ResourceController.java:97)	at hudson.model.Executor.run(Executor.java:429)Finished: FAILURE
```

It has always been able to scan the organization folder and connect to the bitbucket.org/team but for some reason it is not able anymore. The last success scan was on 24/08/2021.


Answers:
author: Suhas Sundararaju
body: Hi All,

We understand that you are facing errors with "bitbucket-branch-source-plugin" in Jenkins. The reason behind this is because the plugin was not updated before the depreciation of certain endpoints as mentioned below:

Link [Deprecation Notice](https://developer.atlassian.com/cloud/bitbucket/bitbucket-api-teams-deprecation/).

![](https://getsupport.atlassian.com/images/icons/emoticons/information.png) **The plugin is not owned/maintained by Atlassian.**

We can see that the plugin owners have been [notified](https://github.com/jenkinsci/bitbucket-branch-source-plugin/issues/473) . To resolve this, the plugins needs to switch to the workspace APIs as defined in the document.

Kindly monitor the above issue for updates and workarounds on this. The plugin vendor would have to make this fix at their end.

Regards,  
Bitbucket Cloud Support


author: Martin Alig
body: Hi, we are experiencing the same issue since this morning. Any inputs how this can be resolved?

comments: author: Martin Alig
body: <https://github.com/jenkinsci/bitbucket-branch-source-plugin/issues/473>


author: Michael Wellens
body: Thanks. It is the solution for us.


author: Michael Wellens
body: Thank you for the info. We have used a fork of the plugin containing the fix but it is not merged yet (at this time). This is the issue we have followed:

<https://github.com/jenkinsci/bitbucket-branch-source-plugin/issues/473>

I hope this will help others.


Tags: bitbucket-cloud

cloud

jenkins
Integrate Liquibase in Bitbucket Pipeline
Asked by TEST Developer:

Hello,

I would like to use Liquibase for automated deployment on the Database.

Could someone tell me how to do that ?

Do I just have to load Liquibase into my repository ?

Thanks for your help !


Answers:
author: Crystal Zheng
body: Found this article, I am looking into as well

<https://stackoverflow.com/questions/61507247/how-do-i-integrate-liquibase-within-an-existing-ci-cd-pipeline-in-large-organiza>


Tags: bitbucket-cloud

bitbucket-pipelines

cloud
unable to delete user in BitBucket
Asked by Selvalakshmi Praveen Kumar:

Hi Team,

I am unable to delete a user from 'Users on plan' page. User has no access to any of the resources. When I click on cross button and click Remove, user is not removed from 'Users on plan' page.

Please help to resolve.


Answers:
author: Theodora Boudale
body: Hi [@Selvalakshmi Praveen Kumar](/t5/user/viewprofilepage/user-id/4241487),

Could you please let me know the following

(1) the workspace-id of the workspace you are trying to remove the user from and   
(2) the user's name  

++but please make sure that both of them are masked++, by replacing some characters with asterisks (e.g. like 's\*\*\*a\*\*\*t\*\*'), to protect the user's and your privacy.

It is likely that you may be trying to remove a user from their personal workspace, which is not possible, but I need the info I asked for, so I can check in our system and confirm whether this is the case.

Kind regards,  
Theodora

comments: author: Selvalakshmi Praveen Kumar
body: Hi Theodora,

Thanks for your answer. Even before sharing the details, I want to tell you that user I am trying to delete is the one created the workspace. In this case, It is his personal workspace right?


author: Theodora Boudale
body: Hi [@Selvalakshmi Praveen Kumar](/t5/user/viewprofilepage/user-id/4241487),

If he manually created the workspace, it is not considered his personal workspace.  
A workspace is personal if it is automatically created by Bitbucket for a user.

Please allow me to explain with an example:

* Someone signs up for a Bitbucket account with username A.
* Bitbucket automatically creates a workspace for that user, with workspace-id A (the workspace-id may be changed later).
* Then, the user creates additional workspaces B, C, D.
* Workspace A, which was created automatically by Bitbucket for the user, is a personal workspace, and user A cannot be removed from that workspace.
* Workspaces B, C, D which were created manually by the user are not personal workspaces, and user A can be removed from these.

Kind regards,  
Theodora


author: Selvalakshmi Praveen Kumar
body: Hi [@Theodora Boudale](/t5/user/viewprofilepage/user-id/818086)

Thanks for explaining me in detail. As I go through the explanation, I am sure that scenario is same here and it is the personal workspace. Instead of removing the user, I transferred all the repositories from this workspace to another workspace.

Hope that person will not get access anymore to the resources in that workspace.

Please confirm


author: Theodora Boudale
body: Hi [@Selvalakshmi Praveen Kumar](/t5/user/viewprofilepage/user-id/4241487),

If this user does not have any access to this other workspace, they will no longer be able to access the repositories either.

To confirm this, you can go to this workspace's **Settings** (the one that owns the repos now) **\> Users on plan**. If the user doesn't show there, then they won't have access to the repos anymore.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Error while cloning/fetching/pushing (any git operation)
Asked by MuraliSarala:

I have a repository (for long time and was working fine till today) in bitbucket (git). When I try to clone/fetch/push (any git operation) I get below error

fatal: remote error: upload-pack: not our ref 6cd4e10fc62befa89d628499d59642de1832a309  
fatal: the remote end hung up unexpectedly


Answers:
author: Mark C
body: Hi [@MuraliSarala](/t5/user/viewprofilepage/user-id/828173)

Thank you for reaching out to the community.

To test it further, would it be possible for you to try to clone your repository using a different ISP/Network connection and see if it works there?

May I kindly ask if you're also using a Git submodule inside your repository that could play a part here?

Let me know how it goes.

Regards,  
Mark C


Tags: bitbucket-cloud

cloud
I do not see the history of commits
Asked by ???????? ???????:

I pushed a local repository.   
<https://bitbucket.org/VchSimonov/storage_conf_remote/src/develop/>

Several commits have been made for the object in the picture, but I cannot see them from the code

![CH2.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/157513i4313BC1F653F4A90/image-size/large?v=v2&px=999 "CH2.jpg")![CH1.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/157514i7A31C81E141076FF/image-size/large?v=v2&px=999 "CH1.jpg")

have commits to the module:

<https://bitbucket.org/VchSimonov/storage_conf_remote/commits/a7645e45a9716dcee3889bad7e98028b45db7ee9>

<https://bitbucket.org/VchSimonov/storage_conf_remote/commits/a7bb6863737a9efefd093b25bf713e6e3e986ad8>

<https://bitbucket.org/VchSimonov/storage_conf_remote/commits/e9346963682900e65ed77bb84b3afdff38acdf23>

Please, explain what i am doing wrong


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

Since this is a public repository, I have been able to reproduce this error. I checked for further details in one of our systems, and it looks that the issue may have to do with the non-ASCII characters in the directories ???????????? and ?????????????.

I have reached out to the development team to ask for confirmation on the root cause and I'll open a bug report when I have more info. I'll get back to you when I have confirmation from the developers.

Kind regards,  
Theodora

comments: author: Theodora Boudale
body: Hi [@???????? ???????](/t5/user/viewprofilepage/user-id/4505339),

I got confirmation from one of the developers that this is indeed a bug that occurs when there is a non-ASCII character in the file name or in one of the directories where a file exists.

I went ahead and opened a bug report for this in our issue tracker:

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

Until this bug is fixed, a workaround would be to rename the directories with non-ASCII characters and use a name with ASCII-only characters.

One option is to use the **git mv** command for this purpose, however, that will not show the history of the file in Bitbucket prior to renaming.

Alternatively, the **git filter-branch** command can be used for renaming, which will preserve the file history. Please note that **git filter-branch** will rewrite history, which means that the commit hashes of some commits will change. I have added examples with the git filter-branch command in the bug report if you'd like to use this option.

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

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Run custom action in terminal/iTerm2
Asked by David Rees:

Is there a way to have a custom action run in the terminal/iTerm? Optimally in the same terminal window each time (so I have an ongoing history in that iTerm window)?


Answers:
author: KieranA
body: Yup, this can be done using Apple Script.

There's a little guide you can [follow here to make the script](http://www.ehow.com/how_5886851_use-applescript-launch-programs.html). I just saved it into my Documents folder. Within the script I just did:

```
do shell script "open -a iTerm"
```

Then in SourceTree the "script to run" field for the custom action has "osascript" in it, and the "parameters" field has "/Users/Kieran/Documents/iterm_as.scpt" in it.

Of course you can go much further than this with your Apple Script passing extra parameters to iTerm - this is just a starting point really. And finally, yes, it will open in the same iTerm window each time much like the console.

Hope that helps

comments: author: David Rees
body: Thanks. I actually want to run a command though, but your help plus <http://code.google.com/p/iterm2/wiki/AppleScript> will get me where I can to go I think. Thanks!
SourceTree is not able to start the external merge tool
Asked by narko:

Hi,

I cannot start the external merge tool from sourcetree after upgrading to Mountain Lion and Xcode 4.6. All the necesary commands are in place because I can run them from the console. However, it seems something changed because sourcetree is not able to show the GUI. It just shows a dialog that dissapear very quickly and generates all the LOCAL, BASE and REMOTE version files of the conflicts.

Please help!

Thanks.


Answers:
author: Delette Collins
body: I am having the same problem only on a Windows 7 box. I see the LOCAL, BASE and REMOTE version files of the conflicts and I can see sh.exe in my task manager however the third party gui never comes up. I can manually bring up the gui however. Any ideas?

comments: author: Derek Chow
body: I found this happening sometimes with me but I noticed that the files that had trouble starting up in with the third party GUI didn't seem to have any real conflicts e.g. were new files or conflicts were perhaps resolved automatically so I generally just had to "abort" the third party merge tool and just mark them as resolved.


author: KieranA
body: Hi narko,

This could be down to your command line tools having problems. Check the following document to see if this resolves it: <https://confluence.atlassian.com/pages/viewpage.action?pageId=267258218>

Cheers

comments: author: narko
body: Wonderful, it works now. I create the symbolic link before, so I was missing just this piece of magic:

Alternatively, add /Developer/usr/bin to your path. You need to do this in two places:

1. /etc/paths - this is the $PATH that GUI applications use. You may need to restart your computer for this to take effect.
2. Your \~/.bash_profile or similar

Thanks a billion Kieran!!