youngmon/atlassian-qna huggingface dataset:
I want to allocate more resources to my pipeline for docker build
Asked by mayank Sharma:

With the new 4x and 8x size capabilities, how do i use the max memory and CPU to accomodate a large project build requirements. Is there a way to explicitly define memory and CPU in pipeline.yml. PFB curretn yaml  

<br />

```
image: atlassian/default-image:2

pipelines:
  tags:
    '*[0-9].*[0-9].*[0-9]-*':
      - step:
          name: dev-release
          image: atlassian/default-image:2
          deployment: staging
          clone:
            enabled: true
          services:
            - docker
          size: 8x
          caches:
            - maven
            - gradle
          script:
            - docker login --username $HUB_USERNAME --password $HUB_PASSWORD
            - VERSION=${BITBUCKET_TAG}
            # build the Docker image (this will use the Dockerfile in the root of the repo)
            - docker build -f Dockerfile.pipeline -t myrepo/jupyter-notebook:${BITBUCKET_TAG} . --build-arg build_version=$VERSION
            # push the new Docker image to the Docker registry
            - docker push myrepo/jupyter-notebook:${BITBUCKET_TAG}

definitions:
  services:
    docker:
      memory: 4096
```


Answers:
author: Ben
body: Hi mayank,

Memory allocation is customizable, whereas CPU will remain as a set amount depending on the option selected:

* 4x builds will be provisioned with 8 CPU cores and 16GB of memory.
* 8x builds will be provisioned with 16 CPU cores and 32GB of memory.

Allocating memory to service containers functions the same way as before, we have documentation that covers this below:

* <https://support.atlassian.com/bitbucket-cloud/docs/databases-and-service-containers/>

Cheers!

- Ben (Bitbucket Cloud Support)


Tags: bitbucket-cloud

cloud

resources
Does Atlassian products pass Accessibility as per WCAG Guidelines?
Asked by Jinisha Gajjar:

Just curious to know the answer


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

There are details about accessibility on this page:

* <https://www.atlassian.com/accessibility>

If you scroll down, you will find documents that describe the level of support each product offers for specific WCAG 2.1 AA criteria.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
? ?????? ?? ????? ??????? ??? ?? ?????? ? ???? ?? ???? ?????????, ?? ???? ??? ?? ????? ????
Asked by Vall Lovv:

????? ?? ???????? ??? ??????, ??? ?????? ??????? ? ????,? ? ?????? ?????? ?? ??????????????? ???-?????? ??????? ??? ?????? ???????? ?????-?? ???????????? ?????


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

I translated your message using a translation service, but I'm not sure I understand what exactly you need help with.

Your question was created in the Bitbucket forum of Atlassian. Do you need assistance with Bitbucket or do you have any questions related to Bitbucket? If so, could you please provide some more details about the issue you are facing, what you are doing, and what you need help with?

Kind regards,  
Theodora
Warn user when pushing to branch not listed in bitbucket-pipelines.yml
Asked by dembryrfx:

Hi, My team and I work on static website projects which usually have "development" and "master" branches. In some of them, bitbucket-pipelines.yml is configured so that it ONLY runs a build in specific branches. When they try to push to other branches I want to give them some indication or warning, somehow. My current hacky technique is to add a \`default\` section that triggers a build failure. A simple example:

```
pipelines:
  default:
    - step:
        script:
          - |
            echo "BUILDS NOT CONFIGURED FOR THIS BRANCH; PLEASE MERGE INTO DEVELOPMENT" >&2
            exit 1 # trigger a build failure.
  branches:
    development:
      ...
    master:
      ...
```

The unfortunate thing about this is that it still spins up a Docker image which is wasteful and time-consuming. I would rather issue a message of some kind to the unlisted branch pusher sooner and with more efficient use of resources. Has anyone a better method?


Answers:
author: Ben
body: Hi [@dembryrfx](/t5/user/viewprofilepage/user-id/3092)

Unfortunately, this is not possible in Bitbucket Cloud. We have a [feature request](https://confluence.atlassian.com/support/implementation-of-new-features-policy-201294576.html) to allow for hook support in Bitbucket Cloud that would handle your use case. I would recommend **Watching** and **Voting**for so that you increase its visibility with regard to customer demand and receive updates related to it:

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

Cheers!

- Ben (Bitbucket Cloud Support)


Tags: bitbucket-cloud

cloud

error

notification

pipelines

unlisted
When using LDAP with Crucible, what specific information from LDAP is stored in Fisheye?
Asked by droelands:

My network administrators are refusing to provide me with the information that I need to connect Crucible to LDAP until I can tell them - specifically - what information from LDAP is going to be stored in Fisheye.

Is this documented anywhere?


Answers:
author: Rodrigo M
body: Hello Duane!

Basically, when you first connect FishEye to an existing LDAP directory, the FishEye internal directory is synchronized with the LDAP directory. User information, including groups and group memberships, is copied across to the FishEye directory.

You can have take a look at the resources below regarding User Management:

* [Connecting to an existing LDAP directory](https://confluence.atlassian.com/fisheye/connecting-to-an-existing-ldap-directory-812223034.html)
* [External user directories](https://confluence.atlassian.com/fisheye/external-user-directories-812222853.html)

Regards!

Rodrigo.

comments: author: droelands
body: I need a -complete- list of the information that Crucible reads and/or stores. "User information" isn't specific enough. Is there any documentation that specifies this information?


Tags: ldap
Unable to clone Git repository due to correct access rights.
Asked by AMIT VISHWAKARMA:

I am trying to clone the git repository to my local but getting an error "permision denied(public key)".

fatal: could not read from remote repository.

please make sure you have the correct access rights and the repository access.


Answers:
author: Lonnie
body: Hello AMIT, It sounds like you are using SSH to clone the repository. Is that correct?

If that is the case you need to make sure you have a valid keypair: <https://confluence.atlassian.com/bitbucket/set-up-an-ssh-key-728138079.html>

I suggest going through this set regardless if you have done it before. It sounds like you need a new key.

Thanks

Lonnie
Can I add more then one linked review to a review and is it accessible via REST API?
Asked by David Dobias:

Hi,

When you create an review there is "Linked Review" field which allows you to add linked review. There is possibility to add only one of such review is the amount of linked reviews configurable?

Are these linked reviews accessible via restapi?

Thanks,

David


Answers:
author: Shannon S
body: David,

Can you please let us know which application you are referring to in your question? It appears it came in uncategorized so I want to move it to the correct collection.

Regards,

Shannon

comments: author: David Dobias
body: Apologies, added tag fisheye-crucible.

David


Tags: link

review
Backing up and restoring FishEye while preserving the application links
Asked by sparkling_girl:

Hi all,

I would like to have a Fisheye/Crucible project imported from another server hosted somewhere else.

This project contains links to a JIRA project and a Perforce project (hosted somewhere else). The linking would need to be maintained or re-linked post-import.

I followed the article below to backup the existing FishEye through the GUI:   

<https://confluence.atlassian.com/fisheye/backing-up-and-restoring-fisheye-data-298976928.html>

<br />

1) But the same article only has the steps to restore via command line, are there any steps I can follow on the GUI instead?

2) After restoring, will it automatically bring all my JIRA application links?

Thanks in advance


Answers:
author: Caterina Curti
body: Hi [@sparkling_girl](/t5/user/viewprofilepage/user-id/1199618),

1) A restore is only possible using the command line. At this stage, there is no user interface to perform a restore.

2) Yes, application links will be preserved. However, if you are performing a major change (e.g. changing the base URL), it could be better remove the link before taking the backup and recreate the link after the restore is complete.

Cheers,

Caterina - Atlassian


Tags: fisheye-crucible-administration
Is it possible to use labels for fisheye/crucible code-review
Asked by dmitrykorlas:

Hi.  
In our team we are often to mark the code review by label, something like:  
done/LGTM/fixes/local/remote.   

But, here i see the only status open/close. May be labels feature available via some addons or some Fisheye settings? Or, probably it's possible to add more addition statuses?  

Thanks.  


Answers:
author: Themis
body: Hi Dmitry,

At the moment I believe Crucible doesn't have this functionality (on the level of the entire review), but there is a feature request for this in the public issue tracker: [Labels for code review](https://jira.atlassian.com/browse/CRUC-6669). If this is the functionality you require, you can vote for this issue and add your comments to the issue!

Not sure about add-ons, a quick look through the atlassian marketplace did not show any results.

Best,

Themis
Clicking on a snippet line causes an error is Fixed? CRUC-7410
Asked by Rajeesh:

```
SnippetEntryPoint:com.google.gwt.event.shared.UmbrellaException: Exception caught: 
```


Answers:
author: Caterina Curti
body: Hi [@Rajeesh](/t5/user/viewprofilepage/user-id/1204058),

According to the [CRUC-7410](https://jira.atlassian.com/browse/CRUC-7410) bug report, this issue is still open and has not been fixed yet.

Now the "Affects version/s" field mentions 4.5.2 as well.

I see that you also added a comment to the bug report itself and are watching it, you will receive a notification as soon as there is an update on the bug.

Cheers,

Caterina
Can we download lines of code for each review in Crucible?
Asked by Yee Ven Koay:

I would like to measure the review effectiveness based on defect density for each project and repository for the software organisation.

I can view the LOC information under Repository -\>Report. But how can i download those information (Review coverage, code metrics)?

I tried to check on API, can't find any relevant topic.

<https://docs.atlassian.com/fisheye-crucible/latest/wadl/crucible.html#d1e2276>

Please help


Answers:
author: Themis
body: Hi Yee,

If I understood your requirements correctly, I believe the functionality you want is not provided by Crucible at the moment. There is however a feature request for it in our public issue tracker: [Provide Line Count information per review basis](https://jira.atlassian.com/browse/CRUC-7879.)

Could you review the above request, and it if matches your requirements, vote for it, and add your comments so that developers know the specifics of your use case?

I also found a third-party app in our [marketplace](https://marketplace.atlassian.com/) that may provide you with what you need: [Flyover Reports for Crucible](https://marketplace.atlassian.com/plugins/biz.deref.flyover.flyoverForCrucible/server/overview), but haven't tested it myself.

Hope this helps,

Themis


Tags: report
How to start all the stopped repos in fisheye ?
Asked by Anurag Sharma:

I have more than 5000 repos showing stopped in my fisheye instance and i want to start all of them at once. Manually starting every single repo is impossible.

Please suggest a way to start all of them.   

Regards,

Anurag Sharma

+91-8826185008


Answers:
author: Nate Hansberry
body: Hi Anurag,

You should be able to use the Fisheye REST API to do this programmatically.

Here's the specific endpoint you can use: <https://docs.atlassian.com/fisheye-crucible/latest/wadl/fecru.html#rest-service-fecru:admin:repositories:repository:start>

Since there are so may repos, you might also want to use the following REST API endpoint to get a list of the repos: <https://docs.atlassian.com/fisheye-crucible/latest/wadl/fecru.html#rest-service-fecru:admin:repositories>

In the event that you'd like to know if the repo is running prior to attempting to start it, you can use this REST API endpoint to get the status of the repo: <https://docs.atlassian.com/fisheye-crucible/latest/wadl/fecru.html#rest-service-fecru:admin:repositories-v1:repository>

Here are examples of the REST calls you'll make in each scenario if you were to use cURL:

**Start a repo**

```
curl -vkS -u <fisheye_admin> -H "Content-Type: application/json" -X PUT "<base_URL>/rest-service-fecru/admin/repositories/{repository}/start"
```

**Get a paged list of repos**

```
curl -vkS -u <fisheye_admin> -H "Content-Type: application/json" -X GET "<base_URL>/rest-service-fecru/admin/repositories"
```

**Get the status of a repo**

```
curl -vkS -u <fisheye_admin> -H "Content-Type: application/json" -X GET "<base_URL>/rest-service-fecru/admin/repositories-v1/{repository}"
```

With respect to the examples listed above:  
\* Be sure to change *\<fisheye_admin\>* to the username of your fisheye user with admin privileges  
\* Be sure to change *\<base_URL\>* to the base URL of your Fisheye instance  
\* Be sure to change *{repository}* to the actual repo's name

The implementation of the full code you will use will depend on the language you choose to write it in. However, let us know if you have any issues making the REST API calls themselves and we'll help point you in the right direction.

I hope this information is helpful!
how to start all the stopped repos in fisheye
Asked by Anurag Sharma:

I have more than 5000 repos showing stopped in my fisheye instance and i want to start all of them at once. Manually starting every single repo is impossible.

Please suggest a way to start all of them.   

Regards,

Anurag Sharma

+91-8826185008


Answers:
author: kevin conroy
body: this is awful - same thing just happened to us and frankly, writing a script to restart them all is not on my list of things to do today. Atlassian failure.


author: Anurag Sharma
body: same as   
<https://community.atlassian.com/t5/Fisheye-Crucible-questions/How-to-start-all-the-stopped-repos-in-fisheye/qaq-p/755911>  

<br />


Tags: repository
Is there is way to create automatic review when new check-in(commit) on repositories.
Asked by Venkatesh Dubakula:

We are looking for ways to create automatic reviews for new check-ins on repos and request group of people to review. Can you help me on this.


Answers:
author: daniele_carcasole
body: Hi,

Automatic review creation for every commit/check-in in Fisheye/Crucible is not supported natively but you can give a try to the following app: [https://marketplace.atlassian.com/plugins/com.atlassian.plugins.reviewcreator](https://marketplace.atlassian.com/plugins/com.atlassian.plugins.reviewcreator?_ga=2.102903106.378720889.1521417232-14486021.1521417232)

This app enables creates a review for each changeset. You can even limit the creation to of a review to changeset by a specific author.

Another possibility, in case you want to have more control on when to create a review is the use of [Smart Commits](https://confluence.atlassian.com/fisheye/using-smart-commits-298976812.html?_ga=2.102903106.378720889.1521417232-14486021.1521417232)

Using them it will permit to create and start reviews automatically based on tags added to your commit comments.

Hope this helps.

Daniele

comments: author: daniele_carcasole
body: Similar discussion: <https://community.atlassian.com/t5/Answers-Developer-Questions/Is-there-a-way-in-crucible-to-create-reviews-automatically/qaq-p/507632>


Tags: crucible-development
How to use Accurev in Crucible.
Asked by Pengyu Chen:

I have downloaded an evaluation version of Crucible and I ran the server on my local machine. I got the add-on of the Accurev( I believe it is the latest version). I installed it to Crucible and I found 2 questions:

1. The AccuRev plug-in seems not compatible with Crucible.

2. I don't know how can I connect to AccuRev. There's no wizard and configuration page.

Thank you!

![Capture.PNG](/t5/image/serverpage/image-id/17505iA82B03983A039712/image-size/large?v=v2&px=999 "Capture.PNG")


Answers:
author: Rodrigo M
body: Pengyu

FishEye/Crucible does not have any built-in support for AccuRev. AccuRev publishes an official plugin on the Atlasssian marketplace and you can contact them by there:

* [AccuRev Plug-In for Crucible](https://marketplace.atlassian.com/plugins/com.atlassian.crucible.accurev.scm.accurev-scm-plugin/server/overview)

Please notice this plugin is just compatible with the FeCru versions below:

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

Regards!

Rodrigo.
Following Crucible upgrade to 4.5.2, indexing starts - taking days to finish
Asked by Dan Meenan:

We restored production data to a test environment, went through the upgrade from 3.3.4 to 4.5.2 with few issues...EXCEPT one potential show stopper - following the upgrade, scanning and indexing started on all the repos. The first time we tried this (couple of weeks ago), the reindexing took 5 days. The second attempt has been indexing for about 24 hours so far.

Why is this happening? It can't be a desired behavior, right?


Answers:
author: Michael Walker
body: Hi Dan,  

When upgrading Fisheye/Crucible, a re-index can be required for a few different reasons, primarily due to an actual change in how the index is stored or created. The nice thing is, there's an easy way to prevent any downtime on your production upgrade as the [index (caches) can be generated by a test server and then simply copied into place on your production server](https://confluence.atlassian.com/fisheye/how-do-i-avoid-long-reindex-times-when-i-upgrade-298977103.html) once you upgrade production itself. This will result in your production machine only needing to run a simple incremental index to track anything new rather than rebuilding the index from scratch.  

This process should reduce the time it takes to get your production server back up from several days to simply how long it takes to copy the index over your network and a few minutes for the incremental index.  

If you have any questions on the topic, just let us know.  

Best Regards,  

Michael


Tags: index

upgrade
Is there a way to create reviews automatically in crucible?
Asked by Venkatesh Dubakula:

Hi,

We are looking to create automatic reviews by adding reviewer information using crucible when any new check-ins come into repository. If there is a way please give clear details about configurations.


Answers:
author: daniele_carcasole
body: HI Venkatesh,

What Lonnie told you is correct.

We also have a similar discussion at <https://community.atlassian.com/t5/Answers-Developer-Questions/Is-there-a-way-in-crucible-to-create-reviews-automatically/qaq-p/507632> where an alternative is proposed.

You can give a try to the following app: [https://marketplace.atlassian.com/plugins/com.atlassian.plugins.reviewcreator](https://marketplace.atlassian.com/plugins/com.atlassian.plugins.reviewcreator?_ga=2.102903106.378720889.1521417232-14486021.1521417232)

This app enables creates a review for each changeset. You can even limit the creation to of a review to changeset by a specific author.

Hope this helps.

Daniele


author: Lonnie
body: Hello Team, Yes this is possible. When you check-in or Commit you can use the commit message to create a review and add reviewers to it.

You want to use Smart Commits. Specifically, you want to look at this section of smart commits [Using Smart Commits for Crucible](https://confluence.atlassian.com/fisheye/using-smart-commits-298976812.html#UsingSmartCommits-reviewsSmartCommitcommandsforCruciblereviews)

This provides explanations and examples of how to create reviews and add reviewers

Cheers

comments: author: Venkatesh Dubakula
body: Hi Lonnie,

I understand after go with document( [Using Smart Commits for Crucible](https://confluence.atlassian.com/fisheye/using-smart-commits-298976812.html?&_ga=2.72973907.1919020187.1521735626-1523506658.1500101382#UsingSmartCommits-reviewsSmartCommitcommandsforCruciblereviews)) it will done with command line option. Default crucible providing command line support with (crucuble.py) script for pre-commit reviews. Is this same python script support to smart commit?.

or Any CLI tool provided by crucuble for smart commit?


author: Lonnie
body: Hello Venkatesh, You don't need any special scripts or tools to make smart commits work. All you need to do is follow the format for a smart commit in the commit message. As long as you can leave a commit message as part of the commit it will work.


Tags: developer
How do I compare two revisions in Crucible?
Asked by Richard Cross:

I'm trying to create a search between two revision numbers in a Subversion repository in Fisheye. Basically, the equivalent of running something like:

svn log -r 12:15

I looked at the documentation for EyeQL, but there's no mentinon of revision numbers - it seems to suggest you can only compare tags.

Is that right, or is there some other way to achieve the above?


Answers:
author: Felipe Kraemer
body: Hi [@Richard Cross](/t5/user/viewprofilepage/user-id/510358),

According to the [EyeQL reference guide](https://confluence.atlassian.com/fisheye/eyeql-reference-guide-298976796.html) you can show a range of revisions with a query like the following:

```
select revisions
where csid = 12 or csid = 13 or csid = 14 or csid = 15
order by date desc
return path, revision, author, date, csid, comment
```

For instance, CSID in the query above means "**C** hange**S** et **ID**".

Hopefully this helps!

comments: author: Richard Cross
body: Well, this is expressing individual changesets rather than a range. If I want to show all the revisions from version 100 to 200, that expression is going to get rather messy.

I think I will be be better off using the Subversion command line as I described above in my original post.
Crucible 4.4.2: Getting CommentResolutionData by REST_API
Asked by Richard Sedlak:

Hello!

We are using Crucible+Fish-Eye 4.4.2 for codereviews. For documentation i have to export the coderview results to a special report template. I am doing this using REST_API. In need the resolved and unresolved items. I couldnt find it at the REST-API, but there seems to be a a class CommentResolutionData at java docs. Do I have to write my own REST-API class to access the data? Can I extend the existing REST-API?

Thanks a lot  
Richard :)


Answers:
author: Felipe Kraemer
body: Hi [@Richard Sedlak](/t5/user/viewprofilepage/user-id/1197158),

Sorry for the delay in replying to you.

I have searched for a [Crucible REST API](https://docs.atlassian.com/fisheye-crucible/4.4.1/wadl/crucible.html) that suits your needs but I haven't been able to find any.

We have been able to retrieve that information directly from the database though. This information is stored in *cru_comment* table, in the *cru_last_resolution_status* column.

Maybe this helps?


author: Felipe Kraemer
body: Hi [@Richard Sedlak](/t5/user/viewprofilepage/user-id/1197158)

Can you please clarify what you mean by "resolved and unresolved items"? Are you talking about open and closed reviews, or maybe about [resolved and unresolved comments](https://confluence.atlassian.com/crucible/commenting-on-reviews-298977448.html#Commentingonreviews-Resolvingcomments)?

comments: author: Richard Sedlak
body: Hello,  

thanks for response. Yes, I am talking about resolved and unresolved comments. For my report tool I want to get the number of resolved and unresolved comments.

Richard