youngmon/atlassian-qna huggingface dataset:
Specs - How to set custom plan branch for deployment project
Asked by Pedro Sa da costa:

Using Java specs, how can I set a custom plan branch for a deployment project?

In the UI this option is under \`/deploy/config/configureDeploymentProjectDetails\` .

If this is not possible, is it possible in any other way to mass configure different deployment plans for the same build plan being ran on different branches?

Best Regards,

Pedro


Answers:
author: Alexey Chystoprudov
body: Configure custom branch for deployment project through UI and then use menu item "View as Java Specs". It will generate Java code for current deployment project

comments: author: Pedro Sa da costa
body: Hello Alexey,

Thanks for the tip, I can see now that the PlanIdentifier ID number changes for each branch. This was not oblivious from the API.

Thank you for your help!


author: Pedro Sa da costa
body: After fiddling with this some more, this allows me to edit existing branches, but not to create new ones since I'm missing a BambooOid. Can this Id be retrieved somehow (using the API, or the GUI) from an existing build branch and not an existing deployment plan?


author: Alexey Chystoprudov
body: It's enough to use PlanIdentifier without oid

```
final Deployment rootObject = new Deployment(new PlanIdentifier("COM", "PLAN10")), "Test")
```


author: Pedro Sa da costa
body: Unfortunately that does not work for me when creating a new deployment:  

```

    val deploymentName = "Tomcat Alpha deployment ${env.name.toUpperCase()}"
    val planIdentifier = PlanIdentifier(Vars.PROJECT_KEY, env.bambooPlanId)
    Deployment(planIdentifier, deploymentName)


// error
//
// Can't find deployment project by oid(null) or name(Tomcat Alpha deployment TEST)
```

Vars.PROJECT_KEY, and env.bambooPlanId match the IDs i can see in the bamboo plan generated java specs if I create it manually.


author: Alexey Chystoprudov
body: This error message is from deployment permissions import.

Are you sure it's related to plan branches selection from topic header?


author: Pedro Sa da costa
body: You are correct!   

The problem was indeed from the permissions import. I was doing them before publishing the specs, which would cause an error when creating , but not when updating an existing plan.

Thank you for your help!


Tags: spec
When Bamboo license runs out will agents stop running?
Asked by Adam Gaudry:

Hi

We have a Bamboo licence that will expire at some point. I understand that the server licence is perpetual and the licence is for maintenance.

However, our agents are remote (being installed on different instances). Do you know whether these will stop running pipelines when the licence expires?

Best wishes


Answers:
author: Cristiano Mariano
body: Hi [@Adam Gaudry](/t5/user/viewprofilepage/user-id/893014) ! How are you doing?

It will not stop to work. It will not be possible only to upgrade to a version released after the expiration date and also to contact support.

Hope this helps!

comments: author: Adam Gaudry
body: Hi [@Cristiano Mariano](/t5/user/viewprofilepage/user-id/541129)

Thanks very much for clearing that up! Hope you are doing well.

Best wishes


author: Adam Gaudry
body: By the way [@Cristiano Mariano](/t5/user/viewprofilepage/user-id/541129) , we have previously had a situation where, after dropping the number of licensed agents, we found that some of the agents we had from before stopped working. This makes sense, of course, as we had lowered our licensed agents.

But in this case, does this normally mean that when you pay for a license you are paying for the server and all of the agents in the license tier (eg 25). And you can run the server and all of those agents forever, but without maintenance/support?

Thanks again for your help.


author: Cristiano Mariano
body: Hi [@Adam Gaudry](/t5/user/viewprofilepage/user-id/893014) !

Exactly! Atlassian Server products (Bamboo is one of them) will continue to work normally with an expired license. But they will stop to work if you try to use more than your users/agents tier.


author: Adam Gaudry
body: Great! Thanks [@Cristiano Mariano](/t5/user/viewprofilepage/user-id/541129) . So we can continue running our online remote agents as normal, just without support.


Tags: agent

licence
Bamboo under Java 11+
Asked by Thorsten Heit:

Hello,

now it's 2020. Are there any news concerning support for Bamboo and Java 11+? The ticket BAM-20031 mentioned in the community question [Support for Java 11](https://community.atlassian.com/t5/Bamboo-questions/Support-for-Java-11/qaq-p/1061593) is quite old (almost 1 1/2 years), it contains neither a solution nor a release number, and in the mean time Java 14 is almost there...

And what about Bamboo agents? Is it still necessary to run them under Java 8?

Cheers

Thorsten


Answers:
author: Michael Dinsmore
body: I'm surprised this thread is so quiet! I would definitely like to see better JDK 11 support.
moving all builds one branch to another
Asked by Pankaj Malhotra:

We have a Bamboo which is executing all the builds under branch "develop".  
Now we created another branch from "develop" called "v1.0.1" which is a plan branch under bamboo.

Now when a user commits the code under "develop" the builds get triggered and similarly for "v1.0.1".

But we also updated the develop branch version (v1.0.2), but kept the branch name same as "develop".

When a user commits under 1.0.1 build number start from 1  
When a user commits under Develop build number start from 300 (as there was other builds before we updated the version).

Now the ask over here is::  
Is there a way I can move all the previous builds from develop (before we branched) till 299 under plan branch (v1.0.1)?


Answers:
author: Jeyanthan I
body: Hi Pankaj,
> Is there a way I can move all the previous builds from develop (before we branched) till 299 under plan branch (v1.0.1)?

All the builds are tagged to the respective Plan branches. Thus, it is not possible to move builds to a different plan branch.

However, what I can suggest you is to reconfigure your 'develop' branch to point to different plan branch, so that the existing builds remain intact and you can continue to use the same build history.

To do this, you'll just have to navigate to the respective plan branch, then go to **Repositories** tab and update the name of the branch.

Let's know if it works for you.

Cheers,  
Jey
Bamboo unable to find the file
Asked by karthickmurugadhas:

Build is running as a Remote Agent (Windows Server 2012) and the Remote Agent is running as a service and configured with correct Log on Account. The EXE 'streams.exe' is placed inside the path "C:\\Windows\\System32" and this path is mentioned under the system variable.

Just to cross verify, in the bamboo plan, I have executed the command "echo %PATH%" and I can confirm the path "C:\\Windows\\System32" is present. But when I call the command streams.exe in my bamboo plan it gives the below error message.

**streams.exe is not recognized as an internal or external command**

I have verified many times that the file is present inside the path "C:\\Windows\\System32" on the Remote Agent. To further troubleshoot the issue, in the Bamboo Plan, I have given the below commands.

cd C:\\Windows\\System32

dir /s /b streams.exe

But it gives "**File Not Found**".

When the file is present in the machine why Bamboo cannot list it?


Answers:
author: Minh Tran
body: [@karthickmurugadhas](/t5/user/viewprofilepage/user-id/1988633) Can you try to move streams.exe to another folder under a user folder and add that folder to PATH variable to see if that works for you?

comments: author: karthickmurugadhas
body: Yes this works. Any more details of this behavior? I mean why Bamboo cannot pick/find files under C:\\Windows\\System32 when it is configured in PATH ?


author: Minh Tran
body: I thought, it probably limits to access to system folder in order to protect agents

Normal practice, we should leave our custom executable in our custom folders instead of leaving there


author: Minh Tran
body: [@karthickmurugadhas](/t5/user/viewprofilepage/user-id/1988633) Can you accept the answer if that works for you? So other people having the same problem will benefit from it
Bamboo auto plan clean, why it runs?
Asked by Lukasz Komor:

Hi,

We have in log:

|--------------|--------|---------------------------------------------------------------------------------------------------------|
| 03:00, 6 Jan | SYSTEM | Plan deleted: Nexus Release - Nexus Frontend - Docker ng2 - task-NEM-7132-dashboard-mocks (NR-NFDN2209) |

But the bamboo server setup for this plan is:

![CaptureB.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/78187i498222BCB13E5379/image-size/large?v=v2&px=999 "CaptureB.PNG")

Why the cleanup runs?

Best regards,


Answers:
author: Marcin Gardias
body: What you are looking at is build result expiry, what you need to check is Automated branch management in ' Branches' tab.
Is it possible to only re-run failed test cases in test group?
Asked by Matyas Dekany:

The case is that we have multiple test groups with hundreds of files and more than 3000 scenarios in them. The "Re-run failed/incomplete jobs only" option re-runs the whole job which means if I have test group/job that has 1 failing scenario then currently we have to re-run all 100+ scenarios in that group.  
Is there an option to narrow down the amount re-run scenarios other than creating more and smaller groups -\> jobs? (for example only the file that contains the failing scenario)


Answers:
author: Minh Tran
body: [@Matyas Dekany](/t5/user/viewprofilepage/user-id/3698988) I don't believe there is a way to do that with Bamboo

Every time you re-run a job, it will be picked up with different agent. And the state of running test cases are not kept across agents.

comments: author: Matyas Dekany
body: Oh, what a pity!  
Thanks!
Atlassian User Groups focusing on Bamboo Server ...
Asked by Mark Ryan:

Hi All

Most of the AUG meetings I see, appear to be focused on Jira, Confluence, sometimes on Bitbucket .. But I am looking for some ideas (and hopefully some people to bounce those ideas around with) on some very large scale Bamboo Server CI/CD projects.

I am based in Austria but travelling out to Germany or the UK would not be a problem ...

Would also be happy to present on what I've done so far with Bitbucket, Jira, etc .. which includes a large migration from Subversion into Bitbucket (100+ repos) and creation of a novel git workflow to manage multiple parallel releases within a team of 50+ developers and engineers.

Does anyone know of any AUG's out there that are more focused on the Build/CI side of the Atlassian tools (or have a few members that way inclined???)

Many Thanks

Mark


Answers:
author: Jimmy Seddon
body: Hi [@Mark Ryan](/t5/user/viewprofilepage/user-id/1204021),

I don't think there are enough of us in a concentrated area for a local Community event to take place.

I can't speak for other regions, but I know in a recent poll I did of the local community members in my area Jira and Confluence are the predominant products that people are using and thus why they are the focus of the local events.

I have just come to teams with this and decided to leverage the online community for questions/discussions about Bamboo.

There are a number of really smart and engaged Bamboo enthusiasts that are watch the [Bamboo collection](https://community.atlassian.com/t5/Bamboo/ct-p/bamboo) and more than happy to provide assistance and ideas (myself included).

-Jimmy

comments: author: Mark Ryan
body: Thanks [@Jimmy Seddon](/t5/user/viewprofilepage/user-id/512822) .. I've added myself to the watchlist and I'll be posting some questions/discussions up there soon ...


Tags: off-topic
Bamboo server is not detecting UFT installed on my machine
Asked by sawan.choubisa:

I have UFT installed on my machine version 14.53

When i click on Detect server capabilities then bamboo server not able to recognize UFT installed on my machine,

Can someone help me on this......


Answers:
author: Jeyanthan I
body: Hi Sawan,

If your server is not detecting a capability that is already present, you may add them manually under **Overview -\> Server capabilities** section as described in this page - [Defining a new custom capability.](https://confluence.atlassian.com/bamboo/defining-a-new-custom-capability-289277149.html)

Hope that helps.

Cheers,  
Jey
Agents go offline by themselves
Asked by Brian Bills:

Setup the agents exactly as the instructions indicate, have setup remote agents several times in the past with no issues. These particular agents though, go offline by themselves, and they're impossible to get back online. They have been approved, all of their capabilities have been verified on the server, the paths are all correct and everything, yet they will not come back online. Yes the services still work and are running on the remote agent server.


Answers:
author: Brian Bills
body: Somebody removed the AD utility account that the Bamboo remote agent service uses to do the builds from the local admin group on the server. Since I have no permissions to click on the groups that suddenly appeared in the local admin group, I assumed, (incorrectly), that someone had placed the cicd_utility account that Bamboo uses in an AD group, and then added that group to the local admin group. I wasted 2.5 days trying to figure out why agents kept going offline.
How can i create and run plan branch by rest api?
Asked by Carlos:

I trying to create (if not exists) and running a plan branch by rest api. In my context, jenkins detect the new PR on github and then make a request to bamboo server.  
First i tried request this:

```

curl -X PUT --user admin:admin http://localhost:8085/rest/api/latest/plan/MY_PRO_PLAN/branch/MY_BRANCH_NAME?vcsBranch="/refs/heads/BETA"
```

Where BETA is a destination of PR. But i just receive 404.

My Bamboo Server is version 5.14.5


Answers:
author: Minh Tran
body: [@touchmx](/t5/user/viewprofilepage/user-id/3688877) Why don't you use Bamboo to detect those branches immediately with github repositories instead of doing via Jenkin?

See <https://confluence.atlassian.com/bamboo/using-plan-branches-289276872.html> for more information
how do I set a profile picture by uploading a photo from my pc
Asked by Dennis Mathew:

I created the admin user and want to use a picture of me as the profile picture. But I don't see an option to upload a picture..


Answers:
author: Jeyanthan I
body: Hi [@Dennis Mathew](/t5/user/viewprofilepage/user-id/3696218) ,

You are right. Bamboo does not provide the functionally to upload an Avatar to the user profiles besides configuring it with Gravatar. Please refer to [Configuring Gravatar support](https://confluence.atlassian.com/bamboo/configuring-gravatar-support-289277244.html) documentation for further information.

If you are behind a firewall and you cannot reach Gravatar server, you may use some solutions like [Libravatar](https://www.libravatar.org/) and [Surrogator](http://cweiske.de/tagebuch/surrogator.htm) and use the respective Gravatar server URL in **Overview -\> General Configuration**.

Hope that helps.

Cheers,  
Jey

comments: author: Dennis Mathew
body: Thank you!


author: Jeyanthan I
body: Sure. I'm glad it helped :)


author: Hans Kristiansen
body: How can I use Libravatar instead of Gravatar? Seems very weird only having support for one alternative here. Would be even better to just use the git profile picture.


author: Hoa Phan
body: Don't fuck the customer? You guys either are retarded or think your customers are retarded on this one.

<br />

Nice one, mates :))))
How to create Master -Slave configuration in Bamboo
Asked by sankar sankar:

Hi Team,

We are Using Bamboo version 6.8.3.

Planning to create a Master-slave configuration in Bamboo.

Can someone please provide, step by step process doc.

Thanks

Shankar G


Answers:
author: Nic Brough -Adaptavist-
body: What do you mean by "master-slave configuration"? What are you trying to do here?
Is there a way to run a build from a specs file instead of publishing the specs?
Asked by joao_marcos_bizarro:

I need to run some builds differently for different branches, but I'd like to define my build plan in the specs file and make bamboo read the build plan from that file instead of publishing my specs. Is there a way to do that?


Answers:
author: Jimmy Seddon
body: Hi [@joao_marcos_bizarro](/t5/user/viewprofilepage/user-id/3692245)!

Welcome to the Community!

I believe what you are looking for is outlined in the feature request here: <https://jira.atlassian.com/browse/BAM-19620>

I'm waiting for it to be included to!

The only other option you have as a workaround to is to publish the changes in a completely new build plan targeting your feature branch. It's not ideal but it will accomplish what you are looking for until the feature request is complete.

-Jimmy


Tags: spec
bamboo backup and incresing size
Asked by Sooraj_Ravindran:

Dear All ,,

Good day.

I need your advice on bamboo backup.We have scheduled backup on every Thursday night.

but over the period backup size has increased and it fails because the C drive where the temp files are created doesn't have enough space. Currently the backup size is 100Gb and C drive is 91. When the backup size was below 90 GB it worked fine.

I need have clarity of the backup i have created. Do we need to backup Artifacts as well?Is there a way we can backup only smaller size of the builds?


Answers:
author: Petr Van??ek
body: Hi,

try to look what do you have configured in Global Expiry section and try to decrease configured values if needed.

<https://confluence.atlassian.com/bamboo/configuring-global-expiry-289277253.html>

comments: author: Sooraj_Ravindran
body: Dear Petr,

Thanks a lot for the swift response. I will discuss this with dev team and then configure.I believe this should solve the problem.

Have a good day.


author: Sooraj_Ravindran
body: Good day.

After discussion we have done the settings. Attached screenshot.


author: Sooraj_Ravindran
body: thanks a lot ,it resolved and the back size has reduced from 100+Gb to 18 GB.


author: Petr Van??ek
body: Perfect, thanks for feedback.


Tags: artefact

backup
Validating Python Scripts using Bamboo
Asked by GP:

I have a lot of Python + Spark scripts in bitbucket, I use bamboo to do some variable replacement and deploy into a target environment. I might need to validate the code using Pylint or sonarqube(not sure if Sonarqube will support python). any guidance on how to start with ?


Answers:
author: Cristiano Mariano
body: Hi! How are you doing?

In fact you could combine both Pylint and SonarQube.

You would have to install Pylint and Sonar Scanner in your Bamboo agent machine.

In your script you would have to call Pylint and then send the results to SonarQube using either the Sonar for Bamboo paid app ([https://marketplace.atlassian.com/apps/1212756/sonar-for-bamboo?hosting=server\&tab=overview](https://marketplace.atlassian.com/apps/1212756/sonar-for-bamboo?hosting=server&tab=overview)) or the Sonar Scanner command line.

This page describes how to generate the Pylint report and how to inform SonarQube the path of it: [https://docs.sonarqube.org/latest/analysis/languages/python/](https://docs.sonarqube.org/latest/analysis/languages/python/?)

Hope this helps!

comments: author: GP
body: The Sonarqube paid add has specific to Java. Do we have for Python?
Deployment environment challenges
Asked by jason apple:

My background is from using Octopus, where I could set up a list of environments and variables specific to them, then re-use them in all my deployment plans.

I plan to deploy 100 microservices, over a series of 40-50 environments. Today, i feel like i have to recreate / clone all 50 environments for each new service. And, if i have a change to one of the parameters,i have to touch hundreds and hundreds of deployment plans.

Most of what i store for an environment, is a set of credentials or information needed to deploy a service to a box or environment. For example, if we choose QA-01, we know the boxes the deploy will go to, and have credentials for each. Today, this seems entirely manual.

I've looked a "specs" but i'm not seeing how this makes it any easier. Is this just how it is, or am i missing a concept such that environments can exist at a higher level then inside a deployment, or is there something else that helps me with deploys?


Answers:
author: Max Malygin
body: When using specs, you can automate making changes to the parameters of the environment after it is created / modified. You will need to download the specs file from the git repository, make changes to it (replace the values of the required environment variables) and execute git commit.

You can export the current settings to Java specs and learn what parameters need to be changed.

Unfortunately, [Sensitive data encryption](https://confluence.atlassian.com/bamboo0608/bamboo-specs-encryption-970619851.html) cannot be used in automatic mode, because all the data will be stored in the repository in the clear.
Deployment project only works with dedicated agent
Asked by Simon Heath:

I'm making a Bamboo build and deployment project that requires a couple agent capabilities. It works fine for the build project, but with the same capabilities it never recognizes agents as being valid unless I dedicate specific agents to the deployment environment, then it realizes that they exist. What am I doing wrong?

With dedicated agents:

![image.png](/t5/image/serverpage/image-id/77469iEDD50F22F2069681/image-size/large?v=v2&px=999 "image.png")

Same capabilities but no dedicated agents:

![image.png](/t5/image/serverpage/image-id/77471i71EC62F7B2F32D91/image-size/large?v=v2&px=999 "image.png")


Answers:
author: Cristiano Mariano
body: Hi! How are you doing?

I had some similar problems then I realized the issue was that the agents I would like to use were dedicated to other build/deployment plans. As soon as you dedicate them for one single plan, they will not be able to run other plans, even if they have all required capabilities.

In this case you would have to dedicate it for this new plan (as you already did) or stop using the dedicate feature at all for this agent and make other plans to be able to run on it only setting requirements for them.

Do you believe this would be related to the issue you are facing?

Hope this helps!

comments: author: Simon Heath
body: Hey, thanks for the reply! That might be it, I'll have to try it out and see how it works in practice.


author: Simon Heath
body: Yep, looks like that was the answer. Thank you!
Licence error when upgrade bamboo server version
Asked by Carlos:

I have a bamboo server running in version 5.14.5 and I'm trying to upgrade it. I follow every step on upgrade tutorial (upgrade first to 6.5 and then to latest), but when i running the version 6.5 i have an error of licence. Just is showing for me:
> Bamboo bootstrap failed: Unable to run pre-bootstrap upgrade tasks as your support period has ended. Please contact Atlassian and <https://support.atlassian.com>

My environment is a linux server x86_64.


Answers:
author: brbojorque
body: Hi [@touchmx](/t5/user/viewprofilepage/user-id/3688877) ,

You can't upgrade the application if the support period has ended.

The workaround for this is to add an Evaluation license and continue the upgrade.

<https://confluence.atlassian.com/bitbucketserverkb/how-do-i-generate-extend-bitbucket-server-evaluation-license-779171659.html>

-

Once done you can then process the Commercial license for the instance.

--

If you don't already know here are what is included in the Commercial license.

<https://community.atlassian.com/t5/Jira-questions/What-happens-if-JIRA-Server-license-expires/qaq-p/587267>

comments: author: Jimmy Seddon
body: Hi [@touchmx](/t5/user/viewprofilepage/user-id/3688877),

Even though [@brbojorque](/t5/user/viewprofilepage/user-id/1221722) has referenced a post about Jira Server the same rules also apply to a Bamboo server, thought I'd just make that clarification.

-Jimmy


Tags: upgrade