youngmon/atlassian-qna huggingface dataset:
Adding new executable
Asked by Andy Carlson:

I am trying to add an executable for a new version of Ruby, but when I add it, it doesn't show up as a Ruby Executable but only as a command (see screenshot) and as such is not showing up in the Ruby Environment drop-down when configuring a Bundler Install or Rake task.

![](../../upfiles/bamboo-screenshot.PNG)

How might I fix this? Thanks!!!


Answers:
author: Gretchen
body: Andy also look at this: [](/questions/318349/bamboo-ruby-plugin-not-loading-capabilities-to-agent)<https://answers.atlassian.com/questions/318349/bamboo-ruby-plugin-not-loading-capabilities-to-agent> It mentions some requirements for the plugin that I was not aware of.


author: Gretchen
body: You may also have to add it to the capabilities tab on the agent where you want to run it. (remote agents specifically). Also look at the plugin documentation for the task type and see what it expects ruby to be configured as. (for example, you have to add a JDK as a JDK not as a command in order for it to be recognized as a JDK if that makes sense). I don't do any ruby builds here so not sure exactly what the requirements are for building with ruby.

The documentation for the ruby plugins should describe how to define the ruby executable so that it works with it.


Tags: bamboo-administration
A system administrator has disabled your connection to the Atlassian Marketplace server. In the meantime you can search for new add-ons and updates on the Atlassian Marketplace website.
Asked by Mehdi Nayebi:

in jira cloud using bamboo i am trying to install an addon for bamboo but i get this errror

A system administrator has disabled your connection to the Atlassian Marketplace server. In the meantime you can search for new add-ons and updates on the [Atlassian Marketplace](https://marketplace.atlassian.com/plugins/app/bamboo/featured) website.

Anthony


Answers:
author: Nic Brough -Adaptavist-
body: Are you using Cloud/OnDemand?

If so, then OnDemand has a limited set of addons you can enable and you do that via your OnDemand account, not via the plugin manager. You can still use the marketplace to identify addons you can use.  
If you're using Server version, then you need to talk to your admin
A system administrator has disabled your connection to the Atlassian Marketplace server.
Asked by Jeong Kim:

I am using Bamboo OnDemand.

When I go to 'Manage add-ons" page, it says 'A system administrator has disabled your connection to the Atlassian Marketplace server.' and I cannot access to the Marketplace.

How can I find and install new add-ons from the Marketplace?

Thanks,

Jeong


Answers:
author: Nic Brough -Adaptavist-
body: You can't.

OnDemand has a limited set of addons you can enable and you do that via your OnDemand account, not via the plugin manager. You can still use the marketplace to identify addons you can use.


Tags: cloud
How can i deploy to multiple servers?
Asked by Shai:

Hi

I have few servers (e.g sandbox1, sandbox2... dev1,dev2.....).  
Using deploy release, i want to deploy to each server by itself.

I must create an enviroment per server? is there a way to close enviroment?

Does Bamboo lets you create an enviroment "type" ? e.g. type 'sandbox' and during deploy just set the specific server to deploy on?

Thanks


Answers:
author: Shai
body: Now that the "clone enviroment" feature added, it makes it more easier to add enviroments in a specific deploy plan.

Thanks


author: Gretchen
body: You can define your environment and then script as many servers to deploy to as you like. These are the actual scripts you use to scp or robocopy the artifacts to the environments.

You can define dev for example and then define a separate scp task for each server, changing the server name / paths etc. as necessary for each subsequent box.


Tags: cloud
How can I display count of warnings on Bamboo
Asked by Jeong Kim:

Hi I want to display the count of compiler warnings on Bamboo.

Our project is based on C++/Makefile and launched by 'make' command.


Answers:
author: Jinbok Myung
body: Did you already check this?

Is it the solution?

<https://confluence.atlassian.com/bamboo/configuring-build-warnings-parser-task-957148051.html>


author: Gonchik Tsymzhitov
body: Hello [@Jeong Kim](/t5/user/viewprofilepage/user-id/744249),

Have you tried to solve? Just interesting use case.

Cheers,

Gonchik Tsymzhitov


author: Gretchen
body: I suppose you could parse your logfile as the last step and count the 'warning' lines then echo them out to the logs, but I don't know of anyway to just add them to the build summary page.


Tags: cloud
List changes of parent projet
Asked by Sascha Schwartz:

Hello,

we currently have this setup:

* Project A, parent project of B. An application module.
* Project B, child of A, rebuilding itself when Project A has finished. The overall application.
* One task of Project B is to download the latest artifact produced by Project A
* Project B has several parent project, each being a module for project B.
* Project A has several deployment projects

Project A is a module for Project B. Project B is the complete application bundled with all relevant modules. We build various versions of the application project B with different modules (parents). Each version of the application is its own build. Language/Environment is PHP/JavaScript.

What we'd like to achieve:

* Changes of Project A (Issues or commits) and other parent projects listed for builds of Project B.
* List of issues/commits for Project B and all parent projects of it (i.e. Project A) for a new deployment of Project B (changeset, release notes).
* Deployment targets are different stages and live-systems. Ideally we could get a changeset individually for each target. Stage gets deployed more frequently with smaller changesets, while we'd like to have an aggregated list for a deployment of the live-server as well.

Happy for any input on how to solve this. Alternative approaches to organize the build process are welcome too.

Thanks in advance :)


Answers:
author: Gretchen
body: You could try working with the bamboo.dependency.parent.# variables to extract the information. See [](https://confluence.atlassian.com/display/BAMBOO/Bamboo+variables)<https://confluence.atlassian.com/display/BAMBOO/Bamboo+variables>for documentation on that.

You would likely have to script something with rest from the child to get that.

For example this:  

.../rest/api/latest/result/PRJ-PLAN-BLD.json?expand=jiraIssues or

../rest/api/latest/result/${bamboo.buildResultKey}.json?expand=jiraIssues maybe?

to get the individual issues for each build. Again extracting them from all the other stuff that is delivered in that result.

plus adding the .../rest/api/latest/result/${bamboo.dependency.parent.0}.json?expand=jiraIssues should get you what you're looking for. Play with it. See if you can get that to work.


Tags: bamboo-administration
Including Commit history and JIRA tickets in Bamboo built deployments.
Asked by Mark Gillespie:

For our CI builds, we are trying to include an automatically generated commits since last deployment and associated JIRA tickets.

<br />

This information we want to include in out setup package is available in Bamboo at the following pages:

[](http://uk-bamboo:8085/deploy/viewDeploymentVersionCommits.action?versionId=18546718&deploymentProjectId=19267585)[http://our-bamboo:8085/deploy/viewDeploymentVersionCommits.action?versionId=18546718\&deploymentProjectId=19267585](http://our-bamboo:8085/deploy/viewDeploymentVersionCommits.action?versionId=18546718&deploymentProjectId=19267585)

[](http://our-bamboo:8085/deploy/viewDeploymentVersionJiraIssues.action?versionId=18546718&deploymentProjectId=19267585)[http://our-bamboo:8085/deploy/viewDeploymentVersionJiraIssues.action?versionId=18546718\&deploymentProjectId=19267585](http://our-bamboo:8085/deploy/viewDeploymentVersionJiraIssues.action?versionId=18546718&deploymentProjectId=19267585)

What I am trying to do is automate a download of these reports to include as offline HTML files in our build package for our integration testers to see what's changed. I can't seem to work out how to get the versionID and deploymentProjectID using Bamboo's variables.

Anyone achieved this? Is there an easier way to do this?

<br />

Many thanks.


Answers:
author: Gretchen
body: You can certainly use those actions via rest and redirect to a file on disk that is included as a shared artifact. You'd have to script it and unless you really like scripting it wouldn't be much fun.

I don't know of any easier way to do this.

We have a plugin (internally written) that does a svn diff and echoes the output to the log files to list the specific files included in the deployment. See this list: [](https://confluence.atlassian.com/display/BAMBOO/Bamboo+variables)<https://confluence.atlassian.com/display/BAMBOO/Bamboo+variables>

and [](https://confluence.atlassian.com/display/BAMBOO/Variables+for+deployment+environments)<https://confluence.atlassian.com/display/BAMBOO/Variables+for+deployment+environments>

for lists of variables available to you.

I have a list of rest notes that includes this:

For example this:  
.../rest/api/latest/result/PRJ-PLAN.json   
will get you a list of builds which (if you were really clever with scripting and regex) could be used with this:   
.../rest/api/latest/result/PRJ-PLAN-BLD.json?expand=jiraIssues   
to get the individual issues for each build. Again extracting them from all the other stuff that is delivered in that result.

that may help you get started with rest.


Tags: bamboo-administration
Atlassian Stash v2.12.3
Asked by Susant Prusty:

We want to notify stash from Bamboo and jenkins on every commit , now I have all the plugins in placed

In bamboo I have selected the web repository and slected stash and gave the required details but it doesn't notify stash.

Inside my stash I don't see something as build in commit tab, can any one help me on this?

Thank you

Regards,  
Susant


Answers:
author: TimP
body: Hi Susant,

Can you make sure that you've followed the instructions here: [](https://confluence.atlassian.com/display/BAMBOO/Integrating+Bamboo+with+Stash#IntegratingBamboowithStash-buildresultToseeBamboobuildresultsinStash)<https://confluence.atlassian.com/display/BAMBOO/Integrating+Bamboo+with+Stash#IntegratingBamboowithStash-buildresultToseeBamboobuildresultsinStash>?

In particular, make sure that you've set up [Basic authentication for the application link](https://confluence.atlassian.com/display/APPLINKS/Configuring+Basic+HTTP+Authentication+for+an+Application+Link) you created from Bamboo to Stash, the notifications won't work without it.

cheers,

Tim


Tags: bitbucket-server

build
Set directory as build artifact
Asked by Mark Allen:

I want to set an entire directory created during a build plan as an artifact but I'm having some trouble understanding how to do that. I entered in the copy pattern the following:

\*\*/assets

the directory is created under the build plan's folder.


Answers:
author: Mark Allen
body: Welp, chalk up another one to me being ignorant. I changed the copy pattern to:

\*\*/assets/\*


Tags: bamboo-administration
Bamboo 5.5 Gatekeeper (Automatically manage branches)
Asked by ChristianS:

I installed Bamboo 5.5 and tried out Bamboo's Gatekeeper.

But currently it doesn't merge branches. Maybe I missed some settings somewhere.

I made a screenshot about the things I did.

Here are my settings: [](http://i.imgur.com/nyMR8NT.png)<http://i.imgur.com/nyMR8NT.png>

Currently my default Branch is develop, and we have some feature branches under feature/XXX

we using stash but our repository gets pulled with git from the operating system.

Edit:

I missed something, i wanted this option:

Bamboo will automatically create plan branches when it detects new branches in your version control system And automatically remove plan branches from Bamboo after a specified period of inactivity. Detection of new branches runs every 3 minutes.


Answers:
author: Ron Chan
body: Automatic plan branching and merging are entirely separate features.

Go to Plan Configuration -\> Branches, then check box "Automatically manage branches" for precisely what you need.


author: Przemek Bruski
body: What do you mean "doesn't merge branches'? I assume you want your branch merged to 'develop'? In that case, you need to tick the "Push on" checkbox.

comments: author: ChristianS
body: No, I wanted to have automatic plan branches, when I create a new feature branch, bamboo should automatically create a plan for that / but It won't do


Tags: bamboo-administration
Bamboo build time
Asked by techops:

Hey everybody, any hints on how we can reduce the build time? we are running a java application in bamboo and the build already takes \> 40minutes.. this is insane for testing.. any tips what we can look at?


Answers:
author: Wahid Atif
body: Are you using the same Maven version on both local machine and Bamboo?

1. Try to use MAVEN_OPTS to increase allocated memory for the maven jvm process.

Bamboo Maven task \> Envrionment Variables :  
Something like: **MAVEN_OPTS="-Xmx1024m -XX:MaxPermSize=256m"**

2. Maven 3.x has the capability to perform parallel builds:   
mvn -T 4 clean install #run your build with 4 threads  
mvn -T 2C clean install #build your project with 2 threads per core

Have a look at <https://cwiki.apache.org/confluence/display/MAVEN/Parallel+builds+in+Maven+3>


author: Wahid Atif
body: Hi,

what kind of java build tool are you using? Maven? Gradle? Are there any tests performed?

comments: author: techops
body: Hey yes we use MAVEN and we run tests. The whole build process on our local machines (which are not particualry strong) takes about 5-7 minutes. on bamboo it takes \> 30 minutes.


author: techops
body: its unit tests we run


Tags: bamboo-administration

cloud

confluence

confluence-cloud
Cleanup of build folders bamboo (branches)
Asked by JIRA Autobot:

Hi,

When we setup automatic branches management in Bamboo Bamboo automatically picks up the branches and build them and remove the branches where they are not used anymore but the working build dir keeps on beeing there after this. Is there a way to clean these ? With time it will take a lot of space.

donnib


Answers:
author: rsperafico
body: Hi Donnib

Thank you for your question.

I would suggest you on going to {{Bamboo Administration \>\> Plans \>\> Build expire}} and setting it up according to your necessities.

Alternatively, you could go to your {{Plan Configuration \>\> Miscellaneous}} tab, select the {{Override global build expiry configuration}} and filling it in according to your necessities.

Kind regards,  
Rafael
Run svn cleanup automatically after checkout
Asked by Sahil:

Hi,

I want to make sure that the svn clean-up is run after the check-out is performed in Bamboo.

Most often the Bamboo build fails and in the logs it shows **run 'svn cleanup' first** . So I need to go folder where it does check-out and remove the .svn and .project folders explicitly. After that if I run the build again it is successful.

So can any one help me configure this in such a way that the Bamboo runs the "svn cleanup" automatically after check-out.

Thanks and Regards,

Sahil Amar


Answers:
author: Gretchen
body: We have a svn cleanup step that we put first in the plan. Occasionally we need it when we have cancelled a build after starting it but before the checkout to the ${bamboo.build.working.directory} is complete. If the workspace has an issue it will fail on the checkout or update so the svn cleanup has to be done first. We keep this disabled most of the time because when a new branch is created, the workspace is not an "svn workspace" yet and the cleanup step will fail the build when the build is run on the brand new branch for the first time. When a build fails with "run cleanup first" we run the plan again after enabling the cleanup task. This covers most of the issues we have with workspaces. If the checkout is successful there should be no need for a cleanup, but I suppose you could put it in there anyway if that makes you happy.

We use a command task with the executable 'svn' defined and use the command line:

cleanup ${bamboo.build.working.directory}

That should take care of it. You could also use a script with

...\\path\\to\\your\\svn.exe cleanup ${bamboo.build.working.directory}


author: Sahil
body: Please help me with this issue.. :(
Can't push or pull anymore, not able to create App Password !!!
Asked by hausfux:

I tried to create a bug report but it sent me here.

We can't work anymore, since the major password change we can't push or pull anything !!!  

I even tried to create a App Password in my profile settings, but after saving nothing is getting stored!!! I am using Firefox  

![demo.gif](https://community.atlassian.com/t5/image/serverpage/image-id/189174iA516987A147CDB96/image-size/large?v=v2&px=999 "demo.gif")


Answers:
author: Syahrul
body: Hi [@hausfux](/t5/user/viewprofilepage/user-id/2640974)

G'Day!

Have you tried a different web browser than Firefox? I suspect it's a web browser issue that is preventing the App Password from generating correctly.

Additionally, if you have Firefox shield turn on I suggest turning that off temporarily and any add-on installed as it may cause some issue with Bitbucket web.

Let me know how it goes

Syahrul

comments: author: eduard_fekete
body: Yes, I installed chrome and it works there.  

Thx


Tags: bitbucket-cloud

bug

cloud
Bitbucket Cloud Webhooks Disappearing and Reappearing
Asked by Andrew Reed:

Currently evaluating migration from Server to Cloud and I have a strange issue with webhooks disappearing and reappearing. As a result some commits are not triggering builds.

Have I configured something wrong? I do note that when I create a webhook in one repository it appears in all repositories. In Server each repository has its own webhooks.

The screen shots below were taken in sequence with just browser refreshes between them.

1)![2022-03-21 14_40_58-Window.png](https://community.atlassian.com/t5/image/serverpage/image-id/189155iD6C5E015C6BF8075/image-size/large?v=v2&px=999 "2022-03-21 14_40_58-Window.png")

2) ![2022-03-21 14_44_57-Window.png](https://community.atlassian.com/t5/image/serverpage/image-id/189156i4EDA5C91BE87A3EE/image-size/large?v=v2&px=999 "2022-03-21 14_44_57-Window.png")

3)![2022-03-21 14_51_01-Window.png](https://community.atlassian.com/t5/image/serverpage/image-id/189157iE185644453F5713E/image-size/large?v=v2&px=999 "2022-03-21 14_51_01-Window.png")

4)

![2022-03-21 14_53_11-Window.png](https://community.atlassian.com/t5/image/serverpage/image-id/189159i813BBAD4F5535001/image-size/large?v=v2&px=999 "2022-03-21 14_53_11-Window.png")


Answers:
author: Syahrul
body: Hi Andrew,

G'Day!

Interesting issue. Before I proceed with ticket creation can you confirm with me if the disappearing issue is reproducible on a different web browser and is it also reproducible with different users?

I look forward to hearing from you.

Cheers,  
Syahrul

comments: author: Andrew Reed
body: Hi Syahrul,

Thank you for looking into this for me. Good question. I have just tested this again using both Chrome and Microsoft Edge and I get the same behaviour in both. I've also just registered a brand new user account using another email address. Using that new account I also see the same behaviour.

Many thanks,

Andy.


author: Andrew Reed
body: Possibly worth mentioning that I used the Server to Cloud migration tool to configure my Cloud workspace and projects.

Cheers,

Andy.


author: Syahrul
body: Hi Andy,

Thanks for the information. Since we need to access your Workspace to further investigate this issue I have proceeded to raise a ticket on behalf of you.

You should receive an email over the ticket creation to view the ticket. One of our support engineers should get back to you soon.

Cheers,  
Syahrul


Tags: bitbucket-cloud

cloud
How to run multiple runners on the same host
Asked by kalib:

Is it possible to run more than one runner in the same host? Is it just a matter of creating the runner on the bitbucket Settings / Runners page and copying the docker commands and running them on the same VM? I wonder if that would work without any problems since bb runners are mounting filesystem folders such as tmp, docker.sock, etc.. Wondering if there would be any conflicts when running more than one runner in the same VM.


Answers:
author: Syahrul
body: Hi [@kalib](/t5/user/viewprofilepage/user-id/3485966)

G'Day!

We support multiple runners on a single host as long as your host has enough disk and memory spaces.

To do this, basically create a new runner in the UI and copy then paste the commands in your host machine.

It's best to tag each runner accordingly so that you don't get confused since it's on the same host machine.

Hope this helps

Cheers,  
Syahrul


Tags: bitbucket-cloud

bitbucket-pipelines

cloud
Bitbucket sheduled pipeline
Asked by rabin:

I have a custom scheduler in bitbucket pipeline which runs every hour.  
But I want it to run every two hours.

<br />

Looks like there is no option in bitbucket pipeline to do that.  
Can anyone help?


Answers:
author: Caroline R
body: Hi, [@rabin](/t5/user/viewprofilepage/user-id/4828930), welcome to the community!

Currently, the options available to schedule Pipelines are hourly, daily, or weekly. However, we do understand that it would be useful to add other options, so we have the following feature requests to add this functionality as you can see here:

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

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

I would suggest that you add your vote there (by selecting the **Vote for this issue** link) as the number of votes helps the development team and product managers better understand the demand for new features.

You are more than welcome to leave any feedback, and you can also add yourself as a watcher (by selecting the **Start watching this issue** link) if you'd like to get notified via email on updates.

Implementation of new features is done as per our policy [here](https://confluence.atlassian.com/support/implementation-of-new-features-policy-201294576.html) and any updates will be posted in the feature request.

Kind regards,   
Caroline


Tags: bitbucket-cloud

cloud
How to configure office 356 SMTP in bibucket pipeline
Asked by sopan zende:

I am trying to configure email notification for the bitbucket pipeline after script and using office 365 SMTP settings. I am not able to send emails from the pipeline, getting a configuration issue. Could you please suggest the possible solution.


Answers:
author: Theodora Boudale
body: Hi [@sopan zende](/t5/user/viewprofilepage/user-id/4265988),

I see the question has the tag 'pipes', so I assume that you are using the following pipe, is that the case?

* <https://bitbucket.org/atlassian/email-notify/src/master/>

If so, you could please share  
- the definition of the pipe in your bitbucket-pipelines.yml file  
- and also the full output of the pipe command from the Pipelines log?

(Please replace any private/sensitive data with dummy values, prior to sharing)

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud

email

notification