youngmon/atlassian-qna huggingface dataset:
Pipelines: Running pipelines on fork and original repository
Asked by Maria Wr?blewska:

I created a bitbucket-pipelines.yml file in my fork repository, I wanted this to run tests when PR to master is created or updated... and everything works perfectly.

There is a problem in case, when i created PR to my original repository. I enabled pipelines and added my .yml file, but unfortunately nothing is happening. I believed that it will work as in my fork repository.

Do you know how can I make this work? Do I need to add something to my code or enabled something to connect my fork with original repository?


Answers:
author: Maria Wr?blewska
body: solved: "Pull requests from a forked repository don't trigger the pipeline."...


Tags: bitbucket-cloud

bitbucket-pipelines

cloud
Deployment variables are not getting substituted at all
Asked by Ajit:

I have a simple pipeline for deployment of react app to s3 bucket along with CloudFront invalidation. AWS credentials (secured) where as AWS default region, S3 bucket name and CloudFront Distribution ID are defined in repository variables as unsecured. During execution of the pipeline, I see the aws s3 sync command fails because the secured deployment variables are not getting set in the execution context. The unsecured variables are working fine.   

What am I doing wrong? Seems like a basic setup.


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

Pipelines mask all occurrences of a secure variable's value in your log files, regardless of how that output was generated. If a value matching a secured variable appears in the logs, Pipelines will replace it with $VARIABLE_NAME. Even though the value is masked in the logs, it is still substituted.

In case you have defined both repository and deployment variables with the same name, and this step is a deployment step where the deployment variables have been defined for the environment, the deployment variables will be used instead of the repository ones.

Reference:

* <https://support.atlassian.com/bitbucket-cloud/docs/variables-and-secrets/>

You can check the following knowledge base article on how to safely export secured variables in bitbucket pipelines, so you can double-check if they get substituted properly and if their value is correct:

* <https://confluence.atlassian.com/bbkb/how-to-safely-export-secured-variables-in-bitbucket-pipelines-1189479471.html>

Kind regards,  
Theodora


author: Igor Stoyanov
body: [@Ajit](/t5/user/viewprofilepage/user-id/5339428) hi. This is a good idea to start using pipes. Here is an example using an [`aws-s3-deploy`](https://bitbucket.org/atlassian/aws-s3-deploy/src/master/) pipe to sync your files to S3 and triggering a distribution invalidation from [aws-cloudfront-invalidate](https://bitbucket.org/atlassian/aws-cloudfront-invalidate/src/master/)` `to refresh the CDN caches:

```
script:  - pipe: atlassian/aws-s3-deploy:0.3.2    variables:      AWS_ACCESS_KEY_ID: $AWS_ACCESS_KEY_ID      AWS_SECRET_ACCESS_KEY: $AWS_SECRET_ACCESS_KEY      AWS_DEFAULT_REGION: 'us-east-1'      S3_BUCKET: 'my-bucket-name'      LOCAL_PATH: 'build'  - pipe: atlassian/aws-cloudfront-invalidate:0.9.0    variables:      AWS_ACCESS_KEY_ID: $AWS_ACCESS_KEY_ID      AWS_SECRET_ACCESS_KEY: $AWS_SECRET_ACCESS_KEY      AWS_DEFAULT_REGION: $AWS_DEFAULT_REGION      DISTRIBUTION_ID: '123xyz'
```

To discover more pipes, visit our [**Bitbucket Pipes Marketplace**](https://bitbucket.org/product/features/pipelines/integrations).

Regards, Igor


Tags: bitbucket-cloud

cloud
Is there a way to disable pagination in Bitbucket Cloud REST API?
Asked by Miko?aj Wa?niewski:

I need to get all artifacts from Bitbucket Downloads and delete these which are older that 5 days. Unfortunately I observe that Bitbucket always returns paginated responses. Is there a way to get all results from Bitbucket REST API without pagination?


Answers:
author: Saxea _Flowie_
body: Hi [@Miko?aj Wa?niewski](/t5/user/viewprofilepage/user-id/5329036)

You can't disable pagination, but you can increase the number of entries in a page. Depending on how many items you are expecting you might be able to fit all of them in a single page. The maximum pagelen varies between each endpoint and you can set it using pagelen=50, for instance.


Tags: bitbucket-cloud

cloud
Unable to connect Bitbucket Cloud repositories - Linked repositories
Asked by Mayur Maru:

Hi Team,  

We have configured [Atlassian Bamboo](http://www.atlassian.com/software/bamboo/) version 9.2.1 build 90201 in Linux Machine (Ubuntu) but while linking bitbucket repository with uname/passwd we are experiencing connectivity issue, it say's "Failed to load data from Bitbucket. 401 Unauthorized". Even tried using ssh-key but no luck.  

For uname/passwd, we tried provided bitbucket profile username but it says invalid username.  
Kindly assist to establish connectivity.

<br />

Although it does work for app-password (created at Bitbucket level)  

![Screenshot 2023-10-12 154401.png](/t5/image/serverpage/image-id/285889iF9EDB2DD070B3513/image-size/large?v=v2&px=999 "Screenshot 2023-10-12 154401.png")  

<br />

(With App Password)  

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


Answers:
author: Ben
body: Hi [@Mayur Maru](/t5/user/viewprofilepage/user-id/5339251)

This is actually expected behaviour. We have deprecated the usage of username/password for authentication over HTTPS in favour of App Password, you can read about it in our blog announcement below from 2022:

* <https://community.atlassian.com/t5/Bitbucket-articles/Announcement-Bitbucket-Cloud-account-password-usage-for-Git-over/ba-p/1948231>

I would suggest to continue using App Password for authentication.

Cheers!

- Ben (Bitbucket Cloud Support)

comments: author: Mayur Maru
body: Your prompt response is greatly appreciated, and it provided valuable insights.  
Much Thanks [@Ben](/t5/user/viewprofilepage/user-id/4537226)


Tags: bitbucket-cloud

cloud
Restrict access to bit bucket repo only via company laptops
Asked by Sreerag Nandan:

Hi,

I am trying to restrict bitbucket repository access(push, pull, clone, download) only through the company systems(laptops).

I know Bitbucket can provide restricted access using IP addresses.  
But what should we do when the IP address can change,  
Does Bitbucket provide any facility to restrict access by comparing some physical   
addresses such as Mac addresses?  

If so can anyone provide a link to the documentation?


Answers:
author: Riley Venable
body: Bitbucket does not currently support restricting access based on MAC addresses. Bitbucket's access control mechanisms are based on IP addresses, user permissions, and two-step verification. If the IP address can change, you could consider using a range of IP addresses instead of a single one. However, keep in mind that this could potentially allow access from unwanted IP addresses within that range.

IP Allowlisting: An IP allowlist allows you to restrict access to the mirror to just some incoming IP addresses. You set the IP allowlist on your external-facing firewall. The mirror needs outbound access to the Bitbucket inbound address and inbound access from the Bitbucket outbound addresses. See Bitbucket Cloud IP addresses for the list of IP addresses that Bitbucket uses <https://support.atlassian.com/bitbucket-cloud/docs/work-with-bitbucket-smart-mirroring/>.

Access Control: You can require that users with access to private repositories or other private content are only able to see the content from certain IP addresses. If they aren't accessing from allowlisted IP addresses, users will see a message explaining why they have no access. You can add IP addresses or network blocks for a set of IP addresses to an allowlist <https://support.atlassian.com/bitbucket-cloud/docs/control-access-to-private-content-in-a-workspace/>.

For more detailed information, please refer to the Bitbucket Support Documentation.

Let me know if I can assist you further!


author: Saxea _Flowie_
body: Another idea is to have a jump box which has a fixed IP, a VPN or a ZTNA solution which provide more control over access.


Tags: cloud
Defect classification Mandatory in Crucible
Asked by Avdhesh Chauhan:

can we make defect classificaiton mandatory in crucible or can we set it to a default value ?


Answers:
author: Alok kumar Singh
body: the basic idea is not to set the defect classification with a default value, beacuse this will take the ranking away whether it is major or minor. Though it's generally a good practise to keep the defect classification mandatory.


author: Tini Good
body: How do you force defect classification to be a mandatory field?
How to jump to next change in file?
Asked by Janne Enberg:

I often prefer to view diffs with the whole file visible, and for example in WinDiff and many other graphical diff tools you have a simple visual indicator showing where to scroll to see the next change, and buttons to jump to the next and previous changes in the file.

Is this possible, at least the "jump to next change" and "jump to previous change", in Crucible (integrated with Fisheye)?


Answers:
author: Douglas Fabretti
body: Hello Janne.

Yes we do have that functionality:

![](../../upfiles/Diff_Button.jpg)

Please let me know if that was what you were looking for.

Cheers,  
**Douglas Fabretti**   
**Atlassian Support**

comments: author: Janne Enberg
body: Which version is that, or does it require some special settings?

I'm in a review, with a file selected, and these are the controls I see in 2.7.11 (seems to be saying 2.7.15 is available)..

Oh right, this is probably Crucible and not Fisheye, since it IS a review .. hard to remember they're two separate things when they're so tightly integrated.

![](../../upfiles/fisheye.jpg)


Tags: diff

navigation
Changeset diff in watch notification email
Asked by Michael Rubin:

Is there any way to have the changeset diff included in fisheye watch emails?


Answers:
author: Gurleen Anand _Atlassian_
body: Hi Michael,

Unfortunately this feature is not yet available in Fisheye. You can track down its progress here:

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

Please watch it to be notified of its progress and feel free to comment there. You may also cast your vote there to add to its popularity.

Thanks,

Gurleen
Revision numbers for multiple projects seem to add up?
Asked by Gurgen Torosjan:

Hi! I have a question about svn-fisheye combo. I have multiple projects set up in my ondemand instance.

When I checked out one of my projects i noticed that right after creation it had a revision number of 32 which coincides with latest svn revision number on my other project. This is confusing, as i assumed that each project's svn repo is individual, and would have individual revision numbers, am i wrong? And the actual set up is that each "repo" is actually a branch of a single big repo that is attached to my ondemand instance (so that each project i set up becomes a branch with its own pseudo repo structure)?

Thanks!


Answers:
author: TimT
body: Yes, you've got it. There is a single repository shared across all projects. Each project is a top-level directory within the repository.The main benefit of this approach is that you can copy or move files and directories between projects using normal svn commands and retain all of the history. Separate repos wouldn't allow for that.As you've noticed, the consequence of this is that revision numbers are also shared across projects.

comments: author: Gurgen Torosjan
body: Thanks a lot for the clarification. Let me ask you, with "on demand" set up, if there is a need (for whatever reason) to have real separate repos for each project, is it possible?


author: TimT
body: No, there isn't a way to create multiple repos in OnDemand.


Tags: cloud

fisheye-crucible-svn-ondemand
Migrating svn repo from standard layout to custom layout in same project
Asked by dstainer:

Presently we have the current structure:

http://\<companyname\>.jira.com/svn/\<project-name\>/{trunk,tags,branches}

Standard stuff for a single project repository.

However, we'd like to move from this structure to something more flexible, while still remaining under the same project. So for example something more like this:

http://\<companyname\>.jira.com/svn/\<project-name\>/module1/{trunk,tags,branches}  
http://\<companyname\>.jira.com/svn/\<project-name\>/components/component1/{trunk,tags,branches}  
http://\<companyname\>.jira.com/svn/\<project-name\>/components/component2/{trunk,tags,branches}

Hopefully, you get the point. In other words, we want a heck of a lot more flexibility to adjust where the source code is for our various modules/components while remaining under a single project umbrella.

My questions are the following:

1. Is it possible to migrate our existing structure to the newly proposed one without have to start fresh, etc?
2. What are the problems with this type of approach?
3. What kind of integration issues with FishEye and Crucible do we need to watch out for?
4. Would we need to submit tickets for this to get accomplished?

Thanks

Derek


Answers:
author: Michael Knight
body: A support engineer can change a FishEye repository's configuration from:

* https://\<companyname\>.jira.com/svn/\<project-name\>/{trunk,tags,branches}

to:

* https://\<companyname\>.jira.com/svn/\<project-name\>/\<moduleX\>/{trunk,tags,branches}

but not any other layout.

There are two ways to change your existing SVN structure to the new one:

1. Simply creating the necessary module directory and 'svn mv'ing your code into place; or
2. Dumping the repo, rewriting paths through the repo's history (using something like [svn-dump-reloc](http://search.cpan.org/~salva/SVN-DumpReloc-0.02/bin/svn-dump-reloc)) and importing it again.

The problem with #1 is that your history pre-move won't be handled properly, which may or may not be an issue for you. The problem with #2 is that it's much more complicated and, depending on the complexity of your existing structure, may not be workable. Although if it does work, your history will be handled properly.

Since you can [dump](https://confluence.atlassian.com/display/AOD/Exporting+source+code) and [import](http://confluence.atlassian.com/display/AOD/Importing+Versioned+Data+into+Subversion) your SVN repository without needing to go through Support, the only ticket you would need to raise would be for changing FishEye's configuration, presumably once your dump had already been prepared and verified locally, ready for import.

comments: author: dstainer
body: What component causes this restriction? I guess my question is that if we were hosting our own subversion repository we could use any structure we desired. So what is the piece that is holding this up on your side of the fence? Why can this work with FishEye and SVN outside of OnDemand and not inside?


Tags: cloud

fisheye-crucible-svn-ondemand
The information of reviewer are not fetched, when I put cursor on the reviewer name in the snippet review
Asked by Reetesh Kumar:

When I create the snippet review and write a comment review, the description of review and reviewer appears in the right side of the snippet. But when I put the cursor at the reviewer, it does not retrieve the information of that reviewer. It shows an error message 'error Not %20Found'. I have attached the User_Not_Found_Error.png file for that. I did not find any exception in the fisheye log file. When I click on the reviewer link, I found an error message ' The requested resource cannot be found. NOT_FOUND. I have attached the screenshot Fetch_User_Exception and the fisheye log files. Attachment Log_Files contains all the log files and the screenshots.


Answers:
author: Felipe Kraemer
body: Hi Reetesh,

I tried to reproduce this problem in a Crucible 2.7.15 instance and it worked for me. What's the version you're using?

Do you use any external user management tool such as Crowd, LDAP, etc? If yes, can you try to re-sync your users?

Do you have a proxy configured? If yes, could you please try to bypass your proxy settings to see if it works? This will help us narrowing down the problem.

I could not find the attachments you mentioned. If the problem continues, could you please raise a new Support issue at <https://support.atlassian.com> and attach those files?
The information of reviewer are not fetched, when I put cursor on the reviewer name in the snippet review
Asked by Reetesh Kumar:

When I create the snippet review and write a comment review, the description of review and reviewer appears in the right side of the snippet. But when I put the cursor at the reviewer, it does not retrieve the information of that reviewer. It shows an error message 'error Not %20Found'. I have attached the User_Not_Found_Error.png file for that. I did not find any exception in the fisheye log file. When I click on the reviewer link, I found an error message ' The requested resource cannot be found. NOT_FOUND. I have attached the screenshot Fetch_User_Exception and the fisheye log files. Attachment Log_Files contains all the log files and the screenshots.


Answers:
author: Tom Towkach
body: You may just want to comment on your question--the little box here that say add comment.

Have you set up external user management or something like that? I have FeCru 2.7.15 using bult-in user and I don't see a problem. You may want to enable debug and see what log says:

1. Go to Administration \> Server Settings \> Debug Logging, and turn debug logging "ON".
2. Reproduce the problem.
3. Turn off debugging.
4. Look at debug files.


author: Tom Towkach
body: What version are you using?


author: Reetesh Kumar
body: Crucible version 2.7.15
Connect get "Create Issue Link" to appear
Asked by Alain Kuchta:

I'm followed through installation and integration steps but I still do not have the ability to create a JIRA issue from a Crucible Comment


Answers:
author: Tini Good
body: Are you getting an error? It's also useful to look at these possible reasons as to why it is not working:

[https://confluence.atlassian.com/display/FISHKB/Error+creating+subtask+in+JIRA+-+Unknown+error+creating+subtask+for+issue+ABC-1234+-+null?utm_source=SAC\&utm_medium=hercules-email\&utm_content=374647](https://confluence.atlassian.com/display/FISHKB/Error+creating+subtask+in+JIRA+-+Unknown+error+creating+subtask+for+issue+ABC-1234+-+null?utm_source=SAC&utm_medium=hercules-email&utm_content=374647)


author: LeonardoL
body: Hi,

Have you already tried the following documents about enabling and using smart commits?  

<https://confluence.atlassian.com/display/FISHEYE/Enabling+Smart+Commits>

<https://confluence.atlassian.com/display/FISHEYE/Using+Smart+Commits>
Can we have single external database schema for bamboo and fisheye
Asked by chaudharys1:

I am in middle of configuring the production bamboo server, was curious to know if we have external database schema as bamboo_db configured for bamboo only.

Now, I want to use same schema for fisheye, which will linked with bamboo server.


Answers:
author: JohnA
body: Hi Chaudharys,

Please accept my apologies if I have misunderstood your question but Bamboo and FishEye will have different database schemas, in that they will contain different tables for different functions, so in that regard it wouldn't be possible to use the same schema for both applications.

However, if you are merely referring to the empty database creation, (with encoding schema, database owner, etc etc), then you could certainly use the same properties for both applications, although they will require an empty database to populate with their data. So, depending on how we define schema, this is either possible or not as I have described.

All the best,  
John

comments: author: chaudharys1
body: Thanks John

Let me have some user story.

I am setting up new bamboo-4.0.1 application on production server, I have already configured external database oracle 11g (schema as bamboo_db) with bamboo and its working fine. Later on I realized that fisheye also need a datbase.

Ques1: Can i configure fish eye with bamboo_db as an external database assuming that there will be no conflict between bamboo and fish eye table structure?

Ques2: Shall I create a new schema as fisheye_db and then configure?

Ques3: I have installed bamboo-4.0.1 and the JIRA version is 4.2, while linking the JIRA with bamboo I noticed that both is having version conflict. and JIRA 4.2 is compatible with bamboo 3.0

Want to understand what is the major difference with bamboo 3.0 and bamboo 4.0?


Tags: cloud

integration
Contacting repository when add a repository
Asked by Sunchan Lee:

I want to add mirror repository.

But I have some constraints for security policy.

I have made mirror repository using svn sync command and mounted other server because fisheye installed server can't be connected to svn server directly.

SVN server \<--\> internal server (which has mirror repo) \<--\> Fisheye Server (which has mounted mirror repo)

And just have read permission for mirror repo on the side of Fisheye Server.

I think it will have no problems with read-only permission but "Contacting repository" message is showing continuously when I add mirror repo in Fisheye.

The result of "Test Connection" in Fisheye is same.

Is Fisheye needed write or other permissions for adding repository?

Or something strange is in my environment?


Answers:
author: Douglas Fabretti
body: Hello Sunchan.

You are correct regarding to the read-only permission, FishEye only needs read permission to work properly, we also recommend our users to use that way.

Since the repository is local we recommend using the file:// protocol which is faster then the others and more reliable.

Could you please try setting your repository URL using the file:// and let me know if that changes anything?

Cheers,  
**Douglas Fabretti**   
**Atlassian Support**
Can the same license key be used if we upgrade any Atlassian product to a newer version?
Asked by Aditi Sehgal:

I am using Fisheye + Crucible version 1.6. Can I use the same license key if I want to upgrade to the latest version i.e. 2.7.x?


Answers:
author: Faisal
body: Hey Aditi,

If your current FishEye and Crucible license is still under active maintenance, then yes there should be no problem for you to use the license after upgrading to FeCru 2.7.x.

Supposedly, there should be no license compatilibility issue in between the mentioned FeCru versions.   

Hope this helps!

comments: author: Aditi Sehgal
body: Hi Ahmad,

Thanks for your reply. But, my maintenance has expired. So, should I renew my maintenance or buy a new license? Which one would be better and more cost effective.

Regards,

Aditi


author: SimonS
body: Hi Aditi,

This is something we can answer with an email to [sales@atlassian.com](mailto:sales@atlassian.com). We'll tell you if you should buy a new license or renew your current one based on it's expiration date.

-Simon


Tags: atlassian-support
CVS files missing
Asked by Peter Stanhope:

Fisheye CVS repository shows folders but no files. WinCVS shows everything. What have I mis-configured?

CVSNT v2.0.51d, WinCVS v2.0.2.4


Answers:
author: Douglas Fabretti
body: Hi Peter.

Can you please let me know if you added your CVS repository according to the documentation: <https://confluence.atlassian.com/display/FISHEYE/CVS> ?

Also can you try to do a full re-index of your repository and see if that fixes the issue:

<https://confluence.atlassian.com/display/FISHEYE/Re-indexing+your+Repository>

Just keep in mind that this procedure can take a long time depending on the size of your repository.

Please let me know if the files are appearing after this procedure.

Cheers,  
**Douglas Fabretti**   
**Atlassian Support**