youngmon/atlassian-qna huggingface dataset:
Bitbucket Build Number Confusion
Asked by Bitwise DEVS:

We are currently reading this [article](https://bitbucket.org/blog/bitbucket-pipelines-can-count-builds-numbered) and already using Bitbucket Build Number feature. However after reading it again makes us a bit confuse.

1. If branch develop BUILD NUMBER value is 30 and we merged it to master and triggers a build in pipeline, then will it become 31?

* *$BITBUCKET_BUILD_NUMBER* values will be unique across all branches, meaning you can use it as a software build number that won't clash with builds on other branches

2. If we rerun a pipeline build in master that is now having 31 as its BUILD NUMBER value, will it become 32?

* rerunning a build will give it a new build number, also avoiding clashes and helping you track reruns better in the list of completed builds

3. Many said that BUILD NUMBER is equal to the current number of build in pipeline unless you did not do something.

Does rerunning a build pipeline will cause it to not get in synch with what is showing in pipeline tab? If yes, then how to see the current BUILD NUMBER value using cURL or RESTful API?


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

Let me go through your questions and address them individually :
> If branch develop BUILD NUMBER value is 30 and we merged it to master and triggers a build in pipeline, then will it become 31?

You're correct, the build number is not tracked based on branches. It's a repository-wide counter that increases every build (doesn't matter to which branch), so each pipeline run will have a unique build number. The variable BITBUCKET_BUILD_NUMBER will be populated with the number of the current build.
> If we rerun a pipeline build in master that is now having 31 as its BUILD NUMBER value, will it become 32?

Correct. Each pipeline run will receive a new build number which is +1 to the last pipeline executed in the repository.

> Many said that BUILD NUMBER is equal to the current number of build in pipeline unless you did not do something.
>
> Does rerunning a build pipeline will cause it to not get in synch with what is showing in pipeline tab? If yes, then how to see the current BUILD NUMBER value using cURL or RESTful API?

The environment variable BITBUCKET_BUILD_NUMBER will always be in sync with what is showing on the pipeline page.

Hope that helps! If you have any follow-up questions feel free to ask.

Thank you, [@Bitwise DEVS](/t5/user/viewprofilepage/user-id/3162676) !

Patrik S

comments: author: Bitwise DEVS
body: Thank you so much for spending a time answering my questions, really appreciate it!


Tags: bitbucket-cloud

cloud
Setting up a bitbucket pipeline by committing and pushing bitbucket-pipelines.yml on a feature branc
Asked by Shivang Kumar:

I have pushed bitbucket-pipelines.yml on a feature branch of a bitbucket repo.

The contents on the yml file seems syntactly correct.

Still, I am not able to find the pipelines on the bitbucket UI.

On the pipeline section, I am still getting a message to setup a pipeline.

My understanding was that if we push a valid bitbucket-pipelines.yml on the root path of any repo, pipelines would start showing up. In my case, I just want to run a custom pipeline step on the feature branch only for now.

By the way, pipelines are enabled.

What i am missing here?


Answers:
author: Patrik S
body: Hello [@Shivang Kumar](/t5/user/viewprofilepage/user-id/4074887) and welcome to the Community!

For Bitbucket to identify that pipelines were enabled and that a valid yml file was already pushed, you will need to add the YML file to the **main** branch of your repository (usually master branch).

So if you haven't already, try pushing the YML file to the main branch as well, and the pipelines page should correctly identify it.

Once that is done, you can trigger the custom pipeline from your feature branch by navigating to Pipelines page and clicking on the **Run Pipelines** button in the top right corner.

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

Thank you, [@Shivang Kumar](/t5/user/viewprofilepage/user-id/4074887) !

Patrik S

comments: author: Shivang Kumar
body: Thank you [@Patrik S](/t5/user/viewprofilepage/user-id/4603309)

This solution worked. Actually, I was not ready to push the same pipeline code, which is under development in the feature branch, to the main branch.

As a work around, I just pushed a dummy pipeline yml which practically does nothing.

After this, I was able to run my own custom pipeline from the feature branch.

Thanks again!!


Tags: bitbucket-cloud

cloud
when my pipeline push my projects files on server my poject file present in sever gets overwrite er
Asked by Siddhant Pandey:

i am stuck on a step it is after my pipeline runs successful my whole project gets overwrite by new push done by my pipeline i am not able to run it automatically with my pm2 reload command whenever changes are done i just have to setup my python fastapi project manually can some one help me. how can i run my pyhton fastapi project with the help of my pipeline without dong it manually everytime.

![4.png](https://community.atlassian.com/t5/image/serverpage/image-id/281695i24EB15754C91A742/image-size/large?v=v2&px=999 "4.png")![3.png](https://community.atlassian.com/t5/image/serverpage/image-id/281693i19F9AC938877A621/image-size/large?v=v2&px=999 "3.png")![2.png](https://community.atlassian.com/t5/image/serverpage/image-id/281694iA39D004222A4C341/image-size/large?v=v2&px=999 "2.png")![1.png](https://community.atlassian.com/t5/image/serverpage/image-id/281696i3A72AD55BB0DF3E5/image-size/large?v=v2&px=999 "1.png")

suggest me changes need to required.


Answers:
author: Syahrul
body: G'day [@Siddhant Pandey](/t5/user/viewprofilepage/user-id/5236498)

**rsync**will sync files and directories between two hosts or machines. So, if you use rsync to deploy to your server, it will sync everything in bitbucket over to your server.

So, if you don't want your server files to be overwritten by rsync, my suggestion is to check the following guide:

[Rsync --exclude](https://phoenixnap.com/kb/rsync-exclude-files-and-directories)

Use these options to exclude specific files or directories from being overwritten when you sync from Bitbucket to your server. Example usage in Rsync pipe:

```
script:  - pipe: atlassian/rsync-deploy:0.10.0    variables:      USER: 'ec2-user'      SERVER: '127.0.0.1'      REMOTE_PATH: '/var/www/build/'      LOCAL_PATH: 'build'      DEBUG: 'true'      EXTRA_ARGS: '--exclude=*.txt'
```

This pipe will exclude all \*.txt files in your server from being overwritten.

Regards,  
Syahrul


Tags: bitbucket-cloud

bitbucket-pipelines

cloud
Public Repo - allow only internal user to be Reviewer
Asked by Valeria Ivanova:

Hello,

I have a couple of questions about Public Repositories.

We have a public repository, and it seems that anyone in the world (with a Bitbucket account) can Approve or Request Changes on an open PR.

1) Is it possible to have a public repository but only have our internal users (users who have been granted access to our Bitbucket and then project/repository) as our only reviewers where only they can approve/reject and merge?

I understand that public users can not merge PR, but we got a request for the public logged-in Bitbucket user not having the capability to review (Approve/ Request Changes/decline and so on). Is that even possible?

2) When assigning reviewers is it possible to only have our internal users as reviewers (and only for internal users to show up in the user picker list?) Or the reason we get a public list of users in the user picker list is driven by the fact that this is a public repository?

3) When our repository is set to private all of our internal members show up in the Reviewers User picker list, when the repository is set to public many of our internal users don't show up in the Users picker list when I search them up (including the ones that did show up when the repo was set to private). does anyone know why that is happening?

Thank you,

Valeria


Answers:
author: Ben
body: Hi Valeria,

The nature of a public repository is that the repository is accessible by anyone with few restrictions. I have raised a [feature request](https://confluence.atlassian.com/support/implementation-of-new-features-policy-201294576.html) on your behalf with our developers to provide this option, you can **Watch** this request to receive future updates related to it and **Vote**for it to improve its visibility:

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

I believe the issue you are facing related to users not showing up depends on their privacy settings. Previously, when you signed up for a Bitbucket Cloud account - your account would be associated automatically with a personal workspace (this was used for authentication). If these users have a personal workspace tied to their account this personal workspace may be listed as "Private" and therefore are incompatible with a Public workspace for this reason.

I hope this helps.

Cheers!

- Ben (Bitbucket Cloud Support)


Tags: bitbucket-cloud

cloud
Skipping Versions in an Upgrade (From 2.4 to 2.7)
Asked by John McAdams:

I have been given the task of upgrading our Crucible/Fisheye instance and we are at version 2.4.2 and I want to go to the 2.7 release and no, we do no have a test instance :(

Is it safe to skip the 2.5 and 2.6 versions since I noticed those versions do make changes to the metadata?


Answers:
author: tier-0 grump
body: It shouldn't be a problem - see <http://confluence.atlassian.com/display/FISHEYE/FishEye+Upgrade+Guide>

A few things to watch out for:

In FishEye 3.0 we've dropped support for Postgres 8 and MySql 5.0 - It's a good idea not to use either of these for 2.7 as well.

If you're using JIRA for user management, then the process wil take a long time due to resync.

comments: author: John McAdams
body: Thanks, I will try the upgrade and vote this up and accept if all goes well. What will be the minimum MySQL supported in 3.0? We're on 5.1 right now, but I could move us to 5.5 when I do this upgrade.


author: tier-0 grump
body: 5.1 is the minimum, I'd stick with that for now. One less thing to worry about :-)


author: Nick
body: Hi John,

As always, please ensure you take a full-backup of the FishEye data directory before attempting to upgrade.

There are some upgrade tasks, which will force a re-index of each repository (not a full re-index, however a re-index of some of the lucene indexes none the same) so you will notice some repositories will not be immediately available. Depending on your repository size, and the number of repos you have, these should be finished within a few hours max however.

Cheers,

Nick
I'm new. Can I host mercurial repositories on your hosted solution?
Asked by Riley Eynon-Lynch:

I'm having trouble understanding which part of the product does what. I'm in a trial with three components, including whichever component was the source/reviewy component - Crucible? I can't see how to clone my hg repository to atlassian, or even any mention of hg anywhere. Please help!


Answers:
author: Nick Mason
body: FishEye and Crucible only integrate with the built-in Subversion repository in OnDemand, unfortunately you can't hook them up to an external repository of any sort.

Since you're using Mercurial you can use the [JIRA DVCS Connector](https://plugins.atlassian.com/311676) to connect to repositories on Bitbucket, which will give you linking between commits on those services and JIRA issues (in the "Commits" tab when on JIRA's view issue page), but you don't get the FishEye code browsing or Crucible reviews functionality.


Tags: cloud
svn only access?
Asked by Rob Moore:

I would like to give some users access only to subversion (for example, automated processes) since they have no need for the functionality of Crucible and/or Fisheye. Is this possible somehow?


Answers:
author: Felipe Cuozzo
body: No this is not possible, the user must have FishEye/Crucible access to also have SVN access.  
Also please read the following important announcement:

[End of Service Announcement for Subversion and FishEye/Crucible in OnDemand](http://go-dvcs.atlassian.com/display/EOL/Source+Review+Bundle+End+of+Service)

Please direct your questions to this question:

[Subversion, FishEye/Crucible (the Source + Review Bundle) on OnDemand End of Service](/questions/95199/subversion-fisheye-crucible-the-source-review-bundle-on-ondemand-end-of-service)


Tags: cloud

fisheye-crucible-svn-ondemand
Is it possible to reduce the number of change sets scanned each time during re-indexing?
Asked by Daisuke Niwa:

Hi there,

Currently, FishEye scans 400 change sets at each time during re-indexing as below.

2012-04-09 00:12:56,541 INFO \[InitialPinger1\] fisheye.app SvnRepositoryScanner- slurpRevisionBlock - Slurping from 7526 to 7925

2012-04-10 09:33:46,134 INFO \[InitialPinger1\] fisheye.app SvnRepositoryScanner- slurpRevisionBlock - Slurping from 7926 to 8325

Is it possible to reduce the number to, say, 300 or 200?

The background of this question is when an error occurs during scanning, FishEye goes back to the initial change set of the block, therefore we would like to reduce the number of "lossed" change sets.

We appreciate your input.

Regards,

Daisuke Niwa


Answers:
author: rverschoor
body: This is controlled by the **Block Size** setting.  
In the Repositories list, click on the SVN repo name, SCM Details, and you'll see the Block Size listed under SVN Options.  
Don't forget to Save after you made a change.  
When the field is empty it defaults to 400.

If you add a new repository you can set the Block Size straight away, it's shown when you click "Show advanced settings".

comments: author: Daisuke Niwa
body: Thanks Rene,

Helps us a lot.
Cannot commit to Atlassian OnDemand SVN repository
Asked by Yu Ning:

I am working on a project hosted on Atlassian OnDemand. Yesterday when I tried to commit some code to its built-in SVN repository, I got the following error from TortoiseSVN:

Command Commit  
Error Commit failed (details follow):  
Error Can't create directory '/data/jirastudio/svn/root/db/transactions/17-z.txn': No  
Error such file or directory

I was able to commit to the same SVN repository just a week ago. The error looks like a permission issue, but I did not change the default permission settings for that project. I am in the administrators, developers, and users groups.

Does anyone have an idea why this is happening? Any help is appreciated!


Answers:
author: Dennis Kromhout van der Meer
body: Hi Raph, I recommend you to create a support ticket for this at [support.atlassian.com](https://support.atlassian.com/secure/SENVerification.jspa?issuetype=1&pid=10140). The support engineers are usually quite responsive and can help you solve this problem quickly :)

comments: author: Yu Ning
body: Hi Dennis, many thanks! I just created a support ticket. Hopefully this issue will be resolved soon.


author: Dennis Kromhout van der Meer
body: Great! Be sure to mark this question as answered to help others find this question :)


author: Yu Ning
body: An Atlassian engineer fixed the issue after I created a support ticket for it. It turned out that the problem was on the Atlassian OnDemand server. The following is from the engineer's comment:
> It looks like there was a side-effect of an outage your instance experienced over the weekend. I have repaired the missing directory and was able to successfully commit after that.


Tags: cloud

commit

fisheye-crucible-svn-ondemand
SSH public/private key authentication
Asked by JeenB:

I am trying to figure out how to enable ssh public/private key authentication for access to SVN in OnDemand, but have sofar failed to find a solution. Is this really not possible, or am I looking in the wrong place?


Answers:
author: Dennis Kromhout van der Meer
body: ssh public/private key for OnDemand SVN authentication is unfortunately not possible, sorry about that. However, I raised an improvement request for OnDemand here: <https://studio.atlassian.com/browse/JST-5879>

comments: author: JeenB
body: Thanks for responding, it's as I feared. I'll vote on your improvement request though :)


Tags: authentication

cloud

ssh
How to configure which emails Crucible sends?
Asked by Shelli:

Hi,

We would like Crucible to send out an email to reviewers to notify them of a new review. However, we do not want to received emails that comments have been made against a review. Can this be turned off?

Thanks!


Answers:
author: Renjith Pillai
body: Per user there are settings in Crucible which decides how the user receives the mails. <http://confluence.atlassian.com/display/FISHEYE/Changing+your+User+Profile> (Reviews Tab)


Tags: configuration

email
Does modifying a regex under SVN Symbolic Rules force a full reindex?
Asked by Rob Wiskow:

We have a very large codebase, which took over a week to fully index. While we've got some better hardware, so it hopefully won't take that long again, I'm still trying to avoid having to go through the whole process again. Unfortunately, I realized that I misspelled something in a branch regex under the SVN Symbolic Rules.

If I fix this, will this force a full reindex?


Answers:
author: rverschoor
body: I'm afraid it does.

**Edit:** When you change a regexp, FishEye will suggest that you re-index the repository.  
In most cases that's indeed the best thing to do.  
However, you can choose to ignore the suggestion to re-index.  
After a restart of the repo the already indexed data is preserved.  
Only new changesets will be indexed with the new regexps.  
In some circumstances this can be exactly what you want, or you don't care that the already indexed data was done using the old regexps.  
If you're not sure, it's best to run the re-index as FishEye suggests, so the data is consistent with the configuration.
Which freemarker values are available for an email template?
Asked by Douglas Seay:

I see at <http://confluence.atlassian.com/display/CRUCIBLE/Customising+Email+Notifications> that it is pretty easy to customize the emails, but I don't see a list of which values are defined? Basically, what content can I put into one of these templates?

<br />

If it matters, this is for crucible 2.7.8


Answers:
author: Sergey Svishchev
body: Only developers know this, bumping this question for their attention


Tags: template
Receiving "The database is not using Unicode. Crucible requires that the database uses a UTF8 encoding to support internalization".
Asked by William Wells:

I am receiving this error when I attempt to test the Fisheye connection, even though I unchecked the Crucible option during the initial setup.

I setup a mySQL database and user as seen below. The SQL database is running on a separate server from the Fisheye install.

CREATE DATABASE fish_db character set utf8;

CREATE USER 'fishdbuser'@'%' IDENTIFIED BY 'passwd';

GRANT ALL PRIVILEGES ON fish_db.\* TO 'fishdbuser'@'192.168.200.14' IDENTIFIED BY 'passwd' WITH GRANT OPTION;

On the Database Configuration page my settings are:

Type: MySQL

Driver Location: Bundled

URL: jdbc:mysql:192.168.200.14:3306/fish_db

User Name: fishdbuser

Password: passwd

Minimum Pool Connections: 5

Maxiumum Pool Connections: 20

Parameters: useUnicode=true

characterEncoding=UTF8

connectionCollation=UTF8_bin

I've logged into the SQL server and performed the following with success:

use fish_db;

show databases;

+--------------------------------------+

\| Database \|

+---------------------------------------

\| information_schema \|

\| crowd_db \|

\| fish_db \|

\| jira_db \|

\| mysql \|

+---------------------------------------+

As you can see, I have both jira and crowd databases working from this same instance. I don't understand why Crucible is even being considered when I unchecked the box for the Crucible setup.

I've dropped the database and user a few times and recreated, but that hasn't resolved the issue. I've flushed the privileges as well, but nothing seems to work.


Answers:
author: Stijn Bienkens
body: Use collation utf8_bin for the database and it should work.


author: Suchi
body: Hi All,

I am getting the same error for MSSQL server 2008. I have given connectionCollation='SQL_Latin1_General_CP1_CI_AS' but same error.

Can any one please guide what are the require parameters need to defined for SQLSERVER2008 connection?

Thanks,

Suchi
How do send an email notification when new code checked in?
Asked by vrazhanskiy:

This is probably trivial but i can't find this option in onDemand


Answers:
author: Jobin Kuruvilla [Adaptavist]
body: Are you able to do as follows?

<http://confluence.atlassian.com/display/FISHEYE/Watches#Watches-ConfiguringWatchesforaSpecificRepository>

I am not sure if it will work in onDemand. I don't see it as a restricted function, so it might!

comments: author: vrazhanskiy
body: Don't see those options in OnDemand


Tags: cloud

fisheye-crucible-svn-ondemand
Fisheye license count issue (would like to make the count the same as we see in Crucible)
Asked by NameMedia:

In our company the same users use fisheye and crucible, both running off of the same installation. We use our separate, standalone JIRA installation as our CROWD server for SSO.

Crucible counts users based off of which users are checked off as active Crucible users. Fisheye seems to count users based off of the number of active JIRA users. How do we fix this so that we aren't adding more to our Fisheye license count than actually use Fisheye?

Thanks!


Answers:
author: zoran_baxshop
body: Default it will use jira-users, but you can change it to (for example: jira-developers).

FishEye -\> Administration (in the footer) -\> Authentication -\> Authenticate against: a JIRA instance -\> Next -\> Select a different Available Group (as said for example jira-developers)


Tags: count

licence
Source->Users error always displayed: User listings have been disabled. Please contact your administrator for more details.
Asked by Jason Bramsden:

Hi,

Whenever I click on the Source-\>Users tab I only ever see the following error: User listings have been disabled. Please contact your administrator for more details.

I have looked at all my permission settings but I can't find the control for User Listing.

Thanks in advance for your help

Jason


Answers:
author: YvonneY
body: Hello Jason,

The feature you are referring to to see all the users in FishEye is in our OnDemand solution disabled due to a security issue. When it was enabled it was possible to see all the activities of other users, which is not intended. It will likely be enabled again in a future release, but there is no estimation yet when.

However, there is a [bug report](https://studio.atlassian.com/browse/JST-5511) open in our system, and I would like to encourage you to vote on it, so it will be given the right priority and implemented in a future release.

But if you don't see any issues arising from this we are happy to make the necessary adjustments for you.

Please request this adjustments by filing a support ticket with us.

Thank you and kind regards,

Yvonne


Tags: cloud