youngmon/atlassian-qna huggingface dataset:
Is upgrading to Bamboo 3.2 without first upgrading to Crowd 2.3.1 advisable?
Asked by Jeffrey Davidson:

The Crowd 2.3 release notes mention  

This release mostly contains small changes to work better with other Atlassian products such as Bamboo 3.2.  

I'm currently running Bamboo 3.0.1 and am looking to upgrade to 3.2 tomorrow when all of our developers are at a conference. I recently updated Crowd to 2.2.7. Will Bamboo 3.2 be lacking in any way without first doing the Crowd upgrade? Upgrading Crowd is kind of touchy since it takes down all of our Atlassian suite (and a couple others we use with it).


Answers:
author: Jeffrey Davidson
body: I ended up waiting until the weekend, updating Crowd, then updated Bamboo. So still not certain of the answer, but it doesn't really matter to me anymore.


Tags: crowd

upgrade
Multiple SVN repositories
Asked by Allan Cochrane:

In the plan creation stage there is only one option for a SVN repository but my project needs to build from two repositories. How do I configure Bamboo to check out from multiple SVN repositories to allow my project to be built?


Answers:
author: Przemek Bruski
body: Check [here](https://jira.atlassian.com/browse/BAM-955) for some workarounds. True multiple repository support will come with Bamboo 3.3 .
Error while copying Artifacts
Asked by Mahesh Patil:

While copying artifacts we are getting following errors.

Failed to execute plugin 'Artifact Copier' with error: java.io.IOException: Unexpected HTTP status code: 302 Moved Temporarily

Could anyone let me know why this problem is coming.


Answers:
author: Nic Brough -Adaptavist-
body: What version of Bamboo are you using? This error looks a lot like [https://jira.atlassian.com/browse/BAM-7759\</p\<\>\>](https://jira.atlassian.com/browse/BAM-7759%3C/p)
Why are my plan variables not replaced ?
Asked by Barth?l?myH:

I have defined a variable NEW_VERSION_MAJOR in a plan. In one of the tasks, a command, I use the variable in the Arguments field like this : {bamboo.NEW_VERSION_MAJOR}

However, the variable is not substituted with the value I pass when launching a parameterized run.

Am I doing something obviously wrong ?


Answers:
author: brainicorn
body: I'm not sure if this was just a copy/paste error, but you need a $ in front of your variable when you use it.

e.g. ${bamboo.NEW_VERSION_MAJOR}

comments: author: Barth?l?myH
body: stupid me, of course, it was that. Thanks :)


Tags: plan

variable
Configure bamboo to use confluence avatar?
Asked by Steve Ash:

Hello. We have confluence, jira, fisheye, bamboo, etc. I notice that bamboo now has avatar support. How do I configure bamboo to use the same avatar as used in JIRA, Confluence, and Fisheye. SURELY bamboo supports pulling the avatars from confluence as Fisheye does... I'm still waiting on Crowd to support avatars so that I can stop configuring each users avatar in multiple places -- and configuring different applications to pull avatars differently.


Answers:
author: EddieW
body: Anyone actually see where bamboo avatars are used? ha I was able to implement a custom GravatarService with Justin's help, but don't actually see th image used anywhere.


author: Michael Downey
body: This would really be great. There is a FishEye plugin that can pull avatars from Confluence. However neither Bamboo or JIRA have such a thing that I've found, so users have to create several sets of avatars. Not very nice.

comments: author: EddieW
body: This should eb a comment to Steve's original question, not an answer.


author: Justin Shapiro
body: The gravatar URL in Bamboo is hardcoded. The only way to change it is to recompile. Vote for BAM-8451


author: Colin Goudie
body: I thought fisheye either has local avatars or pulls from gravatar. Most of the atlassian applications seem to be moving to use gravatar support so I would think that rather than future enhancements to pull from confluence it would be from gravatar
Problem resolving bamboo variable.
Asked by Carlos Eduardo Oliveira Bomfim:

Hello,

We've been having some problems trying to pass an argument to our script that needs to resolve a filepath using the same directory that the build is been ran.

At first we tried using a relative path, like this: -b deploy.gradle -Dconf="conf/hml.properties"

But we've been getting a file not found on the conf/hml.properties.

Then we tried using a bamboo variable, like this: -b deploy.gradle -Dconf="${build.working.directory}/conf/hml.properties", expecting that the variable gets resolved to where bamboo is executing the script, but for some reason its not being resolved at all.

Variables should be resolved in arguments of tasks, right? Or am i thinking wrong?

Thanks for the help.


Answers:
author: PiotrA
body: Which Bamboo version are you using? And which builder/task? Ant?

I recall there was recently a bug in Ant task which prevented passing the variables to the Ant execution. Might it effect also script builder/task? Hm...


author: PiotrA
body: Which Bamboo version are you using? And which builder/task? Ant?  

I recall there was recently a bug in Ant task which prevented passing the variables to the Ant execution. Might it effect also script builder/task? Hm...


author: J. Caldwell
body: As stupid as it sounds, it might have something to do with your quoting. That always gets me and that might be why the latter is not picking up the variable path.
Minimum Bamboo Server Hardware
Asked by Michael Roff:

What is the recommended minimum server hardware for Bamboo?

Is there a page like this one for Confluence for Bamboo?

<http://confluence.atlassian.com/display/DOC/Server+Hardware+Requirements+Guide>


Answers:
author: Martin Cooper
body: bamboo will run happily on any modern webserver, in terms of what resources it uses itself its actually got a small footprint

The real challenge is the builds you are running and only you can know the type of hardware that these need to run on:

<http://confluence.atlassian.com/display/BAMBOO/Hardware+sizing+considerations>

"For Bamboo, the minimum hardware requirements depend on the size and complexity of your plans. Considerations include:

1. Will your builds have functional tests as part of the plans?
2. Are your plans executed simultaneously? If so, how many plans will be running at any given time?
3. What are the requirements for your running builds, e.g. do they need large amounts of memory/disk/swap space?
4. How many users will be using Bamboo at any given time? Like any web application, the system resource needed is proportional to the load experienced by the server."


Tags: server
Can an older Bamboo use the newer svnkit library?
Asked by Ken Wood:

Is it possible to drop the newer svnkit library into Bamboo 2.5, or are the libraries not compatible?? I'd like to get the subversion checkout speed improvements that we see in evaluating bamboo 3.1.1


Answers:
author: Ken Wood
body: I never tried it, just felt it was too risky. We eventually upgraded to Bamboo 3.4.3 and the new svnkit is MUCH faster. In additional, we use 'svn export' as much as possible, only do a few checkouts in places that have to be checkouts.


author: ReneR
body: If your 'svn checkout' commands are taking too long:

\* Tune your SVN repo

\* Move to a DVCS that's faster

\* Refactor your repo so it is smaller. Think about using svn:externals for dependencies

\* In the Plan's source repository there is an Advanced tab where you can change to do an 'svn export' instead of an 'svn checkout'. This works faster: <http://confluence.atlassian.com/display/BAMBOO/Specifying+the+Source+Repository+for+a+Plan>

\* Tune the network bandwith where your checkout occurs and see if you can improve it


author: Royce Wong
body: @Keenth, did you try updating your Bamboo 2.5 to newer svnkit library? If so did it help the checkout time? I am using Bamboo 2.3.1 and SVN checkout is really slow taking 4 hrs for one plan, native svn command line checkout only took 20 mins. and jsvn checkout took 1 hour.


author: JamieA
body: Me too, I had to do it with Fisheye and it worked fine. Therefore my advice is: give it a try, it will probably work!


author: Colin Goudie
body: I remember doing this with fisheye years ago. Sometimes it was just as easy as replacing all the jars with the newer ones. But I'm not sure with Bamboo, hence just a comment :)


Tags: svnkit
JSM Cloud - let non-agents to view dashboards
Asked by Yaron Norani:

Hello,

We are using **cloud based JSM.**

Agents can work and use the product.

Customers can use the portal.

We want that internal manages to view the Dashbard.

Is it possible **without** an agent license?

I know that for server (non-cloud) you only need Jira license.

I tried to add a new group and add the managers to this group.

Then, to grant "view projects" at the permission scheme.

Still, can not make it work.

Please advise,

In addition, if it does not work , maybe we can purchase a Jira (not JSM) license for the managers and then add them to the "view project" setup?

Thanks!


Answers:
author: Nic Brough -Adaptavist-
body: Cloud and server work the same way. You need your managers to be Jira users of some sort (but not Agents). So get a Core or Software licence for them, and they'll be able to create and use dashboards, even ones that read issues from the Service Desk projects (assuming you grant them project view rights in the service desk projects)

comments: author: Yaron Norani
body: Thanks!

So, Assuming we do **not** use Jira SW, we just need to purchase Jira licenses for them for that purpose (cloud license) ?


author: Nic Brough -Adaptavist-
body: Jira Core licences will do it, if you don't want to use Software.


Tags: cloud

jira-service-management
How I can deploy only commited files via bb.yml pipeline to droplet
Asked by Raimundas Ra:

It's possible to deploy only files which was changed? Cause I used scp pipe and rsync, seems at remote server it's overwriting files at every deploy?

Currently for php-fpm project to upload files using this one pipe, which seems faster than scp pipe of Bitbucket

```
name: deploy to staging
deployment: Staging
trigger: manual
script:
  - pipe: atlassian/rsync-deploy:0.4.4
    variables:
      USER: $USER
      SERVER: $SERVER
      REMOTE_PATH: '/var/www/html'
      LOCAL_PATH: '${BITBUCKET_CLONE_DIR}/'
```


Answers:
author: Halyna Berezovska
body: [@Raimundas Ra](/t5/user/viewprofilepage/user-id/4373071) you may add a lot of different options, that rsync has, through EXTRA_ARGS variable. In this case reading rsync man, you may need -t <https://linux.die.net/man/1/rsync>

In the section usage:
> CWrsync -t \*.c foo:src/

This would transfer all files matching the pattern \*.c from the current directory to the directory src on the machine foo. If any of the files already exist on the remote system then the rsync remote-update protocol is used to update the file by sending only the differences. See the tech report for details.

That's why pass

```
EXTRA_ARGS: '-t'
```

or

```
EXTRA_ARGS:
- '--times'
```

Check this up with documentation and ensure you use rsync in the right way, you need

Regards, Galyna

comments: author: Raimundas Ra
body: Thank you for your help Galyna, but just would like to confirm that only this option with flag -c or --checksum working for me instead -t or '--times'

But anyway thank you, u showed me the right way :)

```
EXTRA_ARGS: '-c --update ${BITBUCKET_CLONE_DIR}/'
```


author: Halyna Berezovska
body: [@Raimundas Ra](/t5/user/viewprofilepage/user-id/4373071) yes, this is actually question to rsync manual, but this should work since ${BITBUCKET_CLONE_DIR} in extra args is understood as string and real value will be in the pipe:

\`rsync .... -c --update my-current-cloned-dir my-path ...\`

.

Also in extra args you can pass multiple options, once you need.

Regards, Galyna


Tags: bitbucket-pipelines
Unable to access direct image uploads through API
Asked by code4109:

Hi there.

When I'm trying to view the list of those in issues through

```
/2.0/repositories/{workspace}/{repo_slug}/issues/{issue_id}/attachments
```

I see only the attachments, but not the images from issue content

```
Picture:\r\n![](https://bitbucket.org/repo/XXXXXXXX/images/0000000000-000.png)\r\nIssue Text
```

I found no way of accessing these images through API call with username:app-password credentials

I've read the documentation and found nothing about it either

Am I missing something or this feature is not implemented?


Answers:
author: seanaty
body: I suspect this is not implemented and you'd have to parse the markdown for images and fetch them that way.


Tags: bitbucket-cloud

cloud
Can Bitbucket Server limit the size of message content in Slack plugins?
Asked by Sung Hyun Ryu:

Hello\~

My customer is using the Slack plugin installed on their Bitbucket Server.

My client wants to limit the sending of too much content when an event occurs on Bitbucket.

So I found the "slack.addon.unfurl.file.max.lines" option in the path below, and entered slack.addon.unfurl.file.max.lines=3 in bitbucket.properties, but it does not apply.

Is bitbucket.properties the correct setting place or is the setting correct? Or I'm wondering if I need to set it up somewhere else.

<https://confluence.atlassian.com/slack/use-slack-and-bitbucket-server-together-974387205.html>

Thank you.


Answers:
author: Luiz Silva
body: Hey [@Sung Hyun Ryu](/t5/user/viewprofilepage/user-id/3870342),

**slack.addon.unfurl.file.max.lines** should be set as an environment variable passed to the Bitbucket Server process. It should limit the size of repository file previews, when someone pastes a link to a source code in slack.

If that's not what you are looking for, there's also an option when configuring channel notifications for repositories. While creating or editing a connection between a channel and a repository, you can chose between **Basic** and **Extended** verbosity. Switching to **Basic** should reduce the amount of space notifications take in Slack.

Hope that helps. Cheers!


Tags: bitbucket-server

server
How to skip CI pipeline on push in bitbucket?
Asked by Sushant Pachipulusu:

We have a pipeline set up in our repo to a specific set of branches (defined using wildcards in pipeline) to trigger deployment on push command. Sometimes the developers might not want to run the pipeline for that specific push as they know that it will fail or it is not needed as there are more things to add in. In such cases there is not option to skip the pipelines.

I am looking at a push option like "ci.skip" or "ci-skip=true" which will make sure not to trigger the pipeline for that specific push. This facility/option is provided on gitlab, so I am looking for something similar or bitbucket too. As of today, if I try the same it throws below error

```
fatal: the receiving end does not support push options
fatal: the remote end hung up unexpectedly
```

***++Note:++**I am not looking for a commit level ci skip*


Answers:
author: Mark C
body: Hi [@Sushant Pachipulusu](/t5/user/viewprofilepage/user-id/4512601)

Welcome to the community.

I'm afraid we do not support push-level skip ci for Pipelines.  
We only have the [commit-level CI](https://support.atlassian.com/bitbucket-cloud/docs/bitbucket-pipelines-faqs/) that you can add to your commit message to skip a Pipelines build.  
The way how Pipelines skips a build is through [Webhooks](https://support.atlassian.com/bitbucket-cloud/docs/manage-webhooks/).  
When Pipelines reads or validates that a commit message has the string \[skip ci\] or \[ci skip\], it will be ignored by Pipelines.

Right now, I've gone ahead and created a feature request for it that can be located through this link. - <https://jira.atlassian.com/browse/BCLOUD-21290>  
You can upvote and watch it for now so that you'll be notified of any updates from our team when the feature becomes available on Bitbucket Cloud.  
![](https://getsupport.atlassian.com/images/icons/emoticons/information.png) Please do note that we don't have an exact ETA for the feature request as all new features will be implemented according to our policy [here](https://confluence.atlassian.com/support/implementation-of-new-features-policy-201294576.html).

Let me know if you have any questions.

Regards,  
Mark C

comments: author: Sushant Pachipulusu
body: Thank you Mark for creating a feature request. Hope it will get accepted soon and will become a feature from bitbucket too


Tags: bitbucket-cloud

cloud
Unable to authenticate to manipulate Workflow Hooks via API in ScriptRunner
Asked by Sean Lim:

I've got over 500x projects and trying to enforce enablement of hooks across all of them.

Have found the APIs required to retrieve, and make the necessary manipulation.  
<https://docs.atlassian.com/bitbucket-server/rest/6.10.0/bitbucket-rest.html#idp374>

However, I am facing 401 error when running within ScriptRunner. I know my user has the permission as I am able to reach the *https://\*\*\*\*\*\*\*\*/rest/api/1.0/projects/TEST/settings/hooks* endpoint directly through my browser.

I read into Application Links and understood it to be a means to authenticate into other atlassian suite of projects (i.e. Bitbucket -\> Jira/Confluence/Etc). In my particular case, am intending to execute the ScriptRunner scripts within Bitbucket to manipulate bitbucket settings.

Any help would be appreciated! Thanks.


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

Thank you for your post.

As you are trying to access details about the native Bitbucket Hooks from within a ScriptRunner for Bitbucket script, you can bypass the REST API altogether and access the Bitbucket Java API directly.

For example, here is the documentation for the RepositoryHookService: <https://docs.atlassian.com/bitbucket-server/javadoc/7.19.1/api/com/atlassian/bitbucket/hook/repository/RepositoryHookService.html>

If you also provide an example of your script, I might be able to help further?

Kind regards,

Robert Giddings,

Product Manager, ScriptRunner for Bitbucket


Tags: bitbucket-server

server
Is there Gitlab like Deploy control for Pipelines
Asked by Joseph Blasi:

Where it's easy to say set an host to run the pipeline on.

Let's say I have 4-6+ labs for testing and each dev has there own.

Really don't want to need to clone repos or branch just to change target host

also don't want an host to be auto run on each commit.

Using local runner with local ssh access.


Answers:
author: Mark C
body: Hi [@Joseph Blasi](/t5/user/viewprofilepage/user-id/4339603),  

Welcome to the community.

I'm afraid we do not have a GitLab like Deploy control on Pipelines.  
However, you can try and use [Pipelines Deployments](https://support.atlassian.com/bitbucket-cloud/docs/set-up-and-monitor-bitbucket-deployments/) feature to configure your deployment environments.

Apart from that, you can also use manual steps or custom steps to only run your Pipelines runners manually, not for every commit.

* [Manual Steps](https://bitbucket.org/blog/pipelines-manual-steps-confidence-deployment-pipeline) - This allows you to manually run your step in a multi-steps using the "Run" button
* [Custom Steps](https://support.atlassian.com/bitbucket-cloud/docs/pipeline-triggers/#Set-a-manual-pipelines) - This allows you to trigger Pipelines builds manually against a specific commit or a [scheduled build](https://confluence.atlassian.com/bitbucket/scheduled-pipelines-933078702.html)

Hope it helps and let me know you have further questions

Regards,  
Mark C


Tags: bitbucket-cloud

cloud
How can a user force a gargabe collection in bitbucket git?
Asked by knowledgesource:

In order to reduce the size of repository git@bitbucket.org:gnoetics/cg-nlp-engines.git I did the following:

1. Created a Git LFS repository and moved all my jar files from cg-nlp-engines to the LFS repo (No problems)

2. git deleted all the jar files in the original repo and pushed it... but the bitbucket repo got bigger, so I read the how to for reducing repo size, and...

3. I cloned the original repo and used BFG to remove all the \*.jar files from the history \&\& git reflog expire --expire=now --all \&\& git gc --prune=now --aggressive \&\& git count-objects -vH (which showed local repo down to 611.35 Mb) \&\& git push --all --force \&\& git push --tags --force (No warnings or errors)

4. BUT... now my bitbucket repo says it is 4.1 GB in size and is locked.

5. Is there any way I can force a garbage collection in bitbucket?


Answers:
author: knowledgesource
body: Repository was still not garbage collected so I

\* created a new empty repo on bitbucket,

\*imported my local repo into the new empty repo per instructions on <https://confluence.atlassian.com/bitbucketserver/importing-code-from-an-existing-project-776640909.html>

\*gave the remote repo that needs gc a new name (just rename the repo on "Repository settings" page at bitbucket online)

\*changed the new remote repo name to the original name of the one that needs gc

\*now able to use the new properly sized repo

Will leave the old renamed remote repo that needs gc up for a while before deleting just to see how long before it gets a gc. Will leave another message about that.

comments: author: knowledgesource
body: Now 4 weeks later and the oversize repository has not been garbage collected. Will have to delete it.


author: knowledgesource
body: Problem returned. One developer pushed from their local repo before doing all the steps listed above and blew the repo back to even larger than it was before. We did the steps to reduce ALL local repos to \~620MB, but the bitbucket git repo keeps growing. It has been several days and no evidence of GC running on the bitbucket repo which is now above the 4GB limit and blocking all pushes, but a clone of the repo comes in at only 624 MB. How often does GC run on bitbucket??? Is there any way to initiate or request a bitbucket GC????


author: knowledgesource
body: Garbage collection ran (or was run). All is well.


Tags: bitbucket-cloud

cloud
I'm unable to find out this error
Asked by Gnana Prakash Marothu:

![Screenshot 2021-08-11 213531.jpg](/t5/image/serverpage/image-id/155604i1BE802D0D6667909/image-size/large?v=v2&px=999 "Screenshot 2021-08-11 213531.jpg")


Answers:
author: Nic Brough -Adaptavist-
body: It means what it says - you've given a git executable a path to a repository that is not responding.

What error do you get if you run the command it says is erroring on the command line?


Tags: git
User vs Group permission precedence. Group read-write and user read-only?
Asked by Werner:

Hi,

I've searched the docs, but probably with the wrong words as i could not find a clear answer. The closest i found was <https://support.atlassian.com/bitbucket-cloud/docs/grant-repository-access-to-users-and-groups/>, but no clear answer.

What is the precedence of user versus group permission on private repository access?

I've a dev group, that per has write access to dev repos. But for one specific repo, i would like to set a specific user, who's part of the "dev" group, to have only Read access only.

by adding that user specifically to the repo and assigning him 'read only' permission, will that overwrite (have precedence) over the group 'dev' that has write permission?

Thanks.

-wm


Answers:
author: Caroline R
body: Hi, [@Werner](/t5/user/viewprofilepage/user-id/3132941)!

Thank you for reaching out to Atlassian Community!

Adding a user specifically to the repo and assigning him 'read only' permission will not overwrite the group 'dev' write permission, the user will still be able to write there.

In this case, I would recommend you to create a new group without this user and remove the "dev" group from this repository, this way the user would just have the read-only permission.

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

Kind regards,  
Caroline

comments: author: Werner
body: Hi [@Caroline R](/t5/user/viewprofilepage/user-id/3934006) ,

Thanks for clarifying, even not being as i expected. I would've liked that the usual 'more specific takes precedence' rule, would apply. But at least it's clear the way we'll have to solve it.

Thanks

Have a nice weekend.


Tags: bitbucket-cloud

cloud

permission

user-management