youngmon/atlassian-qna huggingface dataset:
Exclude Changesets example
Asked by Keith Miller:

The "Exclude Changesets" documentation in Bamboo is... minimal. Can someone provide me with an example? The regex pattern that works for me on my machine doesn't in Bamboo, and it's like shooting in the dark to figure out why.

Thanks!


Answers:
author: Keith Miller
body: So from this:

[https://answers.atlassian.com/questions/60533/does-excluding-changesets-to-avoid-starting-the-build-work-for-a-git-repository](/questions/60533/does-excluding-changesets-to-avoid-starting-the-build-work-for-a-git-repository)

you have to add '\\n' to the end of your pattern string. That's something that probably should be in the documentation.

comments: author: Keith Miller
body: Upgrading to 4.3.3 solved the issue.


author: Keith Miller
body: Even .\* doesn't work. Builds still keep firing off on Git commits no matter what.

comments: author: Carlos Manzanas
body: Same for me. Bamboo version 5.15.7
Why is "Latest Changes" blank on the "My Bamboo" page?
Asked by Brent Villalobos:

We recently upgraded from Bamboo v3.2 to v4.3. Now, when someone goes into his "My Bamboo" tab, the "Latest Changes" section is empty except for a message saying "No change information available." In Bamboo v3.2, "Latest Changes" was populated with, well, latest changes.

Nearly all our plans use a custom repository plugin for AccuRev. When we look at individual builds, we do see the change information so we know it is being calculated correctly. Anyone know why it isn't showing up on the "My Bamboo" page?


Answers:
author: James Dumay
body: Changes only show up on the My Bamboo page for Plans that you have favorited.

comments: author: Brent Villalobos
body: Thanks for the feedback. However, I have checked in changes that triggered many of my favourite plans. And while those plans report the changes, my "Latest Changes" section is still blank.

I think this is more of a question for Atlassian support at this point since it doesn't seem like a common occurance.


author: James Dumay
body: You will also need to have committed to those build and have the repository author linked with your user (you can do this linking via your user profile)


author: Brent Villalobos
body: Thanks for the additional tip. I do have a repository author linked to my Bamboo user account. Still, no dice.
Bamboo unable to login to Subversion
Asked by paul read:

We are trying to set up Bamboo to work with Subversion. From the server we have installed Bamboo on I can browse to Subversion and see the projects, ok, BUT entering the same details in Bamboo we get the error below:

This is not a valid Subversion Repository: svn: E170001: Negotiate authentication failed: 'No valid credentials provided'


Answers:
author: Sultan Maiyaki
body: Can you try to add the following explicitly to you eenviroment variables:

-Dsvnkit.http.methods=Basic,Digest,Negotiate,NTLM


author: Luke Liao
body: For me add domain name before user name solved the problem. But the error message is not informative at all.


author: Netsafe
body: Where would I edit the environment variable in Windows to insert the line shown above?

comments: author: Sultan Maiyaki
body: Edit the file {{conf/wrapper.conf}} file and add the line

wrapper.java.additional.X=-Dsvnkit.http.methods=Basic,Digest,Negotiate,NTLM

Please replace capital X with the next available digit in the series of java additionals and retsart Bamboo for the changes to take effect


author: binit jha
body: wrapper.conf is not available in C:\\Program Files\\Bamboo\\conf


author: paul read
body: Excellent thanks very much that did the trick
Bitbucket Cloud App RepoPage Mixed content error http over https
Asked by anurag_pathak:

Create a Bitbucket App, which is served over https with CA certified valid SSL.

Base URL is also https and webPanels working as expected and I can see the content in the panel area. However , for repoPage I am getting below error :

```
Mixed Content: The page at 'https://bitbucket.org/<workspace>/<repo-name>/addon/bitbucket-extension/repo-page' was loaded over HTTPS, 
but requested an insecure resource 'http://document.example.com/document/<repo-name>/?xdm_c=channel-22250902-3f05-4e31-9897-886566eb221f&xdm_e=https%3A%2F%2Fbitbucket.org&crev=30d97464a9ba%2Fdist%2Fconnect%2Fv5&jwt=<jwt-token>'. This request has been blocked; the content must be served over HTTPS.
```


Answers:
author: Ben
body: Hey Anurag!

Just checking in to see if this issue is resolved? If not, please let me know - I will raise a support ticket on your behalf where you can provide a .HAR file so that we can analyze what is happening in the browser when the content is accessed.

- Ben (Bitbucket Cloud Support)


Tags: bitbucket-cloud

cloud
From last 24 hrs I'm unable to open bitbucket.org. Need a resolution.
Asked by zcrossz:

From last 24 hrs I'm unable to open bitbucket.org, but while trying from a browser with VPN mode its working perfectly. How can I reach the product web portal.  

Even I'm unable to clone, push or pull from my machine.


Answers:
author: Nic Brough -Adaptavist-
body: If you can connect with a browser via a VPN, but not without it, then the problem is with your networking - either your network is not allowing access, or your ip address is blacklisted.


author: Fabio Racobaldo _Herzum_
body: Hi [@zcrossz](/t5/user/viewprofilepage/user-id/4650982) ,

you should raise an issue to <https://support.atlassian.com/contact/#/>

Hope this helps,

Fabio


Tags: bitbucket-cloud

cloud
print bitbucket pipelines memory usage
Asked by Brian Soe:

Is there a command to print out the service / container memory, so I can see which line in my bitbucket pipeline "script:" is consuming so much memory?

When I build moderate size c++ projects with cmake or colcon, I run memory limits. I have set size: 2x and memory: 7128

I suspect that my build process is needs to be optimized for memory usage. Maybe make -j consumes too much memory?


Answers:
author: Caroline R
body: Hi, [@Brian Soe](/t5/user/viewprofilepage/user-id/3710595)! Thank you for reaching out to Atlassian Community!

If you want to see memory for the build container, you can add the following commands at the beginning of the script of the step that you would like to check:

    - while true; do ps -aux && sleep 10; done &- while true; do echo "Memory usage in megabytes:" && echo $((`cat /sys/fs/cgroup/memory/memory.memsw.usage_in_bytes | awk '{print $1}'`/1048576)) && sleep 0.1; done &

I hope this helps, but do let me know if you have any questions.

Kind regards,  
Caroline


Tags: bitbucket-pipelines
Someone has already added that SSH key.
Asked by Juan M:

Hi,

I'm having an issue similar to [this one](https://community.atlassian.com/t5/Bitbucket-questions/Problem-quot-Someone-has-already-added-that-key-as-an-access-key/qaq-p/1851681?tempId=eyJvaWRjX2NvbnNlbnRfbGFuZ3VhZ2VfdmVyc2lvbiI6IjIuMCIsIm9pZGNfY29uc2VudF9ncmFudGVkX2F0IjoxNjM3ODY1NDY1NDQ3fQ%3D%3D) -- my ssh key has been added to a project (or user) and I'm unable to figure out which one it is. I only have 2 accounts (one work related, one personal).

Tried reaching out to support to provide the key and have it removed but it redirects me to community support.

I've also tried ssh -T git@bitbucket.org but all I get is:

\`\`\`

authenticated via ssh key.

You can use git to connect to Bitbucket. Shell access is disabled

\`\`\`

With no mention of the username.

Could you help me out?

Bests,

T


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

I created a support ticket for you for this issue, using the email of your community account. You should have received an email with a link to the support ticket (in case you haven't, please feel free to let me know and I can post the ticket URL here).

I would like to ask if you could please leave a comment in the support ticket and post there the public SSH key you are trying to add.

The support engineer working on your ticket can then check which account or repo(s) this key is associated with and let you know.

If you have admin access to the account or repo(s) this key is added to, you will be able to remove the SSH key yourself. If you don't have admin access, you can ask the account owner or another admin of the repo(s) to remove the SSH key.

If you have any questions, please feel free to let me know!

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Self hosted runner: Execute command from Bitbucket runner to another container
Asked by nioanto:

Hi to all,

on my personal host I have a 3 container:

* .Bitbucker runner
* . debian with dpkg-buildpackage script
* . apache web server

When I login inside Bitbucket runner container, from inside I can do it "docker ps ", the output is that:

![output.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/170964i40BB177FEB55A36F/image-size/large?v=v2&px=999 "output.PNG")

from Bitbucker runner container I can do **docker ps** ; "**docker exec -it container_name foo_bar** " and/or "**docker run**"

but

When I run my pipeline:

```


image: atlassian/default-image:3options:  docker: true      pipelines:  default:      - step:              name: 'execute command from external container'                 script:            - docker exec -itu infallible_vaughan  any_command_you_want
            
```

I retrive this error:

Error: No such container:

someone can help me to use the container that are running on my server from Bitbucket pipeline?


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

In order to provide isolation and reproducibility, a runner doesn't provide access directly to the host file system, so it is not possible to access any Docker containers that are running on the host machine during a Pipelines (runner) build.  

You could run a docker container during the build with a **docker run** command in your yml file and it should then be possible to execute docker commands in that container with **docker exec** , but without the **-it** options, as they aren't supported in Pipelines.

Also, just a heads up, you need to add a **runs-on** parameter to a step in the bitbucket.pipelines.yml file with at least the **self-hosted** label, in order for the build to run on your runner:

* <https://support.atlassian.com/bitbucket-cloud/docs/configure-your-runner-in-bitbucket-pipelines-yml/>

I'm not sure if you have that already in the yml file of your repo and removed it when you copied and pasted the contents of the yml file here, I just mention it in case it's missing.

Kind regards,  
Theodora


Tags: bitbucket-pipelines

cloud

docker
Generate artifact (jar) and deploy it to FTP Server
Asked by Thomas Kiesl:

Hello all! Is there a way to build and move artifacts (Java, Spring Boot Application) to a FTP server. I use Maven for the builds and gerante my jar via "clean package -Pproduction".

I found out that via SFTP it is maybe possible to reach this goal. Something like this:

<https://stackoverflow.com/questions/67519816/sftp-deployment-using-bitbucket-pipeline-yml-of-react-build>


Answers:
author: Igor Stoyanov
body: [@Thomas Kiesl](/t5/user/viewprofilepage/user-id/4649861) hi. Thanks for your question. Good example of using sftp-deploy but you need specify which files you want to upload:

    - pipe: atlassian/ftp-deploy:0.3.6  variables:    USER: $USER    SERVER: $SERVER    PASSWORD: $PASSWORD    REMOTE_PATH: $REMOTE_PATH
        LOCAL_PATH: build

Maybe this will be useful too: [maven build template](https://bitbucket.org/bitbucketpipelines/template-maven-publish/src/master/bitbucket-pipelines.yml)

Regards, Igor


Tags: bitbucket-pipelines

cloud
How to import an external (public) repository, to our local git server to be used in local projects.
Asked by Juno Kampstra:

In Mercurial/Hg it is possible to make a copy of an external repository to your local server, and use this (local) repository as a subrepo in your project.  
Using this method your project does not rely on external repositories, which can be down/moved/deleted/... , just on your local server.  

I know the local copy must be updated manually, for Mercurial this was done using the server setting pages (as far as I can remember).  

Is this also possible for Git?


Answers:
author: Dhruva Krishnamurthy
body: Bitbucket allows you to fork an external repository into your workspace. This effectively is your own copy of the original. If the original repository gets deleted, your fork will still remain since it is decoupled once the fork is complete.

Git supports submodules. A submodule keeps track of an external repository and when you clone the top level repository with \`--recurse-submodules\` option, it will pull in changes from repositories pointed by the submodules in the top repository. However, this is done on your client and not on Bitbucket Cloud hosting side.

If you want to maintain copies of external dependencies to avoid surprises when they get deleted, forking them is your best option. However, you will have to keep updating your forks from the original to keep them in sync.

comments: author: Juno Kampstra
body: I already understand the submodules principle.

But I think the result is:  
Fork to a repository and have this repository stored on your bitbucket server.  
Now use this forked repository as submodules in one or (git) projects.

I do not know whether possible, but this is also not my desire to achieve: When able to use a submodule as a fork, this would imply my project clone would contain the (full) forked submodule...

So fork to a (new) repository and use this repository as a submodule in your project.

Some googled usefull, and maybe not fully related links:

* github-to-bitbucket: <https://gist.github.com/sangeeths/9467061>
* <https://support.atlassian.com/bitbucket-cloud/docs/fork-a-repository/#ForkingaRepository-BasicsofForking>
* <https://stackoverflow.com/questions/34678090/syncing-a-fork-in-bitbucket-branches-and-tags-how-are-they-synced>


Tags: bitbucket-server

git

server
bitbucket home deleted(renamed) after upgrade
Asked by Jens Rapp:

yesterday, I upgraded bitbucket server from 7.11.2 to 7.17.1 and it worked well so far.

only thing I mentioned was, that it didn't run with oracle jdk but opendjdk.

tonight, at midnight (0:00), the bitbucket home directory 'application' was renamed to 'application.deleted' and a new one was created.. but this was nearly empty. only share and log inside.

log sais nothing more that db couldn't connect.. (i suppose, it didn't really have one)

renaming the .deleted folder back solved this. I also took care that oracle jdk runs bitbucket.

But why did that happen and will it re-happen tonight?


Answers:
author: Jens Rapp
body: new info on this. Seems, that this was a feature of ansible.  
Since bitbucket installer always creates user atlbitbucket but our configuration management software only has 8 letters, we use user git for bitbucket.  
re-owning of the application directory led to a fatal reaction of ansible. Same problem could occour when we update confluence (user confluen) next time..  
Would be nice if atlassian installers enable a user setting.. (as i coincidentally requested today.. <https://jira.atlassian.com/browse/BSERV-13066>)


author: Christian Glockner
body: Hi Jens,

This is nothing that Bitbucket Server does on its own so it must be something on your system.

Cheers,

Christian

Premier Support Engineer

Atlassian

comments: author: Jens Rapp
body: well, on one hand, I hoped for that answer..

... on the other hand, it scares me a little since I don't have a clue what happened there..

Yet another micaculous thing to keep an eye on ;-)


Tags: bitbucket-server

server
Not receiving invitation email from Bitbucket.org
Asked by a.ginanjar:

Hi,

As subject, my manager send invitation to new repository but I am not receive any invitation emails from bitbucket.org in inbox, junk email, or spam.

Here is my email : \<email removed due to privacy reasons\>

What the issue and how to fix this?

Kindly advise.

Thank you in advance.


Answers:
author: Caroline R
body: Hi, [@a.ginanjar](/t5/user/viewprofilepage/user-id/4648903)! Welcome to the community!

I checked our logs and confirmed that your email had a block on the server that prevented emails from being sent to you, so I removed your email from the suppression list.

Just to give you some context around this issue, it can occur when the system tries to send an email to the user and the account does not exist yet, is not activated, or it rejects the email for some internal reason.

Could you please ask the admin of the workspace that you were invited to remove the invitation and send you a new one? They can do this by following the next steps:

In case they have invited you to a **specific repository**:

* Access the workspace \> Go to the repo they have invited you to;

* Access the **Repository Settings** \> **User and group access;**

* Click on the "**invitation pending**";

* Select the "**Cancel invitation**" option to remove the invitation;

* Add your email again to send a new invitation.

In case they have invited you to a **group on this workspace**:

* Access the workspace \> **Settings**;

* Access **User groups** \> Open the group they have invited you to**;**

* Click on the "**invitation pending**";

* Select the "**Cancel invitation**" option to remove the invitation;

* Add your email again to send a new invitation.

In case you still don't receive the email, could you please check if there are any quarantined emails on the server?

Please let me know how it goes and feel free to share any additional questions regarding this case.

Kind regards,  
Caroline

comments: author: a.ginanjar
body: Hi [@Caroline R](/t5/user/viewprofilepage/user-id/3934006)

It works now.

Thank you.


author: Caroline R
body: Hi, [@a.ginanjar](/t5/user/viewprofilepage/user-id/4648903)! Thank you for your confirmation, I'm glad to know it worked!

Kind regards,  
Caroline


Tags: bitbucket-cloud

cloud
Bitbucket not ready to clone with linux
Asked by Piyush Kukadiya:

![Untitled.png](/t5/image/serverpage/image-id/170835i6931F43B19206010/image-size/large?v=v2&px=999 "Untitled.png")


Answers:
author: Dhruva Krishnamurthy
body: I just tried cloning it and it succeeded

```
$ git clone git@bitbucket.org:sde2-admin/partone.git
Cloning into 'partone'...
remote: Enumerating objects: 7, done.
remote: Counting objects: 100% (7/7), done.
remote: Compressing objects: 100% (7/7), done.
remote: Total 7 (delta 1), reused 0 (delta 0), pack-reused 0
Receiving objects: 100% (7/7), done.
Resolving deltas: 100% (1/1), done.
```


Tags: bitbucket-cloud

cloud
cant get https access to cloud account to clone
Asked by Russell Fulton:

I have the "Too many invalid password attempts." problem. Logging in to bitbucket manually makes no difference so I assume that something is banging away with the wrong password but I can't figure out what.

I found instructions to list recent sessions which involves logging in to the account selecting the avatar and then "personal settings".

This lists the me logging in from my laptop but no sessions where I am trying to clone a repository on a server. These connection will be going via a squid proxy. It has occurred to me that some other user on the same proxy is having problems and the block is by IP and not user?

I am stuck with using https rather than ssh because the server does not have ssh access to the Internet.

Thoughts?


Answers:
author: Caroline R
body: Hi, [@Russell Fulton](/t5/user/viewprofilepage/user-id/4649017)! Welcome to the community!

Before we start, I'd like to confirm that I've understood properly what is happening on your side. Feel free to correct me in case I have misunderstood something here. Apparently, you are not able to access your repositories in Bitbucket Cloud when using HTTPS. Is that correct?

If that's the case, could you please confirm the following information, so we can further investigate this case?

* Is this happening when you use the terminal or another option like SourceTree?

* Is there any other message besides "Too many invalid password attempts"?

* By "Logging in to bitbucket manually makes no difference", do you mean that you can't access your Bitbucket account through the UI either?

* I understand that you are using your user password, is that correct? Could you please clear the credentials on the application you use and try to authenticate using an [App Password](https://support.atlassian.com/bitbucket-cloud/docs/app-passwords/)?

App passwords are substitute passwords for a user account that you can use for scripts and integrating tools to avoid putting your real password into configuration files.

Please let me know how it goes. Looking forward to hearing from you.

Kind regards,  
Caroline

comments: author: Russell Fulton
body: Thanks Caroline!

Always a good idea to check understanding! :)

yes, the app password worked fine!

I was going to get those machines set up with a hole through the firewall to bitbucket.org:22 but I won't bother now.

I still have no idea what the actual problem was (and since I am a security engineer that bothers me ; )

Russell


author: Russell Fulton
body: there does not seem to be a way to edit the question so here is some additional information:

I am able to clone the same repository from another IP address using the same account. This strongly suggest to me that it is the poxy IP which is blocked not the account.

I know that I had issues earlier with password from the account and that there were a large number of failures from automated logins (from puppet).


Tags: bitbucket-cloud

cloud