youngmon/atlassian-qna huggingface dataset:
Does OnDemand Bamboo support builds from BitBucket hosted Mercurial repositories
Asked by Damian Ryan:

I'm trying out a minimal set of OnDemand services (JIRA, FishEye and Bamboo) as a trial before making recommendations to my employer for a strategic choice on source control hosting, issue tracking, project building and commit tracking.

I am using mercurial as this has already been selected as the strategic VCS solution. I am currently testing with private mercurial repositories hosted on BitBucket.

I can see a way to tie the OnDemand JIRA instance to a BitBucket-hosted mercurial repository but I cannot see any way to do the same with Bamboo - it seems to only allow linkage to a subversion repository.

Have I missed a configuration option somewhere? (I've spent quite a while searching to no avail yet).

Or does the current OnDemand version of Bamboo only support subversion integration?

If this is the case, is there an ETA for mercurial/BitBucket support?


Answers:
author: Damian Ryan
body: So, no, and a 12-month wide window for possible roll-out.

Shame, I was looking at a wholly hosted Atlassian ALM stack but this is a deal-breaker.

Cheers,

Damian

comments: author: 2nd Act Innovations
body: I agree, this IS a deal breaker for us as well. We just signed up for a trial (as I didn't notice ANYWHERE on the OnDemand trial page the mention ofd your HAVE to use SVN (or github)). I find this strange, as JIRA, etc already support Mercurial...

We will be cancelling our trial until this is resolved... (at least support Git...)


author: Abdoulaye Kindy Diallo
body: Hello,

You may want to watch the [feature request](https://studio.atlassian.com/browse/JST-2090?focusedCommentId=46858&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-46858 "Feature Request") to support/include other repos for updates.

Hope that helps :)


author: chrismott
body: Seriously!? This is a major product gap for OnDemand.


author: niklaslind
body: We are using gitHub and will continue to do so. Atlassian svn is not an option.

We were planning to go all in on OnDemand Jira+Bamboo+Confluence+....

But not beeing able to build from github is a dealbreaker for us :(

Sorry, will have to terminate my trial licence...


author: James Dumay
body: At the moment Bamboo OnDemand only supports the Subversion repositories hosted on OnDemand. We have plans to open up Bamboo OnDemand to use Bitbucket and Github repositories in the new year.


Tags: cloud
On Plan Creation/Cloning : This Plan name already exists.
Asked by Maximilian Friedmann:

Good afternoon,

I just deleted a plan to re-create it again by cloning another one (cause creating all jobs would take even longer than just cloning an existing one). Now it says and "This Plan name already exists." and "This key is already used on another Plan." and I cannot create the plan again.

Any chances how to get rid of that error? Are the plans somewhere cached?

Cheers,

Max


Answers:
author: Przemek Bruski
body: Plan deletion takes a long time to complete and is executed in the background. Wait a bit and retry.

comments: author: Maximilian Friedmann
body: Does it take longer than 12h ? :(


author: Przemek Bruski
body: Uhm, no, it should not, unless it's a very large plan (in terms of results) or you have deleted multiple large plans. Which Bamboo version is it? We've fixed some grave deletion bugs in 3.3 .

If you are on 3.3 or cannot upgrade and server restart does not help, please contact our [support](http://support.atlassian.com).


author: Maximilian Friedmann
body: After investigating some time I found a useful page and added my comment there [http://confluence.atlassian.com/display/BAMKB/Deleting+orphaned+BuildResultSummary+records?focusedCommentId=271942326\&#comment-271942326](http://confluence.atlassian.com/display/BAMKB/Deleting+orphaned+BuildResultSummary+records?focusedCommentId=271942326&#comment-271942326)

Seems like we have around 300 dead plans there with corrupted foreign constrains :(

Can anybody help?


author: Przemek Bruski
body: Please contact our [support](http://support.atlassian.com), don't try to restore referential integrity to your database basing on forum advice ;-)


author: Maximilian Friedmann
body: Unfortunately, the issue is not the background execution. Its more the dead plans we have since an earlier upgrade, see [http://confluence.atlassian.com/display/BAMKB/Deleting+orphaned+BuildResultSummary+records](http://confluence.atlassian.com/display/BAMKB/Deleting+orphaned+BuildResultSummary+records?focusedCommentId=271942326&#comment-271942326)


Tags: delete

image

plan
How to specify scheduled backup path in Bamboo
Asked by Serge Dukic:

Hi,

I'm running Bamboo 3.2.2 and am trying to configure scheduled backups. However when I select the 'Edit' button and uncheck the 'Disable scheduled backups' box, the resulting page won't let me edit the 'Backup path' location.

How can I change this path?


Answers:
author: Serge Dukic
body: Found it! It was in the bamboo.cfg.xml file. The property looks like:

\<property name="daily.backup.dir"\>${bambooHome}/backups\</property\>
Failed with variable "DEBUG: 'true'"
Asked by Kenichi Ogawa:

Variable "DEBUG" does not work well.

Version of pipe: atlassian/google-cloud-storage-deploy:1.0.1

Logs of pipeline:

```
+ eval gsutil -m cp -r -a public-read -s regional '--verbosity=debug' public/gcs/public gs://BUCKET_NAME/
CommandException: Incorrect option(s) specified. Usage:
gsutil cp [OPTION]... src_url dst_url
gsutil cp [OPTION]... src_url... dst_url
gsutil cp [OPTION]... -I dst_url
For additional help run:
gsutil help cp
? Deployment failed.
```

Way to reproduce:

```
- step:
    name: Upload public data to Google Cloud Storage
    script:
      - source deploy/env.sh
      - pipe: atlassian/google-cloud-storage-deploy:1.0.1
        variables:
          KEY_FILE: ${DEPLOY_ENV_GOOGLE_KEY_FILE}
          PROJECT: ${DEPLOY_ENV_GOOGLE_PROJECT}
          BUCKET: ${DEPLOY_ENV_GOOGLE_STORAGE_BUCKET}
          SOURCE: ./public/gcs/public
          ACL: public-read
          STORAGE_CLASS: regional 
          DEBUG: 'true'
```


Answers:
author: Igor Stoyanov
body: [@Kenichi Ogawa](/t5/user/viewprofilepage/user-id/1345492) hi. Sorry for late response. Our team released a new version of [google-cloud-storage pipe 1.2.0](https://bitbucket.org/atlassian/google-cloud-storage-deploy/src/1.2.0/) where we fix issue with DEBUG variable.

Regards, Igor


author: Igor Stoyanov
body: Hi [@Kenichi Ogawa](/t5/user/viewprofilepage/user-id/1345492) . Thanks for the question. We will investigate this case and notify you.  

Regards, Igor


Tags: bitbucket-pipelines

cloud

google
Does pipeline for android even work for big projects?
Asked by ???:

I have an android project which consists of 50 modules. In attempt to automatically do a release build on push, I've established a pipeline with the below scripts.

gradle.properties

```

#org.gradle.jvmargs=-Xmx4096m -XX:MaxPermSize=4096m -XX:+HeapDumpOnOutOfMemoryError
#org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=2048m -XX:+HeapDumpOnOutOfMemoryError
#org.gradle.jvmargs=-Xmx1024m -XX:MaxPermSize=1024m -XX:+HeapDumpOnOutOfMemoryError
org.gradle.jvmargs=-Xms512m -Xmx5g -XX:MaxPermSize=1024m -XX:MaxMetaspaceSize=1g -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8

org.gradle.daemon=true

org.gradle.configureondemand=true

#org.gradle.parallel=true

android.useAndroidX=true

android.enableJetifier=true

kotlin.code.style=official
```

bitbucket-pipelines.yml

```
image: androidsdk/android-30

options:
  size: 2x

pipelines:
  default:
    - step:
        size: 2x
        name: Android TestSv Release
        caches:
          - gradle
        script:
          - chmod 755 gradlew
          - JAVA_OPTS="-Xms512m -Xmx5g -XX:MaxPermSize=1024m -XX:MaxMetaspaceSize=1g -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 Fu=IX ISSUE"
          - echo "$SIGNING_JKS_FILE" | base64 -d > android-signing-keystore.jks
          - ./gradlew assembleSvtestRelease
        artifacts:
          - A0_Application/**
        after-script:
          - pipe: atlassian/checkstyle-report:0.2.0

definitions:
  services:
    docker:
      memory: 1024
```

This works for **assembleDebug** , but for release, the **memory keeps exceeding**. I've searched for a day to make this to work for my project, but with no luck.

The tutorials I've found were just small samples without any consideration about the memory stuff.

<br />

Does the pipeline has the capability to build such multi module project? If so, what should I change for my script?


Answers:
author: alr3000
body: There is an answer here: <https://community.atlassian.com/t5/Bitbucket-questions/Why-I-can-t-build-android-project-on-Pipelines/qaq-p/1003995>

basically, increase the memory:

```
- step:
        size: 2x # Double resources available for this step.
```

Seemed to work for me, but mine was only intermittently failing.


Tags: android

bitbucket-pipelines
Bitbucket update
Asked by Marco Olivieri:

Hello,

we need to update our bitbucket, a standalone installatione with 6.3.6 version .We are going to update it to 6.10.13 . What's the right strategy to do it ?

Actually our Bitbucket ais running with old oracle jdk (1.8.0_181), we need to update java and if possibile, we would like change it to openjdk or AdoptJDK . Is it possibile ?

Thanks

Regards

Morris


Answers:
author: Alexis Robert
body: Hi [@Marco Olivieri](/t5/user/viewprofilepage/user-id/4545501) ,

there are several options to upgrade Bitbucket, one that would work for you is the installer : it has the AdoptJDK bundled so you don't need to worry about it !

You can have a look at the documentation and follow the steps for the upgrade : <https://confluence.atlassian.com/bitbucketserver/bitbucket-server-upgrade-guide-776640551.html>

Let me know if this helps,

--Alexis

comments: author: Marco Olivieri
body: Hello Alexis,

we done update to 6.10.13 version (from 6.3.6) . Update went well, but after update jdk stayed to old version :

java version "1.8.0_172"  
Java(TM) SE Runtime Environment (build 1.8.0_172-b11)  
Java HotSpot(TM) 64-Bit Server VM (build 25.172-b11, mixed mode)

We expected to go to a new version of AdoptJDK . Update process didn't update java .

Why ? We need to update java because it's not compliant with our security standard .

I hope someone could help.

Thanks


Tags: bitbucket-server

server
How to set up workspace-wide SSH keys for Pipelines to fetch Golang modules located on Bitbucket?
Asked by Pedro:

Hi,   

I would like to understand how I can set up workspace-wide SSH keys for Pipelines to fetch Golang modules located on Bitbucket, please.   

Thank you!


Answers:
author: Leonardo M
body: Hi!  
Here are the steps to achieve this.

1. Create the ssh key in the pipeline settings for the repo (Repository settings \> Pipelines \> SSH Keys)

2. Copy the public key to the dependent repo access keys (Repository settings \> Access keys)

3. Execute the following command in any context that will need to pull go dependencies. It tells git to rewrite https URLs to ssh URLs:

```
git config --global url."git@bitbucket.org:<workspaceID>".insteadOf "https://bitbucket.org/<workspaceID>"
```

4. Also execute the following:

```
export GOPRIVATE=bitbucket.org/<workspaceID>
```

This tells golang not to use the public checksum database for dependencies that use that URL.

comments: author: Vyshakh
body: [@Leonardo M](/t5/user/viewprofilepage/user-id/1198981) how do you do the step 1 for all repo pipelines at single place, say at the workspace level. its a pain to manage the ssh keys at each pipeline level, we need it to be at the workspace or the project level. Even the envirnoment variables are not configurable/overridable at project level. are there anything for this?


author: cristtopher
body: don't work for me


author: Rik Burger
body: any update on this by any chance?


author: Rik Burger
body: configuring this at the workspace level instead of each repo would be greatly appreciated


Tags: bitbucket-cloud

cloud
BitBucket Server 7.16 does not show build status after update
Asked by johny b:

Hello,

We recently updated our BitBucket server instance to version 7.16. Everything is fine, except the Builds tab does not show any build status.

We use TeamCity with Commit Publisher plugin to send commit status to BitBucket.

teamcity-commit-status.log file shows POST 200 OK requests to our BitBucket instance.

Making the request manually via Postman results in a 200 OK.

Nothing appears in the builds tab.


Answers:
author: johny b
body: Hello again, everyone

After a bit more googling I found this post with this specific comment:  

<https://youtrack.jetbrains.com/issue/TW-69519#focus=Comments-27-5133923.0-0>

tl;dr

1. Adding a TeamCity internal property

    teamcity.internal.commitStatusPublisher.enforceDeprecatedAPI=true

`helps. This changes the POST body, tho.`

`2. Removing the "ref" attribute from POST body also works.`

`I'll be making a post in the JetBrains forums.`


Tags: bitbucket-server

commit

server

teamcity

update
Bitbucket IP Address
Asked by Language Journeys:

I hired a developer to create an Android app which is hosted in AWS.

He's been pushing commits to Bitbucket for some months regularly. However, he disappeared recently without giving much explanation and I can't get in touch with him

Is there any way to track his IP address or something through his Bitbucket activity so that I can reach him and ask for some explanation?


Answers:
author: Theodora Boudale
body: Hello,

I'm afraid that we don't get involved in disputes between our users and we cannot provide the information you're asking for.

Kind regards,  
Theodora

comments: author: Language Journeys
body: Thanks Theodora. What if I file a complaint and submit a warrant? Do you have a legal department to handle it? We're talking about a developer commiting shady affairs, maybe fraud on Bitbucket.

While I understand you don't get involved in personal disputes, you also have a responsibility when someone is engaging in possible criminal activity on your website, right? Who should I address in those cases?


author: Language Journeys
body: Is it the address shown in the attached screenshot?![law_enforcement.png](https://community.atlassian.com/t5/image/serverpage/image-id/160814iFB87C13D59E60957/image-size/large?v=v2&px=999 "law_enforcement.png")


author: Theodora Boudale
body: Hello,

If there is criminal activity you can speak with a law enforcement official about sending a law enforcement request to Atlassian.

You can find details here:

* <https://www.atlassian.com/trust/privacy/guidelines-for-law-enforcement>

I believe that your screenshot is from the same page I linked, you can send an email to this address if you have any questions.

Kind regards,  
Theodora


Tags: bitbucket-cloud
Multi Project VS Solution - Only publish 1 Project
Asked by Trevor Daniel:

Hi,

I am new to Pipelines and CI/CD so apologies for not knowing this.

I have a multi project Visual Studio c#.Net Core solution in a bitbucket repository.

I want to just publish the API project to an Azure Web Application.

I have used the standard template and it's building and publishing but I suspect it's publishing the complete solution and not just the API project.

I want to be able to configure the system so a i can push different projects to different azure application,

Is this possible? Can anyone help me please?

Thanks


Answers:
author: Mark C
body: Hi [@Trevor Daniel](/t5/user/viewprofilepage/user-id/2728317)

Thank you for reaching out to the community.

Based on your description, my understanding is that you're deploying your **build** folder on Pipelines (or from the default directory **BITBUCKET_CLONE_DIR**).

If this is true and as you've mentioned you have multiple projects in your single repository, the best I can suggest is for you to create a folder every time you'll deploy to your preferred Azure application.

For instance, if you want to deploy your API project, you can do something like these:

```
- mkdir -p $BITBUCKET_CLONE_DIR/api_release- #do your test/build command into that new folder- #use that new folder to deploy to your Azure project
```

You can use the same pattern in [multi-steps](https://bitbucket.org/blog/multiple-steps-in-bitbucket-pipelines) or [custom steps](https://support.atlassian.com/bitbucket-cloud/docs/pipeline-triggers/#[hardBreak]Run-pipelines-steps-manually) when you want to deploy your other projects.

Hope it helps and let me know if you have further questions.

Regards,  
Mark C


Tags: .net

bitbucket-cloud

bitbucket-pipelines

cloud
user profile page in bitbucket
Asked by akki:

Is there a way to add a profile page to a bitbucket account similar to the profile page in github where we can see our activities , total commits , a small bio etc ?

![Screenshot_55.png](/t5/image/serverpage/image-id/159027i33073805880E7801/image-size/large?v=v2&px=999 "Screenshot_55.png")

something like this ?


Answers:
author: Theodora Boudale
body: Hi [@akki](/t5/user/viewprofilepage/user-id/4544915),

These profile pages like the screenshot you attached were available in Bitbucket Cloud some years ago, but not at the moment.

If this is something you'd be interested in, I can create a ticket for our development team to consider adding it again. Please feel free to let me know if you'd like me to proceed with this.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
how to enable in bitbucket file pathsMatch, merge checks with specific person/team approvals
Asked by maheswarreddyt:

During merge request if specific file \<PROD PROP\> have changes, it should allow merge after specific person/team approvals other wise it stop to merge.

Need help to make custom script for above request.


Answers:
author: Robert Giddings [Adaptavist]
body: Hi [@maheswarreddyt](/t5/user/viewprofilepage/user-id/4544646) ,

If you are using ScriptRunner for Bitbucket I would suggest you look a the following Built-In Scripts that should help you achieve what you want to do.

To start with you can block a merge using a Conditional Merge Check. Here is the documentation:

<https://docs.adaptavist.com/sr4bib/latest/features/script-merge-checks/conditional-merge-check>

As you can see in the example, the merge is blocked if any of the participants state the PR needs more work. You can amend this example for your needs. For example, blocking the merge when a particular reviewer has not yet approved the PR.

You can also use ScriptRunner for Bitbucket to add mandatory reviewers to Pull Requests. This can be done in a couple of ways.

1. As a simple list of users or groups you can use the Auto-Add Reviewers to a Pull Request Built-In Script:

<https://docs.adaptavist.com/sr4bib/latest/features/listeners/built-in-listeners/auto-add-reviewers-to-a-pull-request>

2. Or, if you have more complex requirements, for example adding mandatory reviewers based on a particular file change etc, you can use the more advanced Dynamically Add Reviewers to a Pull Request Built-In Script:

<https://docs.adaptavist.com/sr4bib/latest/features/listeners/built-in-listeners/dynamically-add-reviewers-to-a-pull-request>

Please let me know how you get on using these ScriptRunner for Bitbucket Scripts?

Kind regards,

Robert Giddings,

Product Manager, ScriptRunner for Bitbucket


author: Ulrich Kuhnhardt _IzymesCo_
body: Hi Maheswar,

that's an interesting scenario, in fact it is quite common. While I can't supply a script that does exactly what you need, your requirement consists of 2 basic steps,

1. If a certain file path is part of a pull request changeset, add a mandatory reviewer.

2. Before the pull request can be merged, the mandatory reviewer must approve, otherwise the PR is blocked.

We have built out this functionality (no coding required) as part of the [Workzone for Bitbucket](https://marketplace.atlassian.com/apps/1211303/workzone-pullrequest-workflow?hosting=datacenter&tab=overview) (Server/Datacenter) app.

If you are on a server or Datacenter instance, please let me know if need any help to set this up. Here is a [start](https://www.izymes.com/adding-specific-pull-request-reviewers-for-different-parts-of-your-codebase/) .

There are also other apps like Scriptrunner available that can potentially solve the problem.

Cheers Ulrich

[Izymes](https://marketplace.atlassian.com/vendors/1210584/izymes-pty-ltd)
Is there anyway to skip a particular commit from triggering webhook in Bitbucket Cloud?
Asked by Akshay b:

I have configured **webhook** in **Bitbucket Cloud** to trigger a **Jenkins Multi-Branch** pipeline job. I am able to successfully trigger the Jenkins job whenever the commit is done. But is there any configuration available in Bitbucket Cloud to skip a particular commit from triggering webhook based on some criteria? Something like based on commit message. If the commit message contains a particular keyword, then we can restrict it from triggering webhook.


Answers:
author: Theodora Boudale
body: Hi [@Akshay b](/t5/user/viewprofilepage/user-id/4025953),

I'm afraid that we don't have any configuration like that. When a webhook is configured, it will get triggered for all events specified in the webhook's triggers.

I can create a feature request for what you're asking for our development team to consider, please feel free to let me know if you'd like me to proceed with that.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud

webhook
Unable to See Remote Branch Pushed to BitBucket
Asked by Tekinet:

We're using Visual Studio and BitBucket for code repository. I pushed a new branch to BitBucket. A developer in my team is not able to see the new branch in the dropdow to see remote branches so he can pull the code and start working on that branch. However, there's another developer that is able to see the remote branch.

The developer that is having the issue to see the remote branch from Visual Studio, created a new branch and pushed it to BitBucket. I'm not able to see his branch from my Remote Branches dropdown.

It seems like there's an issue with his environment. Any recommendation on how to resolve this? It's okay if he has to start with a new branch pulled from the master branch.

Any suggestion is greatly appreciated. Please include the git commands so I can give it a try. Thank you.


Answers:
author: Mark C
body: Hi [@Tekinet](/t5/user/viewprofilepage/user-id/4544577)

Welcome to the community.

There are few things I would suggest checking with the developer:

* Check if the developer is in the correct repository by running the command **git remote -v**
* Check to see if the developer is able to see and get the updates from the remote repository by directly running the command **git pull**

Overall, I'd suggest using a command line to perform Git operations in comparison to the Visual Studio.  
If the issue is only happening in Visual Studio, the developer can re-install or probably update its version.

Hope it helps and let me know how it goes.

Regards,  
Mark C


Tags: bitbucket-cloud

cloud

visual-studio
Hello. I can't delete or remove someone else's "moved" repository. How to do it.
Asked by Constantine7266:

??????.

? ?? ???? ??????? ??? ?????? ????? "????????????" ?????????.

??? ??? ???????.


Answers:
author: Daniil Penkin
body: ??????.

????????, ??????????, ? ??? ???? ????. ?????? ?????? ???????, ? ????? ?????? ????????????

? ?????????,  
??????