youngmon/atlassian-qna huggingface dataset:
Error when creating first plan on bamboo
Asked by Taner Mutlu:

* New access key is required but could not be added to Bitbucket Server.
* Warning: Permanently added '\[127.0.0.1\]:38914' (RSA) to the list of known hosts. BAMBOO-SSH-PROXY: \[SSH proxy tried to connect to \[git@bitbucket.\*\*\*.\*\*.tr/172.19.9.135:7999\]: and failed due to the following error: \[Error while opening SSH session\]: org.apache.sshd.common.RuntimeSshException: Failed to get the session.\] fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.


Answers:
author: Daniel Santos
body: Hi [@Taner Mutlu](/t5/user/viewprofilepage/user-id/2408162),

You should be able to create your plan without a Bitbucket repository, at least until you can fix the issue with the Bitbucket\<-\>Bamboo communication.

There are two types of communication happening between Bitbucket server and Bamboo:

1. To exchange Bitbucket repository admin details and notifications, which uses the application link (involving HTTP/HTTPS)
2. To transfer repository data, which uses SSH.

Usually this error is related to some issue with the SSH communication. I suggest you checking this article where this problem is discussed in more detail: [New access key is required but could not be added to Bitbucket Server](https://confluence.atlassian.com/bamkb/new-access-key-is-required-but-could-not-be-added-to-bitbucket-server-808616180.html).
What modifies the "Build Link"?
Asked by James Dunlop:

When a build succeeds, on the right side of the build screen is a block:  

\[Project\] Details {#toc-hId-1849813274}
-----------------------------------------

Version: \[Version\]

*Build Link:* \[Purported link to build products\]

Plan Key: PROJ_MYCOOLPLAN

I want to know what goes into constructing the italicized item, the "Build Link". On several of my builds, it's pointing to a folder that doesn't actually exist, and I would like to know what I have to change to point it at my actual output directory.


Answers:
author: Rafael Pinto Sperafico
body: Hi [@James Dunlop](/t5/user/viewprofilepage/user-id/2405447),

Would you mind sharing a screenshot of such a view? If you have sensitive data, could you please create a dummy plan so you can take the screenshot and share on this thread? At the same time, what is the URL in which Bamboo displays the described view?

Kind regards,

Rafael
Referencing Bamboo variables
Asked by padi:

I am new to the Bamboo and I am trying to add a bamboo variable value to the email notification that Bamboo sends out when a build is successful or failed. I have a variable called "branch_name" that I can refer in the bamboo shell scripts as **${bamboo.branch_name}.**

But I don't understand how I can add this to the email notification ftl file "notificationCommonsHtml.ftl". Can any one please explain how to achieve this?

I read the following post: <https://community.atlassian.com/t5/Bamboo-questions/Customize-Bamboo-email-notification/qaq-p/252956>

But I don't get how to map the bamboo variables to the buildSummary or any other variables in the ftl file.

Thanks in advance.


Answers:
author: Steffen Opel _Utoolity_
body: I'm afraid Bamboo variables are not (officially) exposed to the Freemarker notification templates - please watch and vote for the following issue to raise Atlassian's awareness of this obvious feature gap:

* [Expose build environment variables to notification templates (BAM-15901)](https://jira.atlassian.com/browse/BAM-15901)

That being said, please note that the last commenter asks for "a list of variables that are available to the notification templates" because his experiences seems to be that "Some work, some don't. And it merely seems the ones that work are accidental." - I'm not aware of any myself though, maybe you can ask him for clarification and are lucky that the ones you need are available (I wouldn't put my hopes too high here, though, it's pretty unlikely given the lack of official support).
Reports module in Bamboo
Asked by Janakiraman S:

Hi,

I have a request to disable the Reports module on Bamboo. Since am relatively new with the tool, is there an out of the box way to achieve this? Is this possible only via custom plugin?

Thanks for the ideas,

Janaki.


Answers:
author: Daniel Santos
body: Hi [@Janakiraman S](/t5/user/viewprofilepage/user-id/1147758),  

You cannot easily disable the entire feature. That would require a customisation.  
But you can disable most of the specific report options disabling the **Bamboo Reports** system plugin ( through **Cog icon \>\> Overview \>\> Manage add-ons** ).  

We have a feature request to cover this need at: [\[BAM-18766\] - Ability to hide the reports feature](https://jira.atlassian.com/browse/BAM-18766).  

I hope that helps.  

comments: author: Janakiraman S
body: [@Daniel Santos](/t5/user/viewprofilepage/user-id/502125) apologise the miscommunication, basically I would like to hide/disable the possibility of extracting Author reports. Could I achieve this business case by disabling the Bamboo Reports module?


author: Daniel Santos
body: Hi [@Janakiraman S](/t5/user/viewprofilepage/user-id/1147758),  

I've contacted one of our developers and according to him, there is not easy way to disable it. It would require a product customisation.  
I recommend you to take some minutes of your time and share why this is important for you in that feature request, please also vote on it. This will help our developers to correctly prioritise this request so it is more likely that this feature is implemented.
Pass build script variable to deployment when using powershell
Asked by ckurmann:

Hi All,

As part of my build I have a powershell script that creates a zip file with a unique name.

I would like to make this name available to deployment task powershell script that is automatically triggered after the build.

All help welcome.


Answers:
author: Steffen Opel _Utoolity_
body: You could propagate the name by means of an artifact and the [Bamboo Variables task](https://confluence.atlassian.com/bamboo/configuring-a-variables-task-687213475.html), roughly:

1. Dump the name to a properties file via the [Bamboo Script task](https://confluence.atlassian.com/bamboo/script-289277046.html) in your build plan, i.e. (from the top of my head) something like:
   * 'echo "zipname = ..." \>zip.properties' for PowerShell
2. [Configure an artifact](https://confluence.atlassian.com/bamboo/configuring-a-job-s-build-artifacts-289277071.html) for the zip.properties file
3. [Share this artifact from your build plan to your deployment project](https://confluence.atlassian.com/bamboo/sharing-artifacts-359400060.html#Sharingartifacts-deploys)
4. Inject a new variable from the zip.properties file in your deployment project with the [Bamboo Variables task](https://confluence.atlassian.com/bamboo/configuring-a-variables-task-687213475.html)
5. Use the injected variable with the unique zip file name in your deployment task PowerShell script, e.g. $Env:bamboo_your_variable_name
   * the shell specific variable syntax is not well documented - we provide a few examples within the *Environment variables* section of [Using the AWS Credentials Variables task in Bamboo](https://utoolity.atlassian.net/wiki/spaces/IFAWS/pages/42434587/Using+the+AWS+Credentials+Variables+task+in+Bamboo#UsingtheAWSCredentialsVariablestaskinBamboo-Environmentvariables)


Tags: powershell
Question about Upgrading Bamboo version 5.7.2 to version 6.6.2 on new hardway and OS version?
Asked by Sam Criswell:

We currently run Bamboo v5.7.2 with postgres 9.3.5 DB on RHEL 6.9. We are building new servers with RHEL 7.5 postgres 10.x and Bamboo v6.6.2.

MY question: Is there a way to migrate the data from the old server without doing a stepped upgrade sense we are doing it on new servers, OS version and postgres DB?

Thank you for any help.


Answers:
author: Daniel Santos
body: Hi [@Sam Criswell](/t5/user/viewprofilepage/user-id/713607),  

I'm not sure if I understood you correctly but I'll try to share some information about the upgrade:

* An upgrade from 5.7.2 to 6.6.2 will require an intermediate step to 5.14.x ([Bamboo Upgrade Guide](https://confluence.atlassian.com/bamboo/bamboo-upgrade-guide-720411366.html))
* Considering the scenario you have (assuming you don't want to play with Postgres installations) I suggest this:
  1. Upgrade Bamboo to 5.14 in the same server. The only adjust you will need is setting JDK 1.8. Postgres can still be 9.3.x.- [Supported platforms (5.14.x)](https://confluence.atlassian.com/bamboo0514/supported-platforms-868986203.html).
  2. Upgrade Bamboo to 6.6.2, also in the same server. It can be done with JDK 1.8 and Postgres 9.3.x - [Supported platforms](https://confluence.atlassian.com/bamboo/supported-platforms-289276764.html).  
  3. Clone the instance to the new server using the **Alternative cloning scenario** approach from [Cloning a Bamboo instance](https://confluence.atlassian.com/bamboo/cloning-a-bamboo-instance-289277407.html).


Tags: migration

postgres
Continuous build migration from IBM RTC to Bamboo
Asked by tomrode:

Hello, My project team is in the process of porting over Task management, our VCS, and continuous integration build over to the Atlassian products. In this case Bamboo. In our situation we are doing regression and unit testing on this projects C-source code using a tool called VectorCast. We will have our project source sent to Bit-Bucket(Git) soon. I need Bamboo to take this source code in a defined periodic fashion and update a remote server computers project repository folder (in this case this computer runs VectorCast on the code). With in the IBM RTC (Rational Team Concert) frame work a build engine feature performs this. The Build definition has options for command line builds (i.e. cmd /c "TmlVcmMasterBuildScript003") which the remote computer has a build engine script always running in the background looking to see if it should run in this case TmlVcmMasterBuildScript003.bat. Does Bamboo operate in a similar way? To sum up, I need Bamboo to check Bit-Bucket for changes to a project repository then send the code to our server computer and kick off a script which in turn kicks off a VectorCast regression. Thanks...


Answers:
author: Gonchik Tsymzhitov
body: Hi!

Hope this functionality your request

<https://confluence.atlassian.com/bamboo/linking-to-source-code-repositories-671089223.html>

Also, I suggest update to latest one

<https://confluence.atlassian.com/bamboo/bamboo-releases-671089224.html>

Cheers,

Gonchik Tsymzhitov
I can't register Bamboo remote agent
Asked by ?????? ??????????:

As I understand it, Bamboo requires access to 8085 and 54663 ports.

From my virtual server, where I want to create my remote agent and try to install a remote agent using the official instructions, I cannot access my server where Bambo is installed.

Checking the Bamboo server, I realized that he was not listening to port 54663 and I cannot understand why. What could be the reason if the Bamboo server does not handle incoming connections on this port?

My error is:

*Broker URI: tcp://my_host_name:54663?wireFormat.maxInactivityDuration=300000 is invalid: java.net.UnknownHostException: my_host_name*

In addition, based on this article:

*<https://confluence.atlassian.com/bamkb/troubleshooting-remote-agents-216957427.html>*

When performing telnet commands to my server on ports 8085 and 54663 of Bambo, I also could not get access already from a remote virtual machine with the error "**Could not open connection to this host on port 8085: Connection failed"**.

When launching remote agents in the Bamboo log, there is a mention that the deployment of the agent has started on my server, but the registration does not end successfully.


Answers:
author: ?????? ??????????
body: I solved this problem. The problem was network access and availability of DNS


author: Edwin Kyalangalilwa
body: Hi [@?????? ??????????](/t5/user/viewprofilepage/user-id/2223626),

The issue is my_host_name

```
java.net.UnknownHostException: my_host_name
```

comments: author: ?????? ??????????
body: I replaced the real name with my_host_name
Why SCP task and SSH task don't allow to use variable on port number?
Asked by tuanhiep1232:

I want to use variable to save the the port for ssh task and scp task, and use that accross multiple deployment. But it says: \`Port number must be a positive number\`. I guess this is very basic param.


Answers:
author: Daniel Santos
body: Hi [@tuanhiep1232](/t5/user/viewprofilepage/user-id/2346359),  

I found a feature request for this already in ou system: [\[BAM-15184\] SSH and SCP task port number should accept variable](https://jira.atlassian.com/browse/BAM-15184). I suggest you to vote on this feature request and share the reasons this is important for your. It will help us to prioritise what should be in the roadmap.  

As a workaround I recommend you using a script task to run the SSH or SCP command with the needed variables.
How can I publish/upload changed bamboo specs to bamboo server via maven command line
Asked by Ranjana Pokharana:

I have created shell script to change the bamboo specs. It will change the specs but I am not able to publish the changed bamboo specs through maven. Can anyone help me how to do that ?

Do I need to create the maven project for that specs first ? As it is asking for pom.xml


Answers:
author: Rafael Pinto Sperafico
body: Hi [@Ranjana Pokharana](/t5/user/viewprofilepage/user-id/2225604),

Please, have a look at [Tutorial: Create a simple plan with Bamboo Java Specs](https://confluence.atlassian.com/bamboo/tutorial-create-a-simple-plan-with-bamboo-java-specs-894743911.html "Tutorial: Create a simple plan with Bamboo Java Specs") for further information.


Tags: maven

publish

spec
Automatic Dependency Plugin triggers builds for all branches
Asked by Maciej Miklas:

We have 270 project, so managing manual dependencies is problematic. For this reason we have configured for each project **Maven Dependency Processor** and checked **Automatic Dependency Management.**Bamboo version: 6.2.9

Our projects in trunk have always x-SNAPSNOT version and project in branch never reference those snapshots, only some other versions. From maven perspective there is no connection between branch and trunk.

After enabling auto dependencies everything was working fine for some days, but today for no obvious reason auto generated dependencies are containing all branches. Now if we build trunk it triggers all branches, so basically nothing is working anymore, because all agents are working on every possible branch....

In build results in branch I can click on parent plan (child of) that has triggered this build, and after some time going up the parent tree i end up on project in trunk, and I can see in automatically generated dependencies on this project, that it really is referencing this particular lib in branch. So definitely builds from trunk are triggering branches.

Before enabling automatic dependencies we've been managing them manually and this has been working fine for few years, and we never had such problem, that build in trunk would trigger one in branch.

I have some questions:

1) Should I see in Plan Configuration in Dependencies section also branches?

2) Is Maven Dependency Processor reliable, or maybe we should go back to manual dependencies management?

3) Can we fix it somehow? I mean, that trunk builds does not trigger branches.

4) How can this happen, that such auto dependencies to branches can be generated at all?


Answers:
author: Gonchik Tsymzhitov
body: Hi!

We are on 6.8.0 and Bamboo specs helps and cover and minimise the manual work

<https://confluence.atlassian.com/bamboo/bamboo-releases-671089224.html>

Cheers,

Gonchik Tsymzhitov
Invalid string literal running Webhooks from Bitbucket
Asked by Nadine Bachert:

Hi there!  

In Bamboo we are getting the following exception. Its always occuring, when a Webhook from Bitbucket is calling the deployment Plan.

```
2018-12-04 16:36:54,470 INFO [http-nio-8085-exec-7] [AccessLogFilter] 127.0.0.1 POST http://domain.tld/rest/triggers/1.0/remote/changeDetection?skipBranches=false&planKey=LAC-PIMC 359405kb
2018-12-04 16:36:54,472 ERROR [http-nio-8085-exec-7] [ThrowableExceptionMapper] Uncaught exception thrown by REST service: 'unknown' is not an IP string literal.
java.lang.IllegalArgumentException: 'unknown' is not an IP string literal.
??????? at com.google.common.net.InetAddresses.forString(InetAddresses.java:153)
??????? at com.atlassian.bamboo.trigger.remote.RemoteTriggerIpHandling.isCidrMatching(RemoteTriggerIpHandling.java:114)
```

Can you give us a hint, where the IP is missing, or wrong? The Deployments worked last week but suddenly they stopped.  

The Webhooks' URL is set up like this:

http://\<bamboohost\>/rest/triggers/1.0/remote/changeDetection?skipBranches=false\&planKey=PLANKEYXY  

There should be nothing wrong with. An upgrade to Bamboo 6.7.1 build 60705 did not solve the problem. Firewalls and Privileges are checked twice. So any help would be appreciated.  

Regards,  
Dave


Answers:
author: Nadine Bachert
body: This problem has been solved unexpectedly.

comments: author: ianhoughton
body: How was this solved, we're seeing the same issue??


Tags: bitbucket

webhook
SEN-12952110 - please cancel Bamboo ubscription
Asked by Kristjan Sepp:

Hi,

Wo found out, that this Bamboo plan is not good for us and next level - we cannot afford, to expensive. Please cancel SEN-12952110.


Answers:
author: Nic Brough -Adaptavist-
body: We're not Atlassian support, we're end-users like yourself. However, you may have landed here when asking for support because the $10 licences are not directly supported by Atlassian - they ask you to ask the community first.

We can't "cancel" your licence. Also, there is no "cancel" for Server licences - you usually just let them lapse after the first year. (If you bought within a month though, you can request a refund for anything above the $10 licence)
Bamboo Build failed
Asked by Yogesh Mude:

Hi,

I teried to build java project using maven build tool and while building the job fails with below error..

Any help will be appriciated..

```
[ERROR] Plugin org.apache.maven.plugins:maven-clean-plugin:2.5 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-clean-plugin:jar:2.5: Could not transfer artifact org.apache.maven.plugins:maven-clean-plugin:pom:2.5 from/to central (https://repo.maven.apache.org/maven2): Connect to repo.maven.apache.org:443 [repo.maven.apache.org/151.101.52.215] failed: Connection timed out: connect -> [Help 1]build	28-Nov-2018 17:42:09	org.apache.maven.plugin.PluginResolutionException: Plugin org.apache.maven.plugins:maven-clean-plugin:2.5 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-clean-plugin:jar:2.5
```


Answers:
author: Rafael Pinto Sperafico
body: Hi [@Yogesh Mude](/t5/user/viewprofilepage/user-id/1169678),

It seems you were unable to connect to <https://repo.maven.apache.org/maven2>, therefore the dependency could not be resolved. Perhaps, you could try once more building it and/or download the dependency from a Maven repository and place it into your local Maven repository, so it can be referenced during build execution.

Kind regards,

Rafael


Tags: bamboo-administration
Bamboo with NPM, Webpack, ESlint and Babel
Asked by Rahul Khandelwal:

Hi Guys,

We are trying to create a react POC with NPM, Webpack, ESLint, Bamboo \& Babel

Could you please let me know if there is any use case or blog to achieve this objective. What should be the permissions granted for the bamboo user


Answers:
author: Gonchik Tsymzhitov
body: Hi!

I hope this one will be interesting for you

<https://confluence.atlassian.com/bamboo/getting-started-with-node-js-and-bamboo-687213472.html>

We are using as dedicated the bamboo user

Cheers,

Gonchik Tsymzhitov


Tags: network
Can i install bamboo under Linux to build .NET projects?
Asked by Ramya Tatikonda:

We have Bamboo installed on Linux machine and want to use Bamboo for building .Net code. I have already found 2 answers for the same questions but were answered 4-5 yrs ago and want to check if it's still the same solution to follow?

Here are the solutions I found. [Can-i-install-bamboo-under-Linux-to-build-NET-projects](https://community.atlassian.com/t5/Bamboo-questions/Can-i-install-bamboo-under-Linux-to-build-NET-projects/qaq-p/162851) and [Bamboo-on-linux-building-and-deploying-net-solution](https://community.atlassian.com/t5/Answers-Developer-Questions/Bamboo-on-linux-building-and-deploying-net-solution/qaq-p/535215)

Thanks.


Answers:
author: Shankar Asam {Appfire}
body: Ramya,

Yes, the solution is relevant and works in your case. You need to configure the Bamboo Jobs, Tasks and Agents appropriately so that they build as expected.

--Shankar

comments: author: Ramya Tatikonda
body: Got it! Thank you :)


Tags: .net
Is there an exhaustive list of verbs for YAML files?
Asked by Matthew Parmeter:

I understand that yaml use is limited to simple solutions in Bamboo. However, I find the examples used on the spec reference page to be more confusing than useful. Is there an exhaustive list of verbs and/or a language spec with the structure defined?


Answers:
author: Rafael Pinto Sperafico
body: Hi [@Matthew Parmeter](/t5/user/viewprofilepage/user-id/2382633),

Please, have a look at:

* Bamboo [YAML Specs](https://docs.atlassian.com/bamboo-specs-docs/6.7.2/specs-yaml.html#introduction "YAML Specs") reference
* [Bamboo Specs YAML format](https://confluence.atlassian.com/bamboo/bamboo-specs-yaml-format-941616818.html "Bamboo Specs YAML format")
* [Tutorial: Bamboo Specs YAML stored in Bitbucket Server](https://confluence.atlassian.com/bamboo/tutorial-bamboo-specs-yaml-stored-in-bitbucket-server-941616819.html "Tutorial: Bamboo Specs YAML stored in Bitbucket Server")


Tags: spec

yaml
Deployment task in Bamboo that hits the health check endpoint and return success if active?
Asked by Ravi:

I am trying to cr  


Answers:
author: Gonchik Tsymzhitov
body: I hope these command will help

<https://github.com/atlassian-api/atlassian-python-api/blob/master/atlassian/bamboo.py#L273>

<https://github.com/atlassian-api/atlassian-python-api/blob/master/atlassian/bamboo.py#L302>

Cheers,

Gonchik Tsymzhitov