youngmon/atlassian-qna huggingface dataset:
Is it possible to access multiple repositories from a self-hosted pipeline?
Asked by Kaspar Vibur:

I have a self-hosted pipeline runner and from there I would like to run another pipeline that relies on the same self-hosted runner. Is that possible?   
If yes, following the guide trigger-pipeline guide:

<https://bitbucket.org/product/features/pipelines/integrations?p=atlassian/trigger-pipeline>  

What should I specify as "pipe:" value?


Answers:
author: Patrik S
body: Hello [@Kaspar Vibur](/t5/user/viewprofilepage/user-id/3723018) and thank you for reaching out to Community!

If you only have one runner available, and the second pipeline would rely on the same runner, it would not be possible.

This is because each runner can run only **one pipeline step at a time**, meaning that the first pipeline would already be making the runner "busy", and once it triggers the second pipeline, there will be no available runner to assign it.

However, if you create and spin up more than one runner (you can execute multiple runners in the same host, or use different hosts), then you should be able to achieve the workflow you are looking for. Following is an example of using the pipe in a step with runners :

```
- step:
       runs-on:
        - 'self.hosted'
        - 'linux'
       script:
        - echo "This step runs in a self hosted runner"
        - pipe: atlassian/trigger-pipeline:5.2.0
          variables:
            REPOSITORY: '<string>'
```

Hope that helps! Let me know in case you have any questions.

Thank you, [@Kaspar Vibur](/t5/user/viewprofilepage/user-id/3723018) !  
Patrik S

comments: author: Kaspar Vibur
body: Thank you [@Patrik S](/t5/user/viewprofilepage/user-id/4603309) for your reply! I had set up a separate runner for the other repository but once I got the configuration correct I was presented with the following:

##### Configuration error {#toc-hId--1533264162}

The Pipes feature is not supported on this self-hosted runner's platform.

So that I belive answers the question for my self-hosted MacOS runner.

My binary app project compiles sources from multiple repositories and as far as I understand now the only option to compile using pipeline would be to clone those other repositories into the runner.


author: Patrik S
body: Hello [@Kaspar Vibur](/t5/user/viewprofilepage/user-id/3723018) ,

It seems like you are using MacOS runners, and pipes are currently supported only on Linux Docker runners, as they rely on docker containers to properly work (see [Unsupported feature \| MacOS Runners](https://support.atlassian.com/bitbucket-cloud/docs/set-up-runners-for-macos/#Unsupported-features))

In this case, you can either call the API to Run the pipeline directly in your step's script:

* [Run a pipeline \| Bitbucket Cloud API](https://developer.atlassian.com/cloud/bitbucket/rest/api-group-pipelines/#api-repositories-workspace-repo-slug-pipelines-post)

or, as you mentioned, manually clone the other repositories you need during your build.

Thank you, [@Kaspar Vibur](/t5/user/viewprofilepage/user-id/3723018) !

Patrik S


Tags: bitbucket-cloud

cloud
I can no longer login using email account and all repositories missing!!!!!
Asked by Samuel Apolinario:

Months ago I used to login using email and password. At some point I logged in using the same email address view Google. Now I am unable to get into my original workspace and access my repos.

I'm desperate. I really hope someone at Atlassian can help me out. I'm even willing to go on a paid plan which I tried to subscribe to with no success.

I really love Bitbucket but needs this working soon.

Please help!

Thanks


Answers:
author: Patrik S
body: Hey [@Samuel Apolinario](/t5/user/viewprofilepage/user-id/3473395) and welcome to the Community!

The email you have used to open this question does not currently have access to any workspace. I suspect you might be signing in with the incorrect account, and this account does not have access to the content you are looking for.

I'm afraid we from support are not able to share private information such as email addresses, but you can try to log in on Bitbucket with any other email you own and verify if any of those accounts have access to the workspace in question.

Thank you, [@Samuel Apolinario](/t5/user/viewprofilepage/user-id/3473395) !

Patrik S

comments: author: Samuel Apolinario
body: This is extremely important. Is there anyone that can contact me privately at my email address? I need to know why I lost access to my previous workspace.

I really need assistance here.


author: Samuel Apolinario
body: I found the appropriate email address to log in with. Sorry for all the hassle =). I'm just happy I FINALLY have access again.


author: Patrik S
body: Hey [@Samuel Apolinario](/t5/user/viewprofilepage/user-id/3473395) ,

happy to hear you were able to find the correct email address :)

If you ever need anything, feel free to reach out to the community.

Thank you!


Tags: bitbucket-cloud

cloud
How to find number of repositories?
Asked by Reneesh Kottakkalathil:

How do I find the number of repositories in Bitbucket Server 6.7? Please help.


Answers:
author: Ulrich Kuhnhardt _IzymesCo_
body: ```
curl -u admin_user:admin_pw --request GET \ --url 'http://{baseurl}/rest/api/latest/repos' \ --header 'Accept: application/json'
```

Here is the REST API documentation <https://developer.atlassian.com/server/bitbucket/rest/v811/api-group-repository/#api-api-latest-repos-get>


author: Reneesh Kottakkalathil
body: Thank you [@Ulrich Kuhnhardt _IzymesCo_](/t5/user/viewprofilepage/user-id/4011392)

I got help from support and we can find it from the GUI.

```
Admin > Support > Troubleshooting and support tools > System Information > Repositories
```


Tags: bitbucket-server

server
Retrieved the title and the subject of the commit
Asked by Pierre KUHN:

Good morning,

How to put the commit title in the subject or body of the email?

Do you have a sample page?  

Thank  


Answers:
author: Patrik S
body: Hello [@Pierre KUHN](/t5/user/viewprofilepage/user-id/5256502) and thank you for reaching out to the Community!

From your description, I assume you are using the atlassian/email-notify pipe.

While there's no [default environment variable](https://support.atlassian.com/bitbucket-cloud/docs/variables-and-secrets/#Default-variables) in the pipeline containing the commit message, you can use the $BITBUCKET_COMMIT env variable to get the commit message using the below git command :

```
git log --format=%B -n 1 $BITBUCKET_COMMIT
```

and then export the output of that command (the commit message) to a new custom environment variable.

```
export COMMIT_MESSAGE=$(git log --format=%B -n 1 $BITBUCKET_COMMIT)
```

All the default env variables and any custom env variable you create during the step are available inside the pipe and can be referenced as you would normally do in the script.

Using the concept above, following is an example of including the commitID and commit message to both the **Subject** and **Body** of the email message :

```
pipelines:
  default:
    - step:
       script:
         - git log --format=%B -n 1 $BITBUCKET_COMMIT
         - export COMMIT_MESSAGE=$(git log --format=%B -n 1 $BITBUCKET_COMMIT)
         - echo $COMMIT_MESSAGE
         - pipe: atlassian/email-notify:0.9.0
           variables:
             USERNAME: 'myemail@email.com'
             PASSWORD: $MAIL_PASS
             FROM: 'myemail@email.com
             TO: 'myemail@email.com'
             HOST: 'smtp.gmail.com' 
             SUBJECT: 'Email for commit $BITBUCKET_COMMIT - $COMMIT_MESSAGE'
             BODY_PLAIN: 'Email send from Bitbucket Pipeline executed on commit $BITBUCKET_COMMIT - $COMMIT_MESSAGE'
```

Hope that helps! Let me know in case you have any questions.

Thank you, [@Pierre KUHN](/t5/user/viewprofilepage/user-id/5256502) !

Patrik S


Tags: bitbucket-cloud

bitbucket-pipelines

cloud

email

notification
Update bitbucket in docker with expired licence
Asked by Thorsten Reichelt:

Hi!

I am running bitbucket 7.16.0, jira 8.13.10, and confluence 7.13.0 within docker containers located in a closed network (no internet). My support and update licence ended at 30. October 2021. :(

Can I still update bitbucket to the newest 7.x version by replacing the docker image? Or will bitbucket not start any longer? Same for jira 8.x and confluence 7.x.

In example, there is a release 7.17.0 (5. October 2021) and a release 7.16.1 (29. Sept. 2021). As far as I understand, at least this version should still work. But the corresponding docker image (7.16.1-ubuntu-jdk11) has been release in August 2023. That's very confusing.

Thank you very much.

Thorsten


Answers:
author: Zhiyong Lin
body: Hi, You only need to pay attention to Bitbucket's release date, don't worry about Docker images.


Tags: docker

licence

server

update
Can't clone repository (I am authenticated and have Read access)
Asked by Pawe?R:

I'm getting the generic error message "fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists." when trying to clone a repository.

The repository exists, I can access it and even download it from the browser. The cloning URL is correct. Authentication passes correctly (when using GIT_SSH_COMMAND="ssh -vvv" git clone {repo url}, it shows that a correct pubkey is used and prints out

```
debug1: Authentication succeeded (publickey).
Authenticated to bitbucket.org ([104.192.141.1]:22).
```

Is it possible that another type of permission is needed to clone the repo? It does not seem to make sense though, because I can actually access and download the repo from the browser...


Answers:
author: Pawe?R
body: Solved the problem by generating a new key pair. Weird.


Tags: bitbucket-cloud

cloud
Can I configure a pre-receive hook in BitBucket?
Asked by Pablo Hernando Izquierdo:

I want to configura one, is it possible?


Answers:
author: Saxea _Flowie_
body: Not supported - there's a feature request [here](https://jira.atlassian.com/browse/BCLOUD-10471).


author: Charlie Misonne
body: I'm aftaid you can't in. Here is the feature request: [BCLOUD-10471](https://jira.atlassian.com/browse/BCLOUD-10471)


Tags: bitbucket-cloud

cloud
Unable to login Bitbucket
Asked by Alexey Sazonov:

Same problems as in <https://community.atlassian.com/t5/Bitbucket-questions/Unable-to-login-Bitbucket-We-couldn-t-log-you-in/qaq-p/1896018>


Answers:
author: Norbert C
body: Hi Alexey,

Thank you for reaching out to Atlassian Community. I'm Norbert from Atlassian Support.

When I looked at your Bitbucket Cloud account, I was able to see that it was deactivated due to dormant status, therefore I've reactivated your account.

Please let us know if you can access your account now?

comments: author: Alexey Sazonov
body: ? Thank you.


Tags: bitbucket-cloud

cloud
Git Support
Asked by Andreas L?deke:

Hi,

i am currently evaluating atlassian ondemand. I really like the integrated stack but i am missing is the git integration. Did you plan to integrate it and if so, wil it be available in the near future?

Best Regards

Andreas


Answers:
author: Adam Wride
body: Andreas -

Just a few years late - but our add-on does support all git repositories including integrations for services like GitHub, Bitbucket, GitLab, and AWS CodeCommit: <https://marketplace.atlassian.com/plugins/com.xiplink.jira.git.jira_git_plugin/>


author: Michael Knight
body: Yes, we do plan to integrate git into the stack. Initially this will be done via our GitHub and Bitbucket connectors ([Bitbucket now has git support](http://blog.bitbucket.org/2011/10/03/bitbucket-now-rocks-git/)), but we're also looking at an integrated DVCS option too. The issue to follow to keep up with developments on this is [JST-2090](https://studio.atlassian.com/browse/JST-2090).


Tags: cloud

fisheye-crucible-svn-ondemand
Crucible and HP Quality Center or Rational products integration
Asked by Eric Zhao:

Does anyone know if Crucible can integrate with HP Quality Center or Rational ClearQuest/RequisitePro/Requirement Composer, etc?

I'm using Crucible to do code review, and want to sync the code review results to the other system above.

If you have any pratical experience please tell me :)

Thanks!

Eric


Answers:
author: Eric Zhao
body: After consulting HP QC/ALM representative, it is found QC provides API (OTA - OpenTest Architecture) which allows users to develop integration tools themselves. Also HP provides an "HP ALM Sychronizer" for CQ/ALM interface.

HP ALM Sychronizer Readme:

<http://updates.merc-int.com/qualitycenter/qc110/sync/almsynchronizer/HP-ALM-Sync-Readme.htm>


author: liujune13
body: yes

comments: author: Eric Zhao
body: Thanks friend. So where can I find some help topics on this? i searched on internet but didn't see the related topics.


author: Eric Lin
body: I am wondering when JaM 6.3 will be officially for production? We just installed Jira 4.4.1 and JaM has only beta JaM 6.3 to down load for Jira 4.4.1.

Thanks!


author: Fabian Lopez
body: This is just for the integration with JIRA and HP Quality Center. Adding just in case can help

<http://www.go2group.com/products/go2group-jam-plugin/>

JAM Plugin from Go2Group


author: Fabian Lopez
body: This is just for the integration with JIRA and HP Quality Center. Adding just in case can help

<http://www.go2group.com/products/go2group-jam-plugin/>

JAM Plugin from Go2Group


Tags: integration

test-management
Crucible Mime Type for extensionless file
Asked by Charles Knutson:

The raw-mime.types file allows you to control what how a file is interpretted by Crucible (binary, text, etc.). However, how do we specify a file that does not have an extension to be a "text/plain" type? For instance I might have a file called "myScript" but I know it's text and simply want it to be interpretted that way. How might I specify that in raw-mime.types?

In a more general sense, is there a way to set the default to be of a certain type by default if it's not specified in the raw-mime.types file?


Answers:
author: Anna Buttfield
body: This capability has been released added to Crucible 2.7.8. In the "crucible" admin tab there is now a "Treat all files without extensions files as text" checkbox.


Tags: mimetype
FishEye not working with git and ssh
Asked by Paul Karlin:

Hello,

I have FishEye 2.7.4 and msysgit 1.7.4 installed on a Windows 2003 x64 server. I have been using it successfully to index a remote repository that was available via Windows file sharing -- e.g. file:////server/repo.git -- however I'm trying to move the remote to a Linux server and make it available via ssh. The new URL would be <ssh://newserver/home/gitssh/repo.git> for example.

I have a key pair that I know works and has no passphrase, and I've tried two ways to get it to work in FishEye:

1. I placed the keys in C:\\Documents and Settings\\***username*** \\.ssh (where ***username*** is the account under which FishEye is running as a service via SRVANY). In the web interface I choose "no authentication" figuring that the system should just find the key. Clicking "test connection" causes FishEye to hang for a 15-30 seconds and then fail with the following error:

Error testing connection.  
Error talking to repository:   

Connection failed.

It also results in a stray "ssh.exe" process, which leads me to believe FishEye just isn't finding the private key where I'd expect it to look.

2. I uploaded the private key using FishEye's web interface. Clicking "test connection" causes the following error almost immediately:

Fisheye is using 'C:\\Program Files (x86)\\Git\\bin\\ssh.exe' to authenticate with SSH authenticated repositories.

Error testing connection.  
Error talking to repository:   

'C:\\Program' is not recognized as an internal or external command,   
operable program or batch file.   
fatal: The remote end hung up unexpectedly

Connection failed.

This leads me to believe something is misconfigured with my path or with ssh itself, but I couldn't find anything obviously wrong.

In both cases, I've tried the ssh URL with and without username@ before the hostname. Any suggestions, either for placing the key in the right location, or for setting up the path to ssh.exe properly, or for anything else I'm missing, would be greatly appreciated.

Thanks!

--Paul


Answers:
author: Paul Karlin
body: Updating to msysGit 1.7.7.1 appears to have solved the problem.
Unable to connect to SVN via OnDemand using Google Apps
Asked by Ashley Guberman:

My SVN repository has the checkout command listed up top:

svn checkout <https://myaccount.jira.com/svn/GTV/trunk> GTV --username myname

However, when I execute that from the command line, I get :

Authentication realm: \<[https://myaccount.jira.com:443](https://myaccount.jira.com/)\> Subversion Repository  
Password for 'myname': \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*

And the password is not accepted.

Note that my authentication is managed through Google Apps, which is how I set up OnDemand.

I have tried both 'myname' and 'myname@mydomain.com'


Answers:
author: Federico Spagnolini
body: Your SVN account is managed through OnDemand account that for Gapps users is created from the mail without domain ('myname' rather than 'myname@@mydomain.tld'). Please note that your OnDemand account is totally independent from Gapps: you can log in to Jira without Gapps. There is just an association between Google and OnDemand accounts so you actually have 2 accounts. The first time you login to OnDemand from Gapps the system asks for a OnDemand password: that is the actual password for the account used also for svn. Don't mind if you don't remember your password just try to login to OnDemand without Gapps and follow "Can't access your account?" link. You'll get in the reset password procedure.


Tags: cloud

fisheye-crucible-svn-ondemand

google
Rename User Functionality is broken. It resets all the Dashboard
Asked by Saurabh Arora:

On renaming user in my Crucible Instance. My Dashboard's Inbox resets everything to zero reviews.


Answers:
author: Vasek Novak
body: We experienced similar issue. Renaming a user caused the inbox to show no items.  
Renaming the user back made the items visible again.

It seems that the rename function does not take into account the inbox items.

We use version 3.4.0 .


author: seb
body: Which version of Crucible are you running?
connect downloaded crucible to jira ondemand
Asked by javaclimber:

I am getting an erorr that I am not an administrator. Is this possible?


Answers:
author: SimonS
body: Heya Kevin,

JIRA OnDemand can only integrate the the Fisheye/Crucible instance that is included with the service. Even then, Fisheye/Crucible can only work from the included SVN repository. We're going to add more CSM support in the future, but I don't think OnDemand will be able to work with any local systems (like a local SVN or Maven repo) anytime soon.

-Simon
Can not find Create Snippet Function
Asked by YOO Jira:

HI together,

I can not find the function create snippet under the tab 'review'.

Is there a permission to set?

thank you

laurin


Answers:
author: NikE
body: This is a weird one....UI is not showing the option. My apologies for the mix-up and a bug report has already been filed...we are working to have this issue resolved as soon as possible.

In the meantime you can directly link to the Create Snippet Function by using the following link

\<tt\>your-baseurl\</tt\>/source/snippet/create

This will take you to the create snippet page and then everything will work as described under:

[Creating a Snippet Review](https://confluence.atlassian.com/display/CRUCIBLE025/Creating+a+Snippet+Review "Snippet Review")


Tags: cloud

fisheye-crucible-svn-ondemand
Bitbucket Git repository support?
Asked by bits4fun:

Hi

The OnDeman configuration supports GitHub (I see it, have not tried that), and you can select Bitbucket - however that is for SVN only.

Before receiving licenses for OnDemand, I created a project on Bitbucket using Git. And I'm happy about that service.

I dont want to migrate the repo to GitHub, but stay with bitbucket.

Is this on the list of TO DO for OnDemand to support Bitbucket/Git, if yes when approx?

Kind regards

Gunther


Answers:
author: bits4fun
body: I have investigate further, and have found that it works. See <https://studio.atlassian.com/browse/BBC-99>

Current Bitbucket plugin-version in OnDemand is infact 0.12.

I have also verified the functionality and see that the commit message in bitbucket has been attached to the issue in the "bitbucket" tab of the issue.

Thanks, Atlassian!


Tags: cloud

fisheye-crucible-svn-ondemand
The system crash and appear error "java.lang.OutOfMemoryError: PermGen space"
Asked by Harold Fritz:

I installed the wrapper for Windows Server, to allow run FishEye as Service.

I has been configured the wrapper.conf with many parameters to memory, but it work for a quite time then the system crash.

My current configuration for memory is:

wrapper.java.additional.11=-Xms512m

wrapper.java.additional.12=-Xmx4096m

wrapper.java.additional.13=-XX:MaxNewSize=512m

wrapper.java.additional.14=-XX:MaxPermSize=4096m

I has tested with many other memory size, from -Xms128m to current -Xms512m.


Answers:
author: Conor
body: The MaxPermSize looks a bit big - we normally run wth 256m

I'm not sure if that would cause the OutOfMemory error you are seeing.

The other thing worth checking is whether the options you have configured are actually effective. You can check the JVM arguments in the sys-info/support section of the admin UI. You should see your memory settings in the list.
The system crash and appear error "java.lang.OutOfMemoryError: PermGen space"
Asked by Harold Fritz:

I installed the wrapper for Windows Server, to allow run FishEye as Service.

I has been configured the wrapper.conf with many parameters to memory, but it work for a quite time then the system crash.

My current configuration for memory is:

wrapper.java.additional.11=-Xms512m

wrapper.java.additional.12=-Xmx4096m

wrapper.java.additional.13=-XX:MaxNewSize=512m

wrapper.java.additional.14=-XX:MaxPermSize=4096m

I has tested with many other memory size, from -Xms128m to current -Xms512m.


Answers:
author: Felipe Kraemer
body: Hi, Harold.

According to [this document](http://confluence.atlassian.com/pages/viewpage.action?pageId=91554194), -Xms and -Xmx should be configured in these parameters:

```
# Initial Java Heap Size (in MB)wrapper.java.initmemory=512# Maximum Java Heap Size (in MB)wrapper.java.maxmemory=4096
```

Could you please try the above as well as this:

```
wrapper.java.additional.11=-XX:MaxNewSize=512mwrapper.java.additional.12=-XX:MaxPermSize=4096m
```

(Note that what you had in the additional parameters 13 and 14 are now in parameters 11 and 12, respectively).

Please let us know how it goes...

Cheers,  
Felipe Kraemer  
Atlassian Support
How to have "anchoring patch" feature with Crucible alone?
Asked by long_at_work:

Reading <http://blogs.atlassian.com/2010/02/pre-commit-patch-code-review-process/> it immediately pops that "patch anchoring" feature is a must. But that feature seems to imply that we need Fisheye. What if I only buy Crucible?


Answers:
author: seb
body: Patch anchoring is only available with FishEye. If you only purchase a Crucible license, then you will not be able to use patch anchoring.


Tags: crucible-without-fisheye