youngmon/atlassian-qna huggingface dataset:
bamboo-svnflat-repository plugin for bamboo 4.3
Asked by Alexandr_Sirotkin:

We were using bamboo-svnflat-repository plugin with bamboo 2.7. After moving to bamboo 4.3 I installed this plugin and looks like it doesnt work.

Here is home page of the plugin: <https://marketplace.atlassian.com/plugins/com.nespresso.bamboo.plugins.repository.svnflat.bamboo-svnflat-repository>

Is there any chance this plugin be upgraded to work with the latest Bamboo? If no, what do you advice?


Answers:
author: Marcin Gardias
body: how about creating a symlink between 'global' copy and Bamboo workspace. You can do it using ScriptTask.

Then you can checkout into symlinked directory.

comments: author: Alexandr_Sirotkin
body: Thank you, it should work. The only disadvantage I should add this script to every plan. Is there a way to share script between plans?


author: Marcin Gardias
body: \> Is there any chance this plugin be upgraded to work with the latest Bamboo?

I'm afraid only author of the plugin can answer this question.

What is you are trying to achieve using this plugin? Why standard Subversion plugin is not sufficient for you?

comments: author: Alexandr_Sirotkin
body: We were using this plugin to do flat checkout, when checkouted data is stored somewhere in our build machine, not in plan working folder. And this data is shared between build plans.

We have 3d party libraries in SVN which are used by our build plans. These libraries occupy about 5 GB disk space. I need to share them between build plans to avoid checkout 5GB for every build plan (we have about 100 plans now). I.e I want checkout them once to my physical machine. How can I achieve this with bamboo 4.3?
How to get revision number via runtime variable of additional source repositories
Asked by Enrico Neuber:

Hi,

I have a build plan with three source repositories defined. The runtime variable ${bamboo.repository.revision.number} always gets the rev of the default repository. How can I can the rev of the additional repositories via runtime variables?

Background:

The two additional repositories are built and the build output is taken to update the default repository. The generated assemblies should have the SVN revision in the assembly file version. I like to pass the rev to the build in bamboo beside the build number.

Best regards,  
Enrico


Answers:
author: John Bowker
body: Have you tried getting this info via the REST api?

Use **rest/api/latest/result** and expand **vcsRevisions.**
Excessive logging
Asked by Vlad Korolev:

For some reason our Bamboo instance produces excessive log messages when it is running. We are getting FINE and FINEST log messages both on the console and in the log files. This makes our build very slow.. any way we can tune the logging down to at least WARN level


Answers:
author: Vlad Korolev
body: I have resolved this afternoon myself.

The problem was that some one had modified logging.properties in the JDK/lib directory.. so it was logging everything at the finest level. This was driving me crazy for a few months.

I discovered the culprit accidentally this afternoon when I was working on something else and had to run Maven from the command line. When I saw the excessive logging from something not related to Bamboo, I knew where to look and was able to troubleshoot it in under 15 minutes.

Thankfully, now the builds are much faster ( about 35% or so ).

-- Vlad


author: ConradR
body: Have you seen this document:

<https://confluence.atlassian.com/display/BAMBOO/Logging+in+Bamboo> ?
> The information on this page relates to the *Bamboo server (atlassian-bamboo) logs only*. You cannot change the logging configuration for the build logs.


Tags: log

performance
Bamboo unattended setup/configuration post installation
Asked by Scott Burks:

I understand I can do the installation itself unattended but I was really trying to determine if its possible to do the setup and configuration unattended. By that I mean the setup/config that is done during the setup wizard. Can this be done from the command line? This is the piece I'm really interested in automating as the installation itself is pretty easy to automate...

Thanks,

Scott


Answers:
author: Scott Burks
body: I looked at that URL but I couldn't find anything related to unattended installation or even the appropriate config files I need to modify in order to bypass doing the setup wizard piece of the configuration. Basically what I'm looking for is a "complete" way of doing an unattended installation from beginning to end without intervention by the end user. This included the database setup config and any other setup and config.

comments: author: Richard Cross
body: Did you ever manage this? I've been trying the same, and come to the conclusion that you need to run through the attended installation once, and then capture the HSQL defaultdb (to which at least one local user has been added) and distribute that along with a custom bamboo.cfg.xml and bamboo-init.properties.


author: Scott Burks
body: Yes I actually was able a few years ago to successfully get a FULLY automated deployment of both Bamboo Server and Bamboo Agent running against an external Oracle Server using Chef. So what I did is very similar to what you mentioned except that I actually stood up a RHEL VM to run Bamboo Server as well as an Oracle Server running on a separate RHEL VM. I then did the standard installation capturing the install and configuration. I exported that to a file, something like expbamboo.dat. Then with the Chef cookbooks I did the install, configuration and finally the import of the expbamboo.dat file into my newly built Oracle Server RHEL VM. Took some finagling with Chef recipes and I utilized bamboo_external.cfg.xml. I was even able to get it hooked into our Crowd server in an automated way so SSO worked :smile:


author: LucasA
body: Hi,

Yes, even running the wizard, you'll be putting your settings on configuration files. Take a look into this page: <https://confluence.atlassian.com/display/BAMBOO040/Bamboo+EAR-WAR+installation+guide> , I believe that this may help you.

Lucas Lima


Tags: configuration
bamboo build repository dependency setup
Asked by dhaval soni:

I have configured bamboo plan for bitbucket repository project.

Actually, to build this project, there is a dependenc project needs to installed under "c:\\programfiles\\productApp\\".

So, when trigger the bamaboo build then it gets fail by showing that locations are denied...

please let me know how can i setup bamboo confiugration for such external dependencies.


Answers:
author: Adam Myatt
body: I would try using an inline Script Task. You can add that to your build plan and call a build file (bat, ant, maven, etc) in an external directory. Also just make sure whatever windows user that Bamboo is running as has permissions to read/execute files under that external directory.

comments: author: dhaval soni
body: Can you please share some brief how it could be for external directory.

and it really helps if you can share any such script or details steps. how can i resolve this dependancy issue.

Thank You.
Bamboo SCP - is it possible just to copy changed files?
Asked by Pier:

I'm using Bamboo and the SCP plugin to copy our web application to testing and production servers.

I'm wondering is it possible to have bamboo ONLY copy files that have been changed since the last deployment.

We previously used DeployHQ for this and this feature was available.

Thanks,

Peter


Answers:
author: Christopher Callis
body: Anyone have any idea with this? I also need to grab the latest files from the last repo update! Bamboo definintly has a record of the files, its just getting that listing.


author: Dmitry Pasichnik
body: I also look for the solution but didn't find anything. I need to deploy (SCP) files that has been changed since last git commit. I think this possibility must be a default option in SCP,FTP tasks. Can anybody from Atlassian give a ready to use example of it?


author: LucasA
body: You can set a task using a script that make the desired action. Please take a look on <https://confluence.atlassian.com/display/BAMBOO/Script>.

Lucas Lima


author: Rajath Veeramanchala
body: Use this option to see only the files changed in the previous commit :

```
git diff --name-only HEAD HEAD^1
```

and you can create and archive of changed files using the below command :

```
git archive --output=latest_artifact.zip HEAD $(git diff --name-only HEAD HEAD^1)?
```

To make sure this runs correctly, You have to do the following :

1. Make sure your merge strategy is Merge commit - Usually makes a merge commit every time resulting in your latest commit having changes of all the commits from source branch to target branch

2. Disable Automatic merging under Branching model - Merging master to dev automatically

3. Run the command in script task after your source code checkout task

The only problem with the merge strategy being merge commit is that it will create a large commit history and with Automatic merging it can further mess up the commit history. Also you can\`t have any .zip files in your repo and in bamboo you can create an artifact of the \*.zip file and then use deployment project / SCP task to copy the zip file to server.

Hope this helps. The version is 5.12 when I\`m writing this answer.


author: Nuno
body: This thread is quite old, has anything changed?

The only way to copy just the changed files is with the script??

My source code is around 500Mb (code + assets) i can't upload the entire source if I just changed a few files and the script solution doesn't feel right, bamboo should have this out of the box.


Tags: cloud

scp
could not resolve hostname
Asked by afgman4:

i saw about error that..

**bitbucket ssh : could not resolve hostname aaa.bbb.com non-recoverable failure in name resolution**

i tried to add etc/hosts like this

xxx.xxx.xxx.xxx aaa.bbb.ccc

and then.. that's show me the error message.

so i tried to add like this

xxx.xxx.xxx.xxx aaa.bbb.ccc:22

but... i didn't fix that.. how do i?

When I connect with Eclipse, it works fine, but when I try to connect with vscode, I can't connect. I only get this message "**bitbucket ssh : could not resolve hostname aaa.bbb.com non-recoverable failure in name resolution**" Why is that?


Answers:
author: Nic Brough -Adaptavist-
body: I'm afraid that is purely a problem with your networking settings.

Bitbucket is asking your operating system to connect it to a named domain, and your DNS system is saying "sorry, can't do that - I can't resolve aaa.bbb.com"

What is the difference between the settings you have in Eclipse for reaching remote computers and the settings in VS Code?


Tags: bitbucket-server

server

ssh
Runners image down?
Asked by Rafael F_:

Trying to pull the image:  
docker image pull docker-public.packages.atlassian.com/sox/atlassian/bitbucket-pipelines-runner:1  

Gives me 404.  

update: Seems to be up again.


Answers:
author: Patrik S
body: Hello [@Rafael F_](/t5/user/viewprofilepage/user-id/4400832) ,

Welcome to Atlassian Community!

We had an incident on December 7th related with a downstream outage in our underlying platform provider AWS that affected the Bitbucket pipeline builds, as you can see in our public status page :

* <https://bitbucket.status.atlassian.com/incidents/k6pbf7mbxhdd>

The issue you reported seems to be related to that incident which is already fixed, and as per your last update, you were able to pull the runners image successfully now.

If that is not the case let us know so we can further assist you.

Thank you, [@Rafael F_](/t5/user/viewprofilepage/user-id/4400832) :)

Best regards,

Patrik S


Tags: bitbucket-cloud

bitbucket-pipelines

cloud
git clone ssh://git@
Asked by Mohamed Azzab:

Cloning into 'ssh-config-idcs'...  
Repository not found  
The requested repository does not exist, or you do not have permission to access it.  
fatal: Could not read from remote repository.

Please make sure you have the correct access rights  
and the repository exists.


Answers:
author: Mohamed Azzab
body: Hi Charlie ,

I added your public ssh key to your Bitbucket and I have no issue with the public and private key .

it seems a permission issue .

Thanks

comments: author: Charlie Misonne
body: Hi Mohamed,

In that case you should ask someone who is admin on the repository to add you.


author: Charlie Misonne
body: Hi [@Mohamed Azzab](/t5/user/viewprofilepage/user-id/4664529)

Either way you do not have access to this repository or there is a problem with with your ssh key.

Make sure you have added your public ssh key to your Bitbucket? profile.  
And make sure your private and public keys are on the correct location on your client. Usually this is in the .git directory in your home directory.


Tags: git
What happens when our Bitbucket server license gets expired?
Asked by Guneet Arora:

Our Bitbucket server license is going to expire soon. Will it affect the functioning of the application other than that we'll no longer be able to upgrade or get support from Atlassian?


Answers:
author: Daniel Eads
body: Hi [@Guneet Arora](/t5/user/viewprofilepage/user-id/4239622) ,

The Bitbucket Server license is perpetual - the product will keep working normally after the license maintenance term has ended. However, not having support or upgrades also means that the product cannot be upgraded for security purposes, such as a patch to a critical security vulnerability.

Cheers,  
Daniel


Tags: bitbucket-server

server
Clone a git repo jus once
Asked by Marcus:

For now the bitbucket pipeline clones the repo in every step.

But is there a way of just cloning once and sharing the repo files like a cache?

Or do we have to make the repo as an artifact after cloning?


Answers:
author: Patrik S
body: Hello Marcus,

Welcome to Atlassian Community!

Just to give you a little background, Pipelines uses a server-less infrastructure, meaning that the build containers are only provisioned on demand. When your pipeline build starts, it starts a docker container with the image that you provide on the YML file, and run the script commands that you have configured. The build setup includes the following steps :

* Pull the docker images used by that step
* Execute a git clone operation to copy the content of the repository
* Download cache and artifacts if available.

That being said, since every build step runs in a separate docker container, each time a step starts it will clone the repository by default.

At this moment, if you want to use the repo folder in next steps but don't want to clone it again, the only option is by creating an [artifact](https://support.atlassian.com/bitbucket-cloud/docs/use-artifacts-in-steps/) of the repository directory, as you mentioned.

You can also use the following alternatives to improve your build :

* Reduce the clone depth of your repository in case you don't need older commit:

  ```
  clone:  depth: 5       # include the last five commits, for example  pipelines:  default:    - step:        name: Cloning        script:          - echo "Clone just five commits!"
  ```

* If there are steps on your pipeline where you are not using the repository, you can disable the repository clone by using the following YML flag :

  ```
  - step:        clone:           enabled: false        script:          - echo "test"
  ```

Hope that helps to address your questions! :)

Kind regards,

Patrik S


Tags: bitbucket-cloud

bitbucket-pipelines

cloud
Connect to Bitbucket with TM1 REST API, CAM namespace authentification
Asked by Marko Puk:

Hi everyone,  
did someone tried to authenticate using integrated mode 5, with CAM?  
Any help with some more detailed steps than on IBM pages would be really helpful.  
I tried combinations with encoding my username, password and namespace, but all returned 401 unauthorized. Also if someone was trying with CAM passport, any help is welcome. I am using Postman and I tried to follow CAMuri and send CAM Passport that I see in cookies after logging in, but that didn't help either :/  
Thanks.


Answers:
author: Norbert C
body: Hi Marko,

Thank you for contacting Atlassian Community! I'm Norbert from Bitbucket Cloud Support, it's nice to meet you! Also, welcome to the Atlassian Community :)

Unfortunately we're not familiar with "integrated mode 5, with CAM", but based on my observation once you're trying to authenticate you get a 401 error, which means "unauthorized".

When you're doing the API call, can I ask you to try to authenticate with your username + [app password](https://support.atlassian.com/bitbucket-cloud/docs/app-passwords/) combination and let us know if that makes any difference?

We're looking forward to hear from you.

Best Regards,  
Norbert  
Atlassian Bitbucket Cloud Support

comments: author: Marko Puk
body: Hi,

thank you for your answer. Actually I realised it is TM1 that I am not able to authorize to.

If there is maybe someone from community that went thru same situation I would be grateful to hear some advice.

Kind regards,

Marko.


Tags: authentication

bitbucket-cloud

cloud
Looking for Webhook to Trigger CI job in Jenkins after PR is merged in Bitbucket
Asked by sowmyanx:

Hi Team,

I am looking for webhook which can be used to Trigger CI JOB on jenkins once the pull request is merged against branch.

***Use Case: Developers usually create a local branch and raise PR against target branch, once this PR is merged against a target branch it should automatically start CI job on jenkins*.**

Please let me know if anyone were able to make use of webhooks on Bitbucket to achieve this


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

In order to trigger a CI job in Jenkins after a pull request is merged in Bitbucket, you can follow the next steps:

* Open your repository \> **Repository settings** \> **Webhooks**

* Click on **Add webhook**

* Add a title and the URL

* Under **Triggers** , select the **Merge** option

* Click **Save**

In case you would like to read more about Webhooks, you can access the following link:

* <https://support.atlassian.com/bitbucket-cloud/docs/manage-webhooks/>

Also, if the server that has Jenkins installed is behind a firewall, you might need to whitelist these IP addresses so Bitbucket can reach them:

* <https://support.atlassian.com/organization-administration/docs/ip-addresses-and-domains-for-atlassian-cloud-products/#AtlassiancloudIPrangesanddomains-OutgoingConnections>

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

Kind regards,  
Caroline


Tags: bitbucket-cloud

cloud
i cant find my team members in the pull request reviewers list
Asked by Evans:

I can't find my team members in the pull request reviewers list and I am seeing unknowns who aren't even in my team pop up

![Screenshot 2021-12-07 at 11.11.21.png](https://community.atlassian.com/t5/image/serverpage/image-id/172610i4A380A2B7A3A8E62/image-size/large?v=v2&px=999 "Screenshot 2021-12-07 at 11.11.21.png")![Screenshot 2021-12-07 at 11.12.09.png](https://community.atlassian.com/t5/image/serverpage/image-id/172611i8486C94ACB039918/image-size/large?v=v2&px=999 "Screenshot 2021-12-07 at 11.12.09.png")


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

It seems you are affected by a known bug in which users do not appear in the 'User picker' (reviewers) list in some situations:

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

Our development team will post an update on the bug report when this is fixed. If you are not familiar with our Bug Request Policy, you can read more about it [here](https://confluence.atlassian.com/support/atlassian-cloud-bug-fix-policy-206865884.html).

You can add yourself as a watcher (by selecting the **Start watching this issue** link in the bug report) if you'd like to get notified via email on any updates and also select the **This affects my team** link to indicate you are affected by this issue.

**Workaround:**

Use an API 2.0 endpoint to add reviewers to an existing pull request.

**Step 1:**   
Use this [API endpoint](https://developer.atlassian.com/bitbucket/api/2/reference/resource/users/%7Busername%7D) to identify the UUID of the person/user you wanted to add as a reviewer:

    curl -X GET -u username:appPassword https://api.bitbucket.org/2.0/users/<WORKSPACE_ID>/members

**Step 2:**   
Once the user/person's UUID is identified, prepare the payload by running the command below:

    printf '{ "title": "Some title of the PR here", "reviewers": [{ "uuid": "{replace_me_with_an_actual_uuid}"}]}' > payload

**Step 3:**   
Use the below API endpoint to update the existing pull request:

    curl -X PUT -u 'username:password' https://api.bitbucket.org/2.0/repositories/{owner}/{repo_slug}/pullrequests/{pullrequest_id} -d @payload --header "Content-Type: application/json" -v

If your account is managed by your organization with SSO. Kindly generate an App password first and use it as your password for authentication. - [App Passwords](https://support.atlassian.com/bitbucket-cloud/docs/app-passwords/)

About you seeing users who are not members of your team, this could happen if the repository you are working on is **public**. I see you do have access to a public repository, so could you please confirm if this is happening under this repo?

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

Looking forward to hearing from you.

Kind regards,  
Caroline

comments: author: Evans
body: Thank you very much Caroline!

Will look into this now


author: Evans
body: This has been fixed now.

Once again, thank you Caroline!


Tags: bitbucket-cloud

cloud
503 Service Unavailable
Asked by DOF Inc.:

As shown in the image below, it is not accessible, so please check how to take action.

We look forward to your prompt response.

Thank you in advance!

![503 Service Unavailable.png](/t5/image/serverpage/image-id/172552i45676AEF28DD11C7/image-size/large?v=v2&px=999 "503 Service Unavailable.png")


Answers:
author: Craig Castle-Mead
body: @Hi [@DOF Inc.](/t5/user/viewprofilepage/user-id/361130)

That appears to be an internal platform, that while i may be using an Atlassian product, it is the responsibility of your technology team to ensure is running. You may wish to contact your internal helpdesk and see if they can engage the appropriate team/s.

CCM


Tags: bitbucket-cloud

cloud
Cannot receive bitbucket invitation email
Asked by matthew.siesco:

The admin for a workspace has sent me an invitation and it has not reached my inbox.

I have checked all email folders, including spam and junk.

Would you be able to help out with this?


Answers:
author: Caroline R
body: Hi, [@matthew.siesco](/t5/user/viewprofilepage/user-id/4663147),

I saw that you created a ticket with our support related to the same question and they have already helped you through this ticket, so to avoid any possible misunderstandings or miscommunication that may arise from discussing the same matter on two different platforms, let's focus on the ticket instead.

Once the ticket is resolved, feel free to share the resolution here to help other community members that may have the same issue.

Kind regards,  
Caroline


Tags: bitbucket-cloud

cloud