youngmon/atlassian-qna huggingface dataset:
Bug in Bitbucket Pipeline Log
Asked by Argee:

Hello,  

my Bitbucket Pipeline has a \`.\` being replaced by workspace variable.   

Example:  

git config user.name bitbucket-pipelines  

is shown in the pipeline as \`git config user**$PRD_KONG_COMMON_CLIENT_SECRET**name bitbucket-pipelines\`


Answers:
author: Theodora Boudale
body: Hi [@Argee](/t5/user/viewprofilepage/user-id/5266952) and welcome to the community!

The reason why this occurs is because there is a secured user-defined variable with the name PRD_KONG_COMMON_CLIENT_SECRET and the value dot, \`.\`

This is not a bug, this behavior is by design. Pipelines masks secure variables so they are not disclosed to team members viewing build logs. If a value matching a secured variable appears in the logs, Pipelines will replace it with $VARIABLE_NAME.

This could be a repository variable (from **Repository settings \> Repository variables** ), a workspace variable (from **Workspace settings \> Workspace variables** ), or a deployment variable (from **Repository settings \> Deployments**).

Please feel free to reach out if you have any questions.

Kind regards,  
Theodora


author: Argee
body: Adding the sample Pipeline Bug...  

![Screenshot 2023-11-28 at 1.55.15?PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/294047i92CA8D7711EE56AC/image-size/large?v=v2&px=999 "Screenshot 2023-11-28 at 1.55.15?PM.png")


Tags: bitbucket-cloud

cloud
Migrate to cloud
Asked by ekontarzhy:

Hi,

I want to import a repository from the server-based BitBucket to a cloud instance, but getting a 'Not a valid URL' error.

Thanks,

Evgeny


Answers:
author: Ben
body: G'day!

To migrate using the repository importer, your Bitbucket Server domain needs to be [publicly accessible](https://confluence.atlassian.com/bitbucketserver/allowing-public-access-to-code-776639799.html). If it's not [publicly accessible](https://confluence.atlassian.com/bitbucketserver/allowing-public-access-to-code-776639799.html) Bitbucket Cloud will not be able to access your Bitbucket Server to perform the import.

I would also suggest whitelisting our IP addresses for Bitbucket Cloud on your firewall:

* <https://support.atlassian.com/bitbucket-cloud/docs/what-are-the-bitbucket-cloud-ip-addresses-i-should-use-to-configure-my-corporate-firewall/>

Alternatively, you can also use the BCMA tool to migrate (note: your server will need to be version 7.0+):

* <https://support.atlassian.com/migration/docs/use-the-bitbucket-cloud-migration-assistant-to-migrate/>

Please let me know if you need further assistance.

Cheers!

- Ben (Bitbucket Cloud Support)

comments: author: ekontarzhy
body: Hi Ben,

IP addresses are whitelisted and traffic is allowed on our firewall, however, there is no traffic seen for altssh.bitbucket.org.

We are seeing traffic is decrypted for URL **bam.nr-data.net.**

Is bam.nr-data.net related to the BitBucket service and do we need to remove decryption for it too?

Thanks,

Evgeny


author: Ben
body: Hey Evgeny,

The **altssh.bitbucket.org** domain is only used when SSH traffic is passed through alternate ports (in cases where internal security policies prevent port 22 from being opened) - more info here:

* <https://confluence.atlassian.com/bbkb/port-22-is-blocked-on-local-network-1168865232.html>

As for **bam.nr-data.net -**this is used for collecting site loading metrics and is used by all of our products, I would suggest allowing this as well and trying again.

Please let me know how this goes.

Cheers!

- Ben (Bitbucket Cloud Support)


author: ekontarzhy
body: Hi Ben,

The issue with **bam.nr-data.net** / is also resolved... We don't see any block on the firewall for URLs contacting the keyword **bitbucket**but still getting the same error.

Thanks,

Evgeny


author: Ben
body: Hey Evgeny,

I've opened a support ticket on your behalf as I would need you to share sensitive data such as screenshots that would not be appropriate for a public forum.

Please check your email inbox for further correspondence.

Cheers!

- Ben (Bitbucket Cloud Support)


Tags: bitbucket-cloud

cloud
Recursive pull request
Asked by Esteban Schir:

Hi all,

I am trying to create a pilot using Git, Fisheye, Jira and Stash (still to be decided if I will use Jenkins, Bamboo or other CI tool). The special issue about it is that I want the pull-request or code review request after it is approved by the branch maintainer to generate automatically another pull request or code review for the master branch integrator. Any ideas of how can be accomplish?

Basically I should have 3 different branches; developer's branch, team branch to which developer's changes are merged after first pull request gets approved and a master branch to which developer's changes got merged after team branch maintainer pull request is approved by the integrator
\<font\>\</font\>

Thank you in advance.
\<font\>\</font\>


Answers:
author: Adam
body: That sounds like the perfect case for a plugin. [Creating a Stash plugin](https://developer.atlassian.com/stash/docs/latest/how-tos/creating-a-stash-plugin.html) has the overview of how you can do that.

Check out [Responding to events](https://developer.atlassian.com/stash/docs/latest/how-tos/responding-to-application-events.html) and the [PullRequestMergedEvent](https://developer.atlassian.com/static/javadoc/stash/latest/api/reference/com/atlassian/stash/event/pull/PullRequestMergedEvent.html) for how to determine when a pull request is merged into a certain branch. You should note that this will only fire if there actually is a pull request (if it's just merged manually then it won't work out). Depending on the exact logic you want, you might want to use a repository hook instead or in addition.

Then checkout PullRequestService.create for creating a new pull request behind the scenes whenever there is a PullRequestMergedEvent.

Good luck!


Tags: bitbucket-server

git

pull-request

review
Crucible CLI getReviewList for a specific moderator
Asked by D K:

Hi,

Is there any way to get all reviews for a specific user moderator in the Open state.

It looks like the getReviewList option does not support a author or moderator parameter:

<https://bobswift.atlassian.net/wiki/display/crucli/Documentation#Documentation-getReviewList>

Is there another means to do this with runFromSQL?


Answers:
author: Bob Swift (personal)
body: [Open an issue](https://bobswift.atlassian.net/browse/CRUCLI) to see about getting more subsetting options. Crucible CLI is set of a major upgrade in the next iteration or 2.

comments: author: D K
body: Done:  
https://bobswift.atlassian.net/browse/CRUCLI-20


Tags: cli
Crucible Command Line Interface v3.2.0 throws SSLHandshakeException
Asked by D K:

```
crucible.bat --action getReviewList
```

returns:
> Client error: Invalid request: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
>
I've also tried pass the location of my JDKs truststore but I get the same SSLHandshakeException:

```
java -Djavax.net.ssl.trustStore="C:\Program Files\Java\jdk1.7.0_15\jre\lib\security\cacerts" -jar crucible-cli-3.2.0.jar --server "https://crucible.xyz.com/" --user "mywebusername" --password "mywebpassword" --action getReviewList
```


Answers:
author: Bob Swift (personal)
body: Here are some pointers to similar issues:

1. \<del\>[CSOAP-70](https://bobswift.atlassian.net/browse/CSOAP-70 "Unable to get Windows CLI 1.5.0 working over HTTPS")\</del\>
2. [\<del\>CSOAP-24\</del\>](https://bobswift.atlassian.net/browse/CSOAP-24 "Export space returns HTTPS hostname wrong exception on SSL sites")
3. [\<del\>JCLI-60\</del\>](https://bobswift.atlassian.net/browse/JCLI-60 "how to get the JCLI to not worry about funny HTTPS certs")


Tags: cli

https
Search a build for specific text in each contributing file
Asked by Susan Eckardt:

the Project has mandatory marking for files both in their headers and in their check-in attributes.

text to be included within the first 5 lines would take the form "Frog, Juvenile, Tadpole".

my objective is to set up a report for a given branch that identifies any file that lacks this identification.


Answers:
author: Gary
body: Hi Susan,

I don't think this would be possible. The closest workaround would be to write a custom script that uses the bamboo build task to run and searches for keywords you are looking for, and output a list. You could probably incorporate the fisheye api as well in to this script.

Cheers,

Gary


Tags: cloud

fisheye-crucible-svn-ondemand
Adding new project in crucible/fisheye does not display list of repositories
Asked by Raju KC:

While adding new project in crucible/fisheye, list of repositories is empty although I have two repositories defined in Fisheye. What's the problem?


Answers:
author: Sergey Svishchev
body: It's quite likely that your user account doesn't have read permission for those repositories, or you are logged in with admin password only.
Index sizes in Crucible?s ?light? Fisheye vs full Fisheye for Perforce repositories with many branches and cross integrations
Asked by Fesifaz Ino:

I'm trying to use Crucible with my Perforce repository. Originally, I tried to use Crucible and Fisheye together, but I wasn't able to get my repository fully indexed with Fisheye. The problem was that we have many, many branches and many, many cross-integrations between those branches. Fisheye's index ended up being too big for my largest machines.

I don't care about having all of the features of full Fisheye. I'm really only interested in Crucible. So I could try using Crucible without Fisheye, and use Crucible's native repository access and light Fisheye. But that's only going to work if light Fisheye indexes less stuff than full Fisheye. Will the light Fisheye index be smaller than the full Fisheye index?

(If you're wondering if I tried using the lightSCM plugins, which don't create any indexes, see the other question I posted. <https://answers.atlassian.com/questions/151782/viewing-diffs-when-using-perforce-p4-lightscm-in-crucible-without-fisheye> )


Answers:
author: Sergey Svishchev
body: Only Crucible dev team really knows the answer -- documentation is unclear: <https://confluence.atlassian.com/x/VAjSEQ>


Tags: crucible-without-fisheye

perforce
Workflow setup
Asked by notself:

Hi,

We just installed Crucible to do a test pilot and I'm not getting the workflow correctly. I must be doing something wrong. 2 main areas that I can't get to work, and seem related:

- In my Dashboard, under Activity, I can only see my commits and not the ones from my Team. Shouldn't I be able to see everything? (If I untick the "Show My Activity" checkbox I don't see any activity)

- A team member created a review and assigned me as Reviewer, however it doesn't appear under Inbox/To Review. If I search for reviews I can find them and open them. They have the state "Review" and I can see that I am the reviewer there. If I open them I can't find any button to Complete the review.

Could someone point me in the right direction?

Thanks


Answers:
author: John Burns
body: After creating the review, the creator needs to "Start Review" with the button in the upper right of the screen.

<https://confluence.atlassian.com/display/CRUCIBLE/Starting+a+review>

comments: author: notself
body: I don't seem to have a Start Review button. If I login as the author I can only see: Edit Details, Share, Close and Tools. Under tools I can either Close it or Abandon it.

Plus, in the Author's dashboard, the reviews appear in the Outbox / Out for Review


author: notself
body: Hmm, there's something strange here. It seems that somehow there are duplicate users in Crucible. I (the reviewer) just opened an existing review where I was the reviewer. I removed myself and added me again. And the Complete Review appeared immediately.

Anyone aware of this kind of problem?


author: notself
body: Sorry for the comment flood. But that's it, our Crucible has 2 users for each user. One with the user name lowercase and another uppercase... not sure what caused this mess


author: John Werner
body: You can solve the upper vs. lower case user names by going to Administration --\> Authentication Settings and turning on "Force Lowercase Username."
Evaluation near done: what is the right way to migrate existing Crucible data to new machine?
Asked by Matthew Miling:

Hello

I am interested in purchasing a Fisheye/Crucible license; up to now I've been using an evaluation license. What is the correct workflow to migrating my existing Crucible data from an evaluation machine to a new machine and installing a license?

Here is my way of thinking:

1. Perform a backup of the evaluation machine (add to zip file)
2. Disable the evaluation machine
3. Install the software on the new machine
4. Restore the backup onto the new machine
5. Install the purchased license on the new machine

Does this sound like the correct flow? Is there a more automated way to migrate to a new machine?

Thank you

Matt


Answers:
author: rstephens
body: Hi Matthew,

The approach you have described should work without any issues. You could also apply the purchased license key to the existing evaluation instance of the application.

Alternatively, migrating the FISHEYE_INST directory should also work and would eliminate the need to backup and restore the database.

Kind Regards,  
Richard Stephens

comments: author: Matthew Miling
body: I went with just tarring up the data directory on the old machine and extracted it to the new machine in a different area.

I'm still having issues with the migration (the connection to Jira has not been instated on the new machine) but I see the code review activity so I think this worked properly.
FishEye SQL Server "Database not using Unicode" UTF8 encoding.
Asked by Jon:

Hi all -

<br />

Finished installing FishEye and want to move it off of the hsql database. Is this necessary? Should I do this? I think so, but at the same time I did try to point it to the JIRA database (Sql Server 2008 r2, working)

and get this:

"The database is not using Unicode. FishEye and Crucible require that the database uses a UTF8 encoding to support internalization."

Any help?

Thanks!


Answers:
author: JohnA
body: Hi Jon,

You certainly should migrate off the HSQL database if you are using your FishEye in production because it can become corrupted if the server crashes or their is a problem that interupts it mid-transaction so you should only ever use it for evaluating the products where a database failure is of no consequence. However, for your production instance you should use a dedicated database like the one you are using for JIRA.

What you will find is that your SQL Server houses multiple databases, so you will need to create a new database for FishEye and configure it as described in this document for migrating from your current HSQL database to SQL server: <https://confluence.atlassian.com/display/FISHEYE/Migrating+to+SQL+Server>

All the best,  
John

comments: author: Jon
body: Thanks John!

<br />

I had missed the instruction on creating a SQL Server DB for FishEye as well. I've since created another database in SQL Server and have that configured. Thank you!
Why does Crucible treat plain text attachment file as binary?
Asked by Jeff George:

I've created a review and attached a plain text file with the extension .sql. Crucible is treating it as binary instead of plain text. Is there anything I can do to indicate to crucible that it's plain text?


Answers:
author: Felipe Kraemer
body: Hi Jeff,

Can you please open your *\<FishEye Home Directory\>/raw-mime.types* and check if 'sql' extension is listed next to 'text/plain' mime type?

This may be also happening due to file enconding. Could you please make sure it's UTF-8?

Also, I'm not sure which version of FishEye/Crucible you're using, but you may be facing this bug:

<https://jira.atlassian.com/browse/FE-3921>

Cheers,  
Felipe Kraemer


author: Don Willis
body: You are hitting [](https://jira.atlassian.com/browse/CRUC-6736)<https://jira.atlassian.com/browse/CRUC-6736>. If you upgrade to 3.4 then the *raw-mime.types*file will be used.


author: Santo Perri
body: Hi, I work with Jeff,

1. We're on v2.10

2. I checked raw-mine.types and sql is in text/plan line.
What should I do if I want to use more FishEye users than Crucible users with my FishEye/Crucible installation?
Asked by Malik:

We have an unlimited Fisheye license but only 100 users for crucible. Can you help me understand how this works? Do the first 100 people to use crucible get in and then no more access to anyone else? I'm very confused as to what defines a crucible user and what happens when the (n + 1)th user tries to use fisheye/crucible.


Answers:
author: Malik
body: When a FishEye user is given Crucible viewing rights, they'll automatically be able to see Crucible specific features within your Fe/Cru instance.

Crucible users are defined by enabling/disabling Crucible access via the FishEye Administration panel - just head to Admin \> User Settings \> Users to edit Crucible viewing privileges.

Regarding the n+1 user, the system will simply not allow you to give the 101st user Crucible rights. Instead, you'll see a warning message stating that your Crucible licensing limits have already been reached.
What should I do if I want to use more Crucible users than FishEye users with my FishEye/Crucible installation?
Asked by Malik:

According to the [FishEye Licensing and Purchasing description](http://www.atlassian.com/licensing/fisheye):

"If using Crucible along with FishEye (in all cases), your FishEye license must have an equal or greater number of users in order to be compatible with Crucible."

What should I do if I want to use more Crucible users than FishEye users with my FishEye/Crucible installation?


Answers:
author: Malik
body: As soon as your FishEye/Crucible instance is licensed for both FishEye and Crucible, the number of Crucible users licensed can not exceed the number of FishEye users licensed. Therefore, a second separate instance of FishEye/Crucible needs to be installed and dedicated only for those extra Crucible users. The following changes in functionality will occur [when Crucible is used without FishEye](https://confluence.atlassian.com/display/CRUCIBLE/What+happens+if+I+decide+to+stop+using+FishEye+with+Crucible).


Tags: faq
Add existing git repository using local path
Asked by Jakub Hubner:

Is it possible to specify just path of the local repository like: "/home/git/repositoryName.git"

Since the main git repository and fisheye are running in the same server, it should be possible to do it without any authentication. Just system user fisheye must have permissions to access the git repository, right?

I've tried it several times, but with no luck so far.

Getting errors like:

======

**Error**  
Unable to clone remote repository: /path/to/existing/repository.git - \[fatal: Could not switch to '/path/to/existing': Permission denied\]  
---  
Error testing connection.  
Error talking to repository:   

fatal: '/path/to/existing/repository.git' does not appear to be a git repository  
fatal: The remote end hung up unexpectedly  

at com.atlassian.fisheye.git.GitScmConfig.testConnection(GitScmConfig.java:143)  
at com.cenqua.fisheye.RepositoryConfig.testConnection(RepositoryConfig.java:444)  
at com.atlassian.fisheye.spi.admin.impl.DefaultRepositoryAdminService.testConnectionFor(DefaultRepositoryAdminService.java:553)  
at sun.reflect.GeneratedMethodAccessor620.invoke(Unknown Source)  
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

Connection failed.

======

The permissions are correct. Can anyone please tell me, what's causing this issue? Why the local git repository cannot be easily mapped via path?

We have a lot of projects and even more git repositories... It would much more comfortable if we don't have to create an ssh certificate for each repository instance in fisheye.


Answers:
author: lpater
body: Hi Jakub,

it definitely should be possible. What version of FishEye are you running? Make sure that the user the FishEye process is running as has the permissions to access the directory, that the git executable is set up, and runnable by the user. You could also try using a file:// url (file:///home/git/repo.git/). If that still fails please enable debug logging, try setting the repository again and request help at <https://support.atlassian.com/>

For your setup you might also find the FishEye Directory Scanner (<https://marketplace.atlassian.com/plugins/com.atlassian.fisheye.repositron>) plugin useful - it allows automatically scanning and setting up all repositories in the given directory.

Best regards,

?ukasz

comments: author: Jakub Hubner
body: Thanks for reply. After all the problem seems to be in permissions. FishEye requires read permissions for others on the target repository which is very inconvenient.


Tags: git

repository
Running Crucible and Stash on the same machine with single dedicated user account
Asked by Mohan Krishnan:

Hello ,

Can we run Crucible and Stash on the same machine with single dedicated user account and a common external database for both the application ? Do anyone fore see any issue ?

We have installed Stash ( 10 user license for trial ) and planning to integrate evaluation version of crucible for concluding on the dev workflow . Is it possible to integrate crucible with stash without using Fish eye .

Thanks in advance ,

Regards,

Mohan


Answers:
author: rstephens
body: Hi Mohan,

Yes - it is fine to run Crucible and Stash under the same user account and connected to the same database server. The WILL need to be configured to point at separate databases though.

It is definitely possible to do code reviews in Crucible of GIT repositories hosted in stash without FishEye.

Kind Regards,  
Richard Stephens


author: Timothy
body: Why not?
Generate Token for REST API Calls -X-Api-Key: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Asked by Karanam Subbarao:

How do I generate REST API Token via API for a given user name and password. I'm guessing this is different from token generated by /rest-service/auth-v1/login REST Call


Answers:
author: Mikhail T
body: It is explained right here:

<https://confluence.atlassian.com/fisheye/setting-the-rest-api-token-317197023.html>
Calling Custom REST API Calls on Crucible 2.10.0 when integrated with crowd
Asked by Karanam Subbarao:

We have developed some custom REST API which make calls to Crucible/Fisheye

In Previous versions 2.8.1 we use to call REST as follows

1. Get /rest-service/auth-v1/login call and retrieve token

2. Call the REST API through Jersey webResource.header("Cookie", "remember=" + token) and it used to work

3. But now we have done integration of crucible with crowd with custom crowd token key .

When I pass the crowd token key it works.

if I dont pass the crowd token key it fails...

Did something change in 2.10.0


Answers:
author: Matthias Cullmann
body: I noticed some changes too. With 2.8 I could call repositoryAdminService.create in my anonymous REST API implementation, in 2.10 I get:

com.atlassian.crucible.spi.services.NotPermittedException: You are not authorized to perform this operation  

at com.atlassian.fisheye.spi.admin.impl.DefaultRepositoryAdminService.ensureAdminPermission(DefaultRepositoryAdminService.java:1269)

What changed and how are we supposed to get AdminPermissions?

Regards

Matthias