youngmon/atlassian-qna huggingface dataset:
bamboo license second server
Asked by maarten breesnee:

Hi, we have a bamboo license for 100 remote agents. Can we split this up in to servers and have each server 50 remote agents. We want to migrate from version 5.14 in our datacenter to version 6.x in hosted in AWS. To have this migration more smoothly we want to use such construction. Because bamboo is licensed based on remote agents we couldn't see any points for setting up a second server. Is that correct? Also in the future we want to have a high availability/load balanced environment we want to turn on a second server. Can we still do that?

kind regards

maarten breesnee

AegonNL


Answers:
author: Gabriel Ribeiro
body: Hi Maarten,

As mentioned in the [Bamboo Licensing and Pricing](https://www.atlassian.com/licensing/bamboo) FAQ page, your license entitles you to deploy only one instance of Bamboo in a production environment:
> **5. How is Bamboo Server licensed?**
>
> A Bamboo commercial/academic/starter license entitles you to:
>
> * Deploy a single instance of Bamboo in a production environment on 1 server
> * Local agents and/or remote agents, as per edition
> * Unlimited projects and users
> * Perpetual Bamboo use
> * Software maintenance for 12 months - including all updates and online support
> * Application source code (under a developer source license which allows for broad customization)

If you want to deploy a QA instance to test the upgrade process, you can use a [developer license](https://confluence.atlassian.com/confeval/billing-and-licensing-evaluator-resources/licensing/how-to-use-developer-licenses-and-to-whom-are-they-available).

Regarding the high availability/load balanced environment, currently, we do not have any license model for Bamboo covering this kind of scenario.

thanks.


Tags: licence
Bamboo SCP task fails with "EOF while expecting response to protocol message"
Asked by Vlad Vasylevskyi:

Hi everyone,

I've configured an SCP deployment task in Bamboo but it fails to upload any of the files with error

```
Failed to upload C:\Metsystems\SCP test, EOF while expecting response to protocol message
```

Using scp through the command line works perfectly fine for copying files across to the target server. Did anyone encounter this issue? Some pointers would be greatly appreciated.

Thanks

![scp.jpg](/t5/image/serverpage/image-id/30716i0E3039166BF74EF6/image-dimensions/575x607?v=v2 "scp.jpg")Update:   
If I put something like **scp** in the **Remote Path** field, the task will create a folder called **'scp'** (with single quotes in the name) in the "user" folder of the user selected as authentication credential in the scp job and proceed with properly uploading the artifacts to the target server. Putting a complete path as per screenshot (i.e. C;\\something\\something) will lead back to the described issue.


Answers:
author: Gabriel Ribeiro
body: Hi Vlad,

What SSH Server are you using? I experienced a very similar behavior using OpenSSH on the server end.

There is an open suggestion ticket where we are discussing this subject:

* [Provide better support for SCP to Windows servers](https://jira.atlassian.com/browse/BAM-16279)

Could you please switch to Cygwin or MobaSSH and let us know if the behavior remains the same?

thanks.

comments: author: Vlad Vasylevskyi
body: Hi Gabriel, thank you for your reply.

Yes, I've set it up using OpenSSH. I'll try the alternatives and let you know how it goes.

Thank you


Tags: deployment

scp
Bamboo SCP Task got stuck in uploading
Asked by renatogbp:

I am trying to use SCP task in bamboo and it never finishes the upload. This is the log:

|----------------------|------------------------------------------------------------------------------------------------------------------|
| 28-Aug-2018 15:46:40 | Starting task 'Copy version file to the server' of type 'com.atlassian.bamboo.plugins.bamboo-scp-plugin:scptask' |
| 28-Aug-2018 15:46:40 | Connecting to cdx-devint-001 on port: 22                                                                         |
| 28-Aug-2018 15:46:41 | Uploading 'C:\\builds\\15597571-15761411\\pasvers.h' to '\\c\\WebHost\\deployments-devint\\client'...            |

I am using shared credentials, and uploading an artifact. I've tried the remote path as:

C:\\WebHost\\deployments-${bamboo.deploy.environment}\\client\\

/WebHost/deployments-${bamboo.deploy.environment}/client/

\\WebHost\\deployments-${bamboo.deploy.environment}\\client\\

/c/WebHost/deployments-devint/client

and got the same result. Any idea about what's happening here?

**Edit:**

I did a test, and tried to change the remote path to "pasvers.h", and realized that it created a file name as 'pasvers.h' with single quotes. Maybe that's why is never uploads? It's trying to find the path 'C:\\WebHost\\deployments-${bamboo.deploy.environment}\\client\\' with single quotes? How to avoid that?


Answers:
author: Gabriel Ribeiro
body: Hi Renato,

You might be experiencing something similar to the situation described at the below ticket:

* [Provide better support for SCP to Windows servers](https://jira.atlassian.com/browse/BAM-16279)

Could you please try using Cygwin or MobaSSH as suggested and let us know the results?

thanks.


Tags: scp
Bamboo and CVE-2018-11776 (Apache Struts) vulnerability
Asked by Prasenjeet Dutta:

Dear Atlassian Team

On [this page](https://community.atlassian.com/t5/Crowd-questions/Is-Crowd-vulnerable-to-CVE-2018-11776-Apache-Struts/qaq-p/874238#M3607) there's a brief message that no Atlassian product is impacted by CVE-2018-11776. However, to keep our Risk \& Governance stakeholders suitably informed, would it please be possible for Atlassian to release an advisory confirming there's no impact and positively confirming that this is true for Bamboo as well?

It would be very useful to have official comms on this (vs a comment on a forum).

Given this is an RCE (remote code exection) vuln organizations with automated scanners are flagging Bamboo as vulnerable. An advisory will help ensure that teams using Bamboo can continue to do so confidently.

Thank you!


Answers:
author: Adrian Ludwig
body: Hi Prasenjeet,

There are new security issues found every day, so we don't generally release advisories to say that an issue doesn't affect one of our products.

Our security team has investigated CVE-2018-11776 and we can confirm that no Atlassian products are affected by this vulnerability -- this includes Bamboo. While we do use Struts for some products, they are not configured in a way that would leave them open to this bug. But as an extra precaution, we are updating all of the products that use Struts to the latest version.

Which security scanner are you running that is incorrectly flagging Bamboo?

Adrian

Atlassian Security

comments: author: Jeyanthan I
body: Added to my colleague's inputs, I just wanted to update that as an extra precaution that is in-line with industry best practices, the next release - Bamboo 6.7 will contain the latest updated Struts jar in it (even though Bamboo is not affected by this vulnerability).

This is expected to be released in the coming weeks on September 2018. So I suggest you wait and upgrade your Bamboo if you want. This is tracked here - [Upgrade Struts to 2.5.17](https://jira.atlassian.com/browse/BAM-20051).

Hope that helps.

Cheers,  
Jey
Bamboo CLI: Providing Permission to a plan
Asked by Avik Sengupta:

Can I provide User Access and Group Access to a plan using Bamboo CLI ?


Answers:
author: Foong
body: According to Bamboo CLI [documentation](https://bobswift.atlassian.net/wiki/spaces/BCLI/pages/2392066/Reference), there isn't any command to add plan permission.

Try the following REST call:

```
curl -u username -X PUT -H "Content-Type: application/json" -d '["WRITE","READ","ADMINISTRATION","CLONE","BUILD"]' http://localhost:8085/rest/api/latest/permissions/plan/<projKey>-<planKey>/users/<username>
```


Tags: cli
how to run powershell commands in linux?
Asked by Raghavan:

need to run powershell command in linux. powershell core is installed but if i give pwsh as a command in the tasks, the process is not ending


Answers:
author: Edwin Kyalangalilwa
body: Hi [@Raghavan](/t5/user/viewprofilepage/user-id/1868499),

Please check if the folder housing pwsh is in your PATH.

Also, confirm the name - i'm seeing it installed in

```
/usr/bin/powershell
```

comments: author: Raghavan
body: yes, i have included the path as an executable in the tasks like /usr/bin/pwsh and try to using it in bamboo tasks.


author: Edwin Kyalangalilwa
body: [@Raghavan](/t5/user/viewprofilepage/user-id/1868499),

Try using a Bamboo script task instead

```
#!/usr/bin/env pwsh?

Write-Host "Using Powershell $($PSVersionTable.PSEdition) v$($PSVersionTable.PSVersion)"
```


author: Raghavan
body: Thanks for the prompt reply..

however we are trying to run few powershell scripts using powershell core installed in amazon linux... any help is appreciated.

Thank you.


Tags: powershell
Bamboo server bootstarp failing at tomcat certificate missing
Asked by Gobinath Sekar:

I had installed New CA certificate to my bamboo server after that it is failing to start the bamboo server with java.io.IOException: Alias name tomcat does not identify a key entry


Answers:
author: Edwin Kyalangalilwa
body: Hi [@Gobinath Sekar](/t5/user/viewprofilepage/user-id/1274393),

Run

    keytool -list -v -keystore <keystore-file> -alias tomcat

This will list all aliases. Confirm that the alias used in the server.xml and the one listed in the keystore are the same.

comments: author: Gobinath Sekar
body: [@Edwin Kyalangalilwa](/t5/user/viewprofilepage/user-id/255918) i had imported the wrong certificate now it is fine after importing the correct certificate
Upgrading to Bamboo 6.6.1 reorders deployment environments
Asked by Jon Stalnaker:

We upgraded to [Atlassian Bamboo](http://www.atlassian.com/software/bamboo/) version 6.6.1 build 60605 - 04 Jul 18 and now all of our environments (11 environments for 15 applications) are all out of order. Has anyone else seen this and please tell me there is an easy way to revert them other than doing it manually.


Answers:
author: Chris Berry
body: Hello Jon,

Thanks for posting on the Community.

This issue is likely a slight regression [BAM-19984](https://jira.atlassian.com/browse/BAM-19984) which is fixed in 6.6.2 or 6.7

Unfortunately, no easy workaround except to upgrade to 6.6.2.

thanks

Chris

Atlassian support - Bamboo

comments: author: Jon Stalnaker
body: We have a customer that wants me to manually reorder them all again. Is it safe to say that if I try to do that, it will either be A. unsuccessful, or B. mess up again when this bug gets fixed?


author: Chris Berry
body: Hi Jon,

Unfortunately, the Bug means that any ordering that you set will be ignored during display in the UI. I believe you will be unsuccessful in reordering the deployment environments in any consistent way. You will need to upgrade to resolve the display ordering issue.

cheers

Chris

Atlassian support- Bamboo

comments: author: Jon Stalnaker
body: That's unfortunate as we're not scheduled to upgrade for another 2 months. I hope this issue has been added to your regression tests. Thanks for you prompt assistance!


Tags: deployment
How to build a docker container with multiple tags
Asked by Pieter_Smit:

How to build a docker container with multiple tags ?

After using bamboo to build a container, how do i upload it with more than one tag ?


Answers:
author: Edwin Kyalangalilwa
body: Hi [@Pieter_Smit](/t5/user/viewprofilepage/user-id/1522316),

An option would be to run a script task after uploading that tags the image and then run a push task.

```
docker tag repo:latest repo:staging
```


Tags: docker

tag
Release Versioning on deployment: Best Practices?
Asked by Kai Neumann:

Hey there,

I am implementing CI with the help of Bamboo in my company and got some fundamental problem understanding how I would set up a deployment process with Bamboo's deployment-projects.  
Right now we are working with GitFlow: So, for each feature/bug we create a branch and later on merge them into an development branch after code reviews were done.   
We are primarly using C# projects where the version number has to be known during compile-time (in AssemblyInfo.cs).  
So, right now with each Merge into development a build is triggered which creates some version-number that is fixed in the code. If I want to use a deployment project now and set the release-version there, it won't make any sense because it is already hardcoded in my build-artifact.  
Is there any advice or tutorial on how to do this in a proper way?   

Currently we create a release-branch for each planned release. In this release planch we set the planned version number (i.e. 1.2.3). What I want to achieve is that the version number is set during the deployment process.  


Answers:
author: thePair
body: I know this is an old thread, but I wanted to share my experience on this topic, since I had the same experience.

(I'm using the version 6.5.0 of Bamboo for my testing.)

What worked for me, while creating the "versionNumber.txt" file was actually to put the name of the variable, but without the "namespace". That means that what actually worked for me was to create a file with the data as...

```
bamboo.versionNumber=1.2.3
```

... so without the "inject" part.  

That, while configuring the **Inject Bamboo variables --\> Namespace** , and setting the **Namespace as Inject** , will indeed create a variable that you can call as...

```
${bamboo.inject.bamboo.versionNumber}
```

...in the Release versioning.   

That's just a little tweaking that I've had to do to make it work in my environment. ;-)  

Also, apart from the manual effort on creating the file/variables, I've also tested this free plugin:  
[Maven POM Value Extractor](https://marketplace.atlassian.com/apps/1211019/maven-pom-value-extractor?hosting=server&tab=overview)

It works like a charm and is a very good alternative as well!

Cheers!


author: Foong
body: Build plan variable can be used in deployment Release versioning too.

1. In the build plan that create the version number, create a file (example: **versionNumber.txt** ) to store the version number in the following format:

   ```
   inject.bamboo.versionNumber=1.2.3
   ```

2. Create an**Inject Bamboo variables** task in the build plan with the following setting  
   * Path to properties file: versionNumber.txt
   * Namespace: inject
   * Scope of the variables: Result
3. In the deployment project, set the following Release versioning:

   ```
   ${bamboo.inject.bamboo.versionNumber}
   ```
Failed to connect to github
Asked by Amutha Chellappa:

I am trying get the source code from the github repository. When i click load repository, my repositry is getting loaded. But when i click test connection, i get an error message "

```
Git credentials storage exception.?
```


Answers:
author: Edwin Kyalangalilwa
body: Hi [@Amutha Chellappa](/t5/user/viewprofilepage/user-id/1581691),

Similar question: [Unable to connect bitbucket repository from bamboo](https://community.atlassian.com/t5/Bamboo-questions/Unable-to-connect-bitbucket-repository-from-bamboo/qaq-p/717940)

comments: author: Ayan Paul
body: same issue here. Please provide some solution. Thanks in advance.


Tags: github
Re-ask: How to get bamboo to intelligently re-use build results?
Asked by nbelakovski:

This is a re-ask of [this question](https://community.atlassian.com/t5/Bamboo-questions/How-can-bamboo-re-use-build-results/qaq-p/846495) as it appears to have been both misunderstood and to have fallen off the radar.

The question boils down to getting bamboo to work nicely with a fast-forward merge strategy. In such a strategy, not every merge to the master branch results in a merge commit. Some simply re-point the master branch to the relevant commit, which might already have a build associated with it. Since builds can take a long time in some cases, it would be great if bamboo could automatically update the master branch plan to point to the results of the build from the development branch plan instead of re-running a build. Given that the commit hash would be the same in a case of a fast-forward merge, this would be completely safe to do (unless the build makes use of timestamps in a weird way, but that's a separate issue)

If bamboo isn't capable of this, how might one submit a ticket for it and try to get attention to said ticket?


Answers:
author: Foong
body: Since Bamboo Script task can be scripted to perform different command depending on the branches, Bamboo will just run the build for the same commit in the master plan.

Have created the feature request <https://jira.atlassian.com/browse/BAM-20074>

comments: author: nbelakovski
body: I can't comment on the ticket, but it would be nice in general if bamboo could trigger builds based on the tree hash instead of the commit hash. You can get the tree by \`git show --pretty=format:%T HEAD\`. This way someone could modify their commit message or change authorship without having to re-run tests.

Can see all commit metadata with git cat-file commit HEAD
Posting JSON payload to Bamboo queue service
Asked by Harald Kuersten:

Hi all.

I have a service X which - upon completion - could fire a webhook URL, thereby posting a JSON payload.

I would like to maintain the *queue* service REST URL (with a specific build key) as webhook and do something with the provided payload in the triggered build.

Thanks to [this](https://community.atlassian.com/t5/Answers-Developer-Questions/Plan-variables-passed-to-the-queue-service-get-ignored/qaq-p/489464) thread, I am aware of how one could send specific values to defined ++variables++ in the build, similar to e.g.

```
curl -X POST --user my-api-user:my-api-password --data 'bamboo.some_variable=some_value' 'https://my-buildserver.com/bamboo/rest/api/latest/queue/SOMEBUILD?os_authType=basic'
```

but can I also access the raw JSON somehow, e.g.

```
curl -X POST --user my-api-user:my-api-password --data '{"service_result":"bla"}' 'https://my-buildserver.com/bamboo/rest/api/latest/queue/SOMEBUILD?os_authType=basic'
```

The [documentation](https://developer.atlassian.com/server/bamboo/bamboo-rest-resources/#build-queue-service) says "*No POST data required*", but what if it's provided nonetheless? Is it ignored, or somehow accessible?

Thanks for any insight,

Harald


Answers:
author: Arun_Thundyill_Saseendran
body: As far as I know there is no way to pass and access a JSON payload.


Tags: developer
Bamboo won't start
Asked by Guido van Brakel:

Hi

How can I fix these errors:

Bamboo bootstrap failed: Unable to run pre-bootstrap upgrade tasks as your support period has ended

My atlassian-bamboo.log shows the following:

2018-08-24 10:09:01,842 FATAL \[localhost-startStop-1\] \[DefaultBootstrapManager\] Unable to run pre-bootstrap upgrade tasks as your support period has ended


Answers:
author: Alexis Robert
body: Hi [@Guido van Brakel](/t5/user/viewprofilepage/user-id/1328218),

did you try to upgrade Bamboo with an expired license ? that would explain the message, as you can only upgrade with a valid license but can continue using Bamboo with the current installed version if you do not renew it.

Let me know if this helps,

--Alexis

comments: author: Guido van Brakel
body: Hi, I thought our license was still valid, but I'm checking with the coworker who is getting the licenses.
Elastic Bamboo Startup Script is corrupted
Asked by Roger Mier:

I've been trying to add a Startup Script to the Base Windows AMI in order to install Visual Studio Community 2017 when the instance is created. I thought this would be a fairly easy thing to do, but nothing I do seems to work. Regardless of what I put in there, when the instance is running, and I look at the User Data, it's all random characters and symbols, and the script itself never seems to run.

Do I have to make a custom image to get this working? I'd really rather not have to do that just to get this project to build.

I've tried using \<powershell\> tags, I've tried without. I've tried Base64 encoding the script. I've tried using a Bamboo task to do the install, but the bamboo user doesn't seem to have rights to install things.

I've spent the better part of a workday trying to get this one thing to work and I'm about at my wits' end.


Answers:
author: Robert W
body: Hey Roger,

When you add a Startup Script to the elastic image configuration, that script is actually bundled with a series of other scripts which is then encoded and sent to AWS. This is why when you attempt to 'view User Data' from the AWS console, it appears all garbled.

The script you designate is sent to the EC2 instance in

C:\\Windows\\Temp\\BambooStartupScript-1.bat

You can view/debug the logs for the startup script here:

C:\\Users\\Bamboo\\BambooStartupLog.txt

At this time, it is not possible to use Powershell startup scripts for an elastic agent. However, we do have an open Feature Request for this functionality. I highly recommend you comment and vote on the request.

[BAM-20058: Add support for Powershell scripts to Elastic Agent User Startup Scripts.](https://jira.atlassian.com/browse/BAM-20058 "Add support for Powershell scripts to Elastic Agent User Startup Scripts.")

Cheers,

Robert

Dev Tools Support \| Atlassian


Tags: aws

elastic-bamboo
How to create independent stages for the build jobs ?
Asked by djavvadi:

Hi

I am a test automation engineer, my project consume Bamboo server for building.

I want to create a build that contains different stages, each stage contains a project build and executes tests. Since each stage is dependent on other, if first stage got failed the other stages got stopped from execution. Hence test execution was not completed at the end.

So please help me to create stages that are independent from the execution/build on the other.

Thanks in advance.


Answers:
author: Foong
body: Its not possible for Bamboo to continue the stage if the previous stage fail.

Please use different Jobs or Build Plan instead of Stage.
Jira and Confluence integration
Asked by CrazyAs5assin:

I want to integrate JIRA with Bamboo and create a dashboard in JIRA i can see the number of test case passed /failed in jira for a partcular build

My framework will send the test cases passed failed status when the script runs, All it needs is the build details so that i can create a dashboard


Answers:
author: Gonchik Tsymzhitov
body: Hi!

Could you clarify your request?

I suggest to write script and run in Bamboo, which generate Confluence page or update it after collect all need info, like Jira issue status, test cases, steps, time etc.

For doing that I am using this library.

<https://github.com/AstroMatt/atlassian-python-api>

Of course, you can write it on ther language, own library, etc.

Cheers,

Gonchik Tsymzhitov


Tags: jira