youngmon/atlassian-qna huggingface dataset:
Publish maven artifacts to a private repository on the web
Asked by mihai onoprienco:

I got 2 different repositories in bitbucket.

Repository A is creating several **.jar** artifacts which I then need to use in compilation of repository B ( a second bitbucket pipeline ).

I want to publish these jar file from mvn to a repository ( such as nexus ) and then pull them via mvn inside my second pipeline. How is it possible ?


Answers:
author: Mark C
body: Hi [@mihai onoprienco](/t5/user/viewprofilepage/user-id/3646353),

Thank you for reaching out to the community.

To publish those JAR files from MVN to a repository such as Nexus, there's an existing Pipes script for it called "[sonatype/nexus-repository-publish](https://bitbucket.org/product/features/pipelines/integrations?search=nex&p=sonatype/nexus-repository-publish)" that you can use.

For downloading artifacts from Nexus, I believe you can configure Maven to do this or manually download it through MVN/Curl commands.  

I hope it helps.

Regards,  
Mark C

comments: author: mihai onoprienco
body: thank you !


Tags: bitbucket-cloud

cloud
I returned after a year and I can't see my old projects in Bitbucket ? what happened to it ?
Asked by ratan_tirkey:

I have so many old repositories saved but can't find a single projects here.


Answers:
author: NickP
body: Same happened to me. I can't find any of my old projects! What happened to them?

comments: author: Ben
body: Hi [@NickP](/t5/user/viewprofilepage/user-id/3806648) [@ratan_tirkey](/t5/user/viewprofilepage/user-id/1745296)

In the past year, we have[changed the way we display workspaces](https://bitbucket.org/blog/improving-navigation-for-bitbucket-users) to a single-workspace view. I would suggest clicking your avatar and selecting the **"All Workspaces"** option to view all the other workspaces that you have access to where projects may be present.

One other suggestion is that you may have logged into your Bitbucket Cloud account using your email alias rather than your primary email address, hence creating a blank workspace - this is explained below and I would suggest checking your git config to find other email addresses that you might have used in the past to log in and try these:

* <https://confluence.atlassian.com/bbkb/email-address-transferred-to-a-new-account-1188411865.html>

If neither of these apply, please let me know.

Cheers!

- Ben (Bitbucket Cloud Support)


Tags: cloud
Only transfer new or modified files during rsync deployment
Asked by Toby Onono:

I have a bitbucket pipeline setup to rsync to a server that hosts a Wordpress Site. The files on the server initially have a skeleton Wordpress site with a wp-config.php \& wp-config-sample.php but all the other wp files will be sent over.

When I run my pipeline how do I make sure that the wp-config \& wp-config-sample remain on the server after the pipeline has run but all new and modified files are sent. (I have wp-config.php in a gitignore so it's never sent over)

Pipeline code is here:

\`\`\`

image: node:10.15.3

pipelines:  
branches:  
develop: #name of the development branch  
- step:  
script:  
- pipe: atlassian/rsync-deploy:0.3.1  
variables:  
USER: $STAGING_USER  
SERVER: ''  
REMOTE_PATH: $STAGING_PATH  
LOCAL_PATH: './'  
EXTRA_ARGS: '-p --exclude-from=exclude-pipelines.txt'  
- ssh $STAGING_USER@ "find $STAGING_FOLDER. -type d -print0 \| xargs -0 chmod 0755"  
- ssh $STAGING_USER@ "find $STAGING_FOLDER. -type f -print0 \| xargs -0 chmod 0644"  

\`\`\`

I've found some of these flags but where do I incorporate them into what I have here?

Flags:

    rsync -h -v -r -P -t 

Thanks!


Answers:
author: Igor Stoyanov
body: [@Toby Onono](/t5/user/viewprofilepage/user-id/5317285) hi. Please, [check this post.](https://community.atlassian.com/t5/Bitbucket-questions/Upload-only-changed-files-using-rsync-pipe/qaq-p/1163921)

Regards, Igor


author: Saxea _Flowie_
body: Hi [@Toby Onono](/t5/user/viewprofilepage/user-id/5317285)Have you tried incorporating it in EXTRA_ARGS?


Tags: bitbucket-cloud

bitbucket-pipelines

cloud
Default value of custom variable is not picked up for builds triggered by git push
Asked by mihai onoprienco:

regarding this feature:

<https://community.atlassian.com/t5/Bitbucket-articles/Bitbucket-Pipelines-Predefine-values-of-custom-pipeline/ba-p/1938188>

PROBLEM FOUND: the default value is not set when the pipeline is triggered by a new code push. The value ( default or the picked one ) is only set when the pipeline is ++manually triggered++.

Below is a snippet from used pipeline:  
**pipelines:**  
**custom:**  
**compile-and-publish:**  
**- variables:**  
**- name: profile**  
**default: dev**  
**allowed-values:**  
**- dev**  
**- prod**  
**- test**  
**- name: isGA**  
**default: 'no'**  
**- step: \*compile**


Answers:
author: Theodora Boudale
body: Hi Mihai,

Variables defined this way are available only for custom pipelines:

* <https://support.atlassian.com/bitbucket-cloud/docs/pipeline-start-conditions/#Custom--manual--pipeline-variables>

Custom pipelines do not get triggered automatically when you do a git push, so I'm a bit confused about the problem you are reporting.

Have you perhaps defined such variables in a pipeline other than custom, e.g. a branch pipeline or the default pipeline?

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Feature request for email-notify: BCC
Asked by Kevin Helfer:

For the [email-notify](https://bitbucket.org/atlassian/email-notify/src/master/) package, I'd like to request support for the BCC field in emails.

We use the tool to notify our entire team of new releases and would like to prevent mass emails when someone (accidentally) clicks on "reply all". Putting recipients in the BCC field could effectively prevent this.


Answers:
author: Oleksandr Kyrdan
body: Hi [@Kevin Helfer](/t5/user/viewprofilepage/user-id/5317111)

We have added support for BCC field:

Example sending to multiple recipients using BCC ("Blind Carbon Copy"):  

```
script:  - pipe: atlassian/email-notify:0.11.0    variables:      USERNAME: 'myemail@example.com'      PASSWORD: $PASSWORD      FROM: 'myemail@example.com'      TO: 'myemail@example.com'      BCC: 'example1@example.com, example2@example.com, example3@example.com'      HOST: 'smtp.gmail.com'

```

Thanks for your contribution to the community.  

Best regards,  
Oleksandr Kyrdan

comments: author: Kevin Helfer
body: Hi Oleksandr, thanks a lot for implementing this!


author: Igor Stoyanov
body: Hi [@Kevin Helfer](/t5/user/viewprofilepage/user-id/5317111) . Thanks for feature request.  

We will investigate this and notify you when new version with this feature will be released.  

Regards, Igor


Tags: bitbucket-pipelines

cloud

email

notification
HELP: We couldn?t log you in
Asked by Simon Chen:

I can login with my google account to Jira but not Bitbucket, I got an error:

*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.*

I did some research from the community, I tired to clear all cache, but not work at all.

May you help to check my account please?

Thank you a lot.

Simon


Answers:
author: Ben
body: Hi Simon,

I can see that your colleague has raised a ticket in our support system on your behalf - please refer to this support ticket in your inbox for further communications.

Cheers!

- Ben (Bitbucket Cloud Support)

comments: author: Simon Chen
body: Thank you.

It has been solved.

This one could be closed.


Tags: bitbucket-cloud

cloud
I'm not getting email or notifications for invites
Asked by m-abozaid:

Hi  

Bitbucket repository owner has send me an email invite to join the repo, But I'm not getting any.

I have checked the spam folder and I don't see invites in there.

The repo owner tried to send the email invite again but it didn't help.

I have been added to repositories before using the same email, although I remember there was an issue getting the invitation then as well, it took multiple tries.

Thanks


Answers:
author: Ben
body: G'day!

I have checked our internal mail suppression list and cannot see your email address listed here, nor can I see any SMTP bounces received from your mail server.

There is a chance that notifications are disabled on your account which will block invitation emails and other emails from us - we have a comprehensive guide below on how to check these settings and troubleshoot further:

* <https://confluence.atlassian.com/bbkb/email-notifications-not-working-1224343600.html>

Hope this helps, please let me know how it goes.

Cheers!

- Ben (Bitbucket Cloud Support)


Tags: unknown-hosting-type
Unable to add private netowrk to whitelist
Asked by Jamal Ali:

I want to add my VPC network block to the IP restriction whitelist the Deluxe Workspace but im getting the error of: unable to add private network.


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

Private IP addresses are not accessible from the internet. They are used in internal networks, e.g. your home network or your company network, in order to identify the devices connected to this internal network.

You will need to add in the workspace's IP allowlisting the ++public IP address(es) or range++ that your network is using.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Can't link new remote to local repository?
Asked by Malkere:

I started a new project a few days ago, so there are several commits locally. I want to start pushing them to bitbucket for safety, so I setup a new project and repository on my account, then added the remote url via the Sourcetree-\>Repository-\>Repository Settings, but it wants me to login to fetch/pull/push. My login credentials do not work, and none of my other repositories require me to login.

I've tried selecting the account as my OAuth "Authentication OK" saved account, and setting it as a Generic Account with my username, but they both prompt me to login, blocking all progress.

All of the settings under Repository Settings (including the Advanced tab) are the same as my other working repositories, but this one will not click for some reason.


Answers:
author: Malkere
body: works everytime.. complain about it and it fixes itself.. apparently I needed to use my username in the url instead of [www.bitbucket.org](http://www.bitbucket.org)


Tags: bitbucket-cloud

cloud
How to Update Bitbucket Build Status from Azure Pipeline with Custom Message and Values?
Asked by sajo:

**How can I update the build status from Azure Pipeline to Bitbucket with a custom message and custom values? I've tried below APIs, but they didn't update the build status as expected. My goal is to see the build status reflected in commits and pull requests in Bitbucket.**

\`

```
curl -X POST -is -u <USER_NAME>:<APP_PASSWORD> \
-H 'Content-Type: application/json' \
https://api.bitbucket.org/2.0/repositories/<USER_NAME>/<REPOSITORY_SLUG>/commit/<COMMIT>/statuses/build \
-d '{
     "state": "SUCCESSFUL",
     "name": "Build key - description",
     "url": "https://<AZURE_URL_REFERENCE>",
     "description": "A general description"
    }'
```

\`


Answers:
author: Saxea _Flowie_
body: Try adding the key attribute to the payload. It's just an arbitrary value.

```
curl -X POST -is -u <USER_NAME>:<APP_PASSWORD> \
-H 'Content-Type: application/json' \
https://api.bitbucket.org/2.0/repositories/<USER_NAME>/<REPOSITORY_SLUG>/commit/<COMMIT>/statuses/build \
-d '{
     "key": "my-build",
     "state": "SUCCESSFUL",
     "name": "Build key - description",
     "url": "https://<AZURE_URL_REFERENCE>",
     "description": "A general description"
    }'
```

comments: author: sajo
body: I tried setting the 'key' but didn't get updated in bitbucket with custom message


author: Saxea _Flowie_
body: [@sajo](/t5/user/viewprofilepage/user-id/5316479) What's the response you get from the request? Any errors?


author: sajo
body: ![IMG_20230918_103342.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/281110i348DCE78F1EE0A5B/image-size/large?v=v2&px=999 "IMG_20230918_103342.jpg")

I attempted to set 'key' but bitbucket didn't display any status code and didn't update the custom message as shown in the screenshot


author: sajo
body: ![IMG_20230918_103131.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/281111iAD0E5B3577397A92/image-size/large?v=v2&px=999 "IMG_20230918_103131.jpg")


author: Saxea _Flowie_
body: Have you tried to run curl via cmd line directly on your machine? Then you can inspect the output and see what the issue is?


Tags: azure

bitbucket-cloud

cloud
There is an error in your bitbucket-pipelines.yml at [pipelines > branches > master > 0 > step].
Asked by Prakash:

i am getting below error

There is an error in your bitbucket-pipelines.yml at \[pipelines \> branches \> master \> 0 \> step\]. This section should be a map (it is currently defined as a list). [Find out more](https://confluence.atlassian.com/x/14RVMw)

This is my pipeline yml

image: 'atlassian/default-image:latest'  
definitions:  
steps: \&ref_0  
- step:  
name: SonarQube analysis  
image: 'sonarsource/sonar-scanner-cli:latest'  
caches:  
- sonar  
script:  
- sonar-scanner  
caches:  
sonar: /opt/sonar-scanner/.sonar  
clone: depth: full  
pipelines:  
branches:  
master:  
- step: \*ref_0  
pull-requests:  
'\*\*':  
- step: \*ref_0


Answers:
author: Saxea _Flowie_
body: Try placing the ref on the step and not steps.

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

comments: author: Prakash
body: Thank you [@Saxea _Flowie_](/t5/user/viewprofilepage/user-id/5230209) it works..


Tags: bitbucket-cloud

cloud
Unable to login Bitbucket - We couldn?t log you in EDITED
Asked by Alain Fern?ndez D:

I'm trying to access an invitation to collaborate on bitbucket using my email \*\*\*\*\*\*\*\*\*\*\*? but it won't let me access


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

I have checked your account and found that your account was inactive due to being dormant for a number of years.

I have since re-activated your account.

Please attempt to login and let me know how it goes :)

**NOTE:** I have censored your email address from this thread as this is a public forum.

Cheers!

- Ben (Bitbucket Cloud Support)


Tags: bitbucket-cloud

cloud
Pull Request stuck merging
Asked by mitch evans:

tried a couple of times to merge a pull request a very simple change, but it just seems to spin after pressing merge in the bitbucket pull request page just get the following message

Merge in progress {#toc-hId--436397973}
---------------------------------------

This pull request is being merged in the background. You can safely navigate away. The status of the pull request will be updated once it is merged.


Answers:
author: Patrik S
body: Hello [@mitch evans](/t5/user/viewprofilepage/user-id/249152) ,

We have identified an issue that was causing slowness on Pull Request for some customers, and our engineering team already deployed a fix, so the Pull requests should be loading normally again.

If you are still facing the same issue, please let us know.

Thank you, [@mitch evans](/t5/user/viewprofilepage/user-id/249152) !

Patrik S

comments: author: mitch evans
body: yes i was able to merge now Thank you


author: Peter Drexel
body: I am having this same issue today.


author: Peter Drexel
body: Seems to be working now


author: Argana Phangquestian
body: hi [@Patrik S](/t5/user/viewprofilepage/user-id/4603309) i'm having this issue now....


author: Rolf Fokkens
body: So am I. It's a small change, is stuck though.


author: Taras Verhun
body: Same problem here today. How long shall we wait?

Business can't wait!


author: JaytySTN
body: Snap. I have submitted a ticket for this.


Tags: bitbucket-cloud

cloud
crucible command line review
Asked by dhandu:

Hi,I am trying to craete a review from command line , could you please help me how to upload the created review from command line from my local repository.  

I used this commdn to create a review from my local repo command line  

crucible_cli --action createReview --project "training" --file cli.txt --allowReviewersToJoin  
Review training-30 created  

Also refered this link.  

https://studio.plugins.atlassian.com/wiki/display/CRUCLI/Crucible+Command+Line+Interface

<br />

<br />

Thanks  

dhandapani


Answers:
author: dhandu
body: Hi Bob, Could yu please let me know how to update the created review from command line to crucible server. since I found there is pre commit upload option avilable in the Gui, but the same CLI option is not avilable , we need to push our code to crucible server from command line for review.

Thank you


author: dhandu
body: Hi , could you please let me know how to upload the patch from command line , I see the option avilable at gui , after created the review from command line , how can I send that file for review ?

Thanks

Dhandapani


author: dhandu
body: Hi Bob, I would like to review from command line crucible . yes, My review was created , but in the review link I am not getting the file updated, its present in my local repo, I have added and committed the file. after the CLI review created I am not able to see the file , but I can see the review link updated ino the crucible.

My requirement is add the file and create a review before commit or push the file to repo.

Thanks for your help

Dhandapani


author: Bob Swift (personal)
body: I don't understand your question. It looks like your review was created.


Tags: cloud

fisheye-crucible-svn-ondemand
JIRA issue link is not appearing in Crucible
Asked by Ivan Pupkin:

Dear All.

I am correct that after addin application link to JIRA in Crucible

JIRA issue link should be displaying while creating review?

After my upgrade to 2.7.11 there isn't such link.


Answers:
author: meena radhakrishnan
body: see

<https://answers.atlassian.com/questions/49715/jira-issue-ids-are-not-linked-in-crucible>
SVNSYNC Error
Asked by Setul Dhanani:

while running svnsync below

svnsync init --username name file:///home/SVN_REPO/backupsvn https://\<account_name\>.atlassian.net/svn/

I get the following error

svnsync: Server sent unexpected return value (403 Forbidden) in response to OPTIONS request "https://\<account_name\>.atlassian.net/svn/"

Could anybody shed some light on what could be the issue?

Thanks in advance


Answers:
author: Michael Knight
body: You need to ensure that the user account you're using to run the SVNSync with has:

* [application access](http://confluence.atlassian.com/display/AOD/Managing+application+access) to FishEye, and
* [full read access](http://confluence.atlassian.com/display/AOD/Configuring+repository+permissions) to the entire repository (including read access to the root ("/") path).


Tags: cloud

fisheye-crucible-svn-ondemand
Separated administration permission for Fisheye
Asked by Hieu Le Trung:

Hi,

I wonder if it is possible to have separated administration permission for Fisheye so that, one can have full administration, one can have repository management permission, one can have other permission.

Thanks,

-Hieu


Answers:
author: Sten Pittet
body: Unfortunately it will not be possible to have different types of administrators in FishEye. We only have a global administrator account.


author: Hieu Le Trung
body: Hi Sten,

I'm using SVN and Mercurial which is external from Fisheye. Let me know if it's still possible to do so.

BTW, I just want a separated administrative permission so that I can have multiple administrator types inside Fisheye.

Thanks,

-Hieu


author: Sten Pittet
body: Hi Hieu,

Are you using FishEye as a repository management solution for Git? Or are you indexing external repositories.

If it's the former case then I probably have a solution for you. We're currently working on a pure repository management solution with flexible user permissions tailored for organizations. We're starting a beta this week and I'd be happy to add you to our list of beta testers.

Could you email me at spittet at atlassian dot com regarding this?

Thanks,

Sten Pittet  
FishEye / Crucible Product Manager
Reporting options - reviews per project in a given timeframe
Asked by Amrita Aviyente:

Hi

I wanted to know what are the reporting options I have for generating reviews.

We are not using any SCM integration. Reviews get created using attachments.

I am trying to get stats on the reviews done. Something like reviews created per project in a given month. Any idea how I can generate that?

It is running on HSQLDB.


Answers:
author: Renjith Pillai
body: You could do it with a simple REST client to dump the reviews from Crucible. Another option is to dump the data into Excel and do all the statistics as per your requirement.

<http://code.google.com/p/crucible-excel-dump/w/list>

comments: author: Amrita Aviyente
body: I tried it and ran into issues.

Have you tried this before? Can you share an example?


author: Renjith Pillai
body: You can check the source at <http://code.google.com/p/crucible-excel-dump/source/browse/trunk/CrucibleData/MainForm.cs>


Tags: report
How do I re-establish the links?
Asked by shabbaranks:

Hi,

After configuring Fisheye and Jira to talk to each other which it appears they are doing so, a developer asked where the source tab was. Not knowing a great deal about the two applications I decided to hunt down a solution, which seems to be that the remote API needs to be enabled. I have enabled it and restarted the jira\\fisheye services but I cant see how I "re-established the application link using Trusted, re-establsihed the Project link" can anyone tell me how I do this please?

Thanks


Answers:
author: shabbaranks
body: It wasnt the links that were the problem, I needed to set the trusted authentication up. Now it works
Can I increase the number of repositories that FishEye will QuickSearch above 100?
Asked by Mark McD:

We have well over 100 repositories being managed by FishEye at present. A lot of them are small, single-purpose packages with very little code, but there are a couple of big packages.

When using FishEye's handy quicksearch feature, we get this message: "Limiting the search to the top 100 repositories by alphabetical order".

Unfortunately the most important repositories we want to search fall off the back as they're too far down the list. Is it possible to either increase this number beyond 100 or override the list of included repositories? If so, are there any implications we need to consider?


Answers:
author: Pierre-Etienne Poirot
body: Hi Mark,

I created an issue for this ([FE-3973](https://jira.atlassian.com/browse/FE-3973)) and it should be in the next version of FishEye (2.7.12).

It will enable you to increase the limit using a new system [property](http://confluence.atlassian.com/display/FISHEYE/System+Properties): *-Dfisheye.search.max.repositories=250*

Hope this help,

Pierre

comments: author: Mark McD
body: Wow, thanks!


Tags: limit

search
Generate crucible review reports
Asked by Vishal Parihar:

Hi,

We are currently evaluating Crucible. We are using crucible for reviewing post commit code. One of our goals of this "post-commit" review is that we need to be able to convey the diffs and associated comments to the overseas team. Also, when the overseas team looks at these reports, they should be able to easily pick up those changes for a later merge. I hope I have made my concern clear enough. Please let me know if there is a better way to report the reviewed material.

Thanks

Vishal


Answers:
author: Renjith Pillai
body: Does this help (to dump all reviews and comments) ? <http://code.google.com/p/crucible-excel-dump/wiki/InstallationAndUsage>

And this one if you need to dump individual reviews. <https://plugins.atlassian.com/plugin/details/32477>