youngmon/atlassian-qna huggingface dataset:
Bamboo: Permission issue starting/stopping the IIS server
Asked by Jesslee:

We have a permission issue starting/stopping the IIS server with Bamboo. Here's from the log file:

```
05-Jun-2015 09:28:30   c:\build\11141121-19496961&gt;REM START IIS   05-Jun-2015 09:28:30  05-Jun-2015 09:28:30   c:\build\11141121-19496961&gt;sc \\DEPLOYSERVER start w3svc   05-Jun-2015 09:28:30   [SC] StartService: OpenService FAILED 5:  05-Jun-2015 09:28:30  05-Jun-2015 09:28:30   Access is denied.
```

We have a user SRV_bamboo which runs Bamboo and has admin privileges on \\\\DEPLOYSERVER. We confirmed the privilege is working by manually starting/stopping the IIS server on CMD.

```
C:\Users\SRV_bamboo&gt;sc \\deployserver stop w3svcSERVICE_NAME: w3svc        TYPE               : 20  WIN32_SHARE_PROCESS        STATE              : 3  STOP_PENDING                                (NOT_STOPPABLE, NOT_PAUSABLE, IGNORES_SHUTDOWN)        WIN32_EXIT_CODE    : 0  (0x0)        SERVICE_EXIT_CODE  : 0  (0x0)        CHECKPOINT         : 0x1        WAIT_HINT          : 0x4e20C:\Users\SRV_bamboo&gt;sc \\deployserver start w3svcSERVICE_NAME: w3svc        TYPE               : 20  WIN32_SHARE_PROCESS        STATE              : 2  START_PENDING                                (NOT_STOPPABLE, NOT_PAUSABLE, IGNORES_SHUTDOWN)        WIN32_EXIT_CODE    : 0  (0x0)        SERVICE_EXIT_CODE  : 0  (0x0)        CHECKPOINT         : 0x1        WAIT_HINT          : 0x2bf20        PID                : 1652        FLAGS              :
```

What could have been the cause of the issue here?


Answers:
author: Jesslee
body: We just found out the cause and solution. It seems the user configuration onto the Bamboo service was gone after updating Bamboo to a newer version.

Now it's working after adding the user account again.

bamboo_service.jpg  
[](https://community.atlassian.com/t5/Bamboo-questions/Bamboo-Permission-issue-starting-stopping-the-IIS-server/qaq-p/289683?attachment-id=11592){#link_11689d3ee8facd}  
[](/tnckb94959/attachments/tnckb94959/bamboo-questions/9068/1/bamboo_service.jpg){#display_11689d3ee8facd_0}

comments: author: Krystian Brazulewicz
body: So it was the installer who overwrote the service configuration?


Tags: deployment
Bamboo branching with multiple repositories
Asked by groliffe:

We're using Bamboo (5.7.1b5715) with Perforce as our repo host. One of our build plans has more than one linked repository as it pulls together different parts of the top level repository tree.

For the default build, pointing to the Trunk repo, this works great.

However, having branched the Trunk tree, I now need to create a matching branch build in Bamboo pointing to the new Perforce branch, but it seems I can only override ONE of the repositories defined in the build plan for the branch (the default one).

Is there any way that I can override all of the plan defined repositories in a branch? If not, why does the main build allow you to define multiple repositories in the first place?

Cheers

Lance


Answers:
author: Krystian Brazulewicz
body: It was a design decision to only allow overriding a branch in main plan repository.

Using different parts of the repository tree to compile a single project seem to be a very rare scenario. I think that building smaller components/libraries/artifacts of your system, versioning them and using that as dependencies in the main build could be a solution.


Tags: bamboo-administration
Remote agent for multiple Bamboo servers
Asked by Jay Chang:

Hi All,

I have a production Bamboo server and a development Bamboo server and I would like to connect to a same remote agent host. Is it possible?

I think I would need to install another remote agent on the same remote host (Linux) and with a different bamboo-agent-home location. Is this the right way to do it? Is there a better way?

Thanks for your inputs.


Answers:
author: ThiagoBomfim
body: Hi Jay,

According to the documentation below:

* [Bamboo remote agent installation guide](https://confluence.atlassian.com/display/BAMBOO/Bamboo+remote+agent+installation+guide)

You can have 2 remote agents running on the same machine if you do what you described:
> Note that you can run multiple Bamboo agents on the same machine -- you just need to provide a separate home directory for each agent installation.

However, you can't connect one remote agent to 2 different servers.

I hope that helps.

Best,  
Thiago Bomfim  
DevTools Support

comments: author: Jay Chang
body: Installed 2 remote agents in the same machine with separate bamboo-agent-home and started them both. They seems working fine with the 2 servers. Anyway, to be safe, I stopped one remote agent before doing any test.


Tags: bamboo-administration

remote-agent
TFS to GIT migration.
Asked by Aakash Basnet:

Currently we have a project on TFS, Now we are going to do continuous integration process via JIRA, Bamboo and Stash so we need to migrate the whole code to Git,How do we start the process, I mean what will be the starting point? Is the solution is something like migrating the code from TFS to GIT if so how do we carry out the migration?

your help will be highly appreciated.

Thank you in advance


Answers:
author: ThiagoBomfim
body: Hi Aakash,

Please have a look at this page:

* [9.1 Git and Other Systems - Git as a Client](https://git-scm.com/book/en/v2/Git-and-Other-Systems-Git-as-a-Client#Git-and-TFS)
* [9.2 Git and Other Systems - Migrating to Git](https://git-scm.com/book/en/v2/Git-and-Other-Systems-Migrating-to-Git#TFS)

I hope it helps

Best,  
Thiago


author: Krystian Brazulewicz
body: From the Bamboo perspective this will require reconfiguring repositories in all your plans (unless you used Linked Repositories a lot)

comments: author: Aakash Basnet
body: @Krystian Krystian Will you please elaborate your point? Right now project code is hosted in TFS and I need to transfer those code in stash. Please provide me the the process to accomplish this.


author: Krystian Brazulewicz
body: What I meant is that if you have source code in TFS and Bamboo plan X uses this repository then after successful migration from TFS to Stash you'll need to reconfigure repository used by plan X to point to Stash.
Adding Perforce repository to plan causes "Saving Repository" spinner to spin indefinitly
Asked by eecklund:

Bamboo: version 5.4.1 build 4207

I am trying to add a Perforce repository to a plan. The P4V client is installed on the Bamboo server and has been added to the Server Capabilities as well as the build agents. I plan on having this repository build locally on the Bamboo server.

The repository is on another server. I can connect to this server with no problems when using P4V on the Bamboo server using the same credentials.

perforceConfig.PNG

However, when I click "Save repository" the spinner just spins forever, and never saves.

The only thing I see in the bamboo log is one line.

2015-06-04 11:51:37,951 INFO \[http-apr-80-exec-18\] \[AccessLogFilter\] tester POST <http://adibuild.vdeve.com/chain/admin/config/createRepository.action> 126112kb

Any ideas what is happening?

addReposit.PNG


Answers:
author: Krystian Brazulewicz
body: If I understood correctly you have configured Bambo to use `p4v` GUI client. You can't use p4v client with Bamboo because Bamboo can't enter credentials into GUI application. You need to point Bamboo to use CLI client `p4`.
Parameterized child build
Asked by fejese:

Hi,

We have a project split in two components: core and application where application depends on core. For both we have configured on-commit builds to run tests.

We use gradle to build these components and there's a parameter that can override which version of core should the application use.

What we'd like to achieve is when there's a successful build of core (which includes a snapshot release to Artifactory) then the application component should be built as well with the latest snapshot.

Now it would be possible to duplicate the application build plan so we'd have:

* one without overriding for testing changes only on application using the last stable version of core referenced in application
* and one with overriding core version to latest snapshot to test whether changes in core does not break application.

The problem is that the build plan for application is quite extensive and might change frequently so maintaining two very similar plans is undesired. Also there are multiple projects like this so the plan maintenance overhead would be quite significant.

One solution would be if the core plan would be able to trigger the application plan with setting some sort of flag or parameter. Is this possible? (Basically an equivalent of this Jenkins plugin: <https://wiki.jenkins-ci.org/display/JENKINS/Parameterized+Trigger+Plugin>)


Answers:
author: Felipe Kraemer
body: Hello @Endre Fejes,

I believe you're looking for [Plan Dependencies](https://confluence.atlassian.com/bamboo/setting-up-plan-build-dependencies-289276887.html). Have you tried that?

Kind regards,  
Felipe Kraemer


Tags: bamboo-administration

child-page

parameter
How do is use JUnit Parser with a deployment plan (not a build plan)?
Asked by Marc Eiler:

I have a build plan that builds the product and creates artifacts that a separate deployment plan can grab and deploy to various servers. I have the JUnit Parser installed and I've used it in a build plan, but for some reason it's not available to be added to a deployment plan. Why is that? Is there a way to get it to show up as an available module? What other options are there that would give me the same results in case I'm unable to use that module?

Bamboo version: 5.8.1 build 5866

Thanks.


Answers:
author: Krystian Brazulewicz
body: Unfortunately even if it was possible to enable JUnitParser for Deployments test results would be ignored. I understand you can fail Deployment without JUnitParser with the same task that actually runs tests (it can return non-zero result code).

We have a very similar issue in our public tracker: <https://jira.atlassian.com/browse/BAM-13276>, please add your vote there to increase chances of implementing this.

comments: author: Vadivel Madheswaran
body: i cant access jira board but i also has same usecase where i want use junit parser in my deployment plan


author: Atlassian DRT
body: The issue has been removed or restricted. It is no longer available and it used to be.


author: Jaya kumar
body: [@Krystian Brazulewicz](/t5/user/viewprofilepage/user-id/853277) whether its implemented ?i want use junit parser in my deployment plan


author: Marc Eiler
body: We have a branch that we build on a daily basis and it has its own set of automated tests that get run after the auto-deployment of the build. Once a week we cut a release branch and we don't have our automation run every time that we compile and package the release branch since we don't auto-deploy it once it's built. We have a separate deployment plan for deploying the build that we then want to run the automation on. We don't want to auto-deploy the build because we sometimes have a bug fix that gets checked in while I'm still doing other testing and I don't want to have the servers taken off-line in the middle. I understand your decision to not allow it, but as you can see I have a use case that could really use this functionality. Is it possible to manually add the functionality to the server or is it specifically blocked by the application?


author: Krystian Brazulewicz
body: It was a design decision not to enable all types of tasks for deployments. JUnit Parser was one of them. We're not associating test results with Deployments so we felt this task doesn't belong there.

Can you describe your use case in more detail?


Tags: bamboo-administration
Bamboo doesn't show all branches.
Asked by Hui Zhao:

I am develop a framework and push it to our company's Nuget server. The thing is it doesn't build the correct feature branch. When I check all branches in our bamboo site, I am surprised that the branch is not there at all.

Say my current working feature branch is ISSP-163. See the image.

AllBranches.PNG

However please look at the bamboo, it is not there.

Branch-ISSP-79.PNG

I use visual studio to build the project. It has a gulpfile.js script. If you need it, let me know please. By the way, I am not the bamboo administer.  
[](https://community.atlassian.com/t5/Bamboo-questions/Bamboo-doesn-t-show-all-branches/qaq-p/387511?attachment-id=9676){#link_11689dc9112f6a}  
[](/tnckb94959/attachments/tnckb94959/bamboo-questions/12191/1/Branch-ISSP-79.PNG){#display_11689dc9112f6a_0}  
[](https://community.atlassian.com/t5/Bamboo-questions/Bamboo-doesn-t-show-all-branches/qaq-p/387511?attachment-id=9677){#link_11689dc9112f6a_0}  
[](/tnckb94959/attachments/tnckb94959/bamboo-questions/12191/2/AllBranches.PNG){#display_11689dc9112f6a_2}


Answers:
author: ThiagoBomfim
body: Hi Hui,

Have you tried manually adding a Plan Branch?

Please refer to the documentation below for more details:

* [Using plan branches](https://confluence.atlassian.com/display/BAMBOO/Using+plan+branches#Usingplanbranches-Manualbranching)

Best regards,  
Thiago Bomfim

comments: author: Krystian Brazulewicz
body: Bit of explanation: list displayed in Bamboo is a list of Plan Branches - entities created in Bamboo for remote branches in git repository while first screenshots shows list of branches defined in remote giot repository.
Deploy trigger based on regex-created build branch?
Asked by jmooo:

I have my build plan setup to auto create branches that match a regex (such as 'release-xx' or 'hotfix-xx') however I don't see how I can automatically deploy those branches which Bamboo is adding via regex? The Deploy triggers on successful builds seems to require an exact branch name...


Answers:
author: Simon Lang
body: I have the same problem/question. I would like to add a trigger for an automatically created plan branch.

Our team is working as described in the GIT workflow: <https://www.atlassian.com/git/tutorials/comparing-workflows/gitflow-workflow>

We need it for the release branches. There is only one active release branch at a time. The plan branch is created automatically, and any pushes to it should trigger a deployment. For now, we are adding a trigger for each release manually. But it would be handy to have this automated.

It would be nice to be able to use a wildcard/regex in the trigger configuration, as it is possible for the creation of plan branches. Something like "release/\\d+.\\d+" or "release/\*"

Kind Regards


author: Krystian Brazulewicz
body: Well, Bamboo doesn't allow automated creation/deploying of Deployments for new branches. I'm not really sure how your workflow works - can you provide more details on that?

I think that creating/deploying automatically would be a mess: these deployments would overwrite deployments from other branches in an uncontrollable way.

comments: author: Swift Capital
body: We have this need for NuGet packages.

We want to be able to trigger deployments for alpha (development), beta (release/\*), and production (master) channels.

We're stuck on the beta releases for this very issue.


author: Swift Capital
body: This is an opened feature request here: <https://jira.atlassian.com/browse/BAM-15155>


Tags: bamboo-administration
Flatten NPM Packages using Bamboo on Windows 2012 R2
Asked by Scott Hoelsema:

As part of one of our builds on Bamboo, I want to flatten the npm packages using the npm package [flatten-packages](https://www.npmjs.com/package/flatten-packages). To do so, I need to execute "flatten-packages" from the parent folder of the node_modules folder. Attempting to do this with a script in Bamboo fails (also fails from command prompt when remoted into build server). Attempting to do it as a Node task leaves me confused about what I should be executing, and all that I try has been to no avail in actually flattening the packages. As a Node task, I have tried running the bin/flatten file as well as lib/flatten.js, but neither work. So, the basic question is, how can I execute "flatten-packages" (which works when I do it on my own computer) as part of an automated build on a Windows 2012 R2 server? Thanks in advance.


Answers:
author: Felipevsw
body: Just to share the resolution so it can help other customers, according to what we discussed on the support request you opened, you "resolved it by using the fully qualified path to the command in the script task in the Bamboo build."

Feel free to add more details here.

Cheers!  
Felipe


author: Roshan Fernandes
body: This might be old. But just letting others know how i made it work:

I installed flatten-packages on server globally using command: npm install -g flatten-packages

Noted down the installation path. It was: C:\\Users\\Administrator\\AppData\\Roaming\\npm

Now if flatten-packages command is run from any folder on server, it would look for definition of this command in folder, if not found it would look for it in system paths.

I checked Control Panel \> System \> Advanced System Settings \> Environment Variables \> System variables \> Variable value. The above installation path was not there. I added it there with semicolon separator.

Now flatten-packages command can be run from any folder on server. (So it will work from the build folder.)

I configured nodejs tasks in Bamboo UI this way:

1. npm task with install command.
2. Grunt task to run unit tests.
3. JUnit parser task to parse test results.
4. Script task to flatten packages. (Script location: inline. Script body: flatten-packages)

According to me, flatten-packages as the last task on windows server is a must have task because it lets clean-up processes delete the node_modules gracefully.


Tags: node.js

npm
High Bamboo CPU usage after upgrade from 5.6.0 to 5.8.1
Asked by Todd Ellner:

In the last month we upgraded our Bamboo server from 5.6.0 to 5.8.1, and the engineering staff has been complaining about slower performance ever since. Getting to deployment plans has started taking a particularly long time

Our server is quad-core 2.2G Xeon with 16G of RAM, well within spec according to the documentation.

Nagios monitoring shows CPU load has gone up by about 30% and CPU I/O utilization similarly since the upgrade. Memory use isn't even close to the warning line. Usage hasn't changed much. Restarting the service helps briefly. A tour of the logs hasn't turned up out of memory errors or anything else immediately suspicious.

Is there something about the new version of Bamboo which predisposes it to higher CPU utilization? If not, what can be done to diagnose and fix the problem?

Thanks in advance,

Todd


Answers:
author: Krystian Brazulewicz
body: Todd, there could be multiple reasons for that. Please contact our [Support](https://support.atlassian.com/servicedesk/customer/bsp) to investigate/resolve this issue.


Tags: bamboo-administration
Deployment in to TomCat server
Asked by Ramadevi Potluri:

I am using Bamboo 5.8.1, windows 7, Java 1.7, TomCat 1.8.

Manually I am able to deploy the war file thru TomCat Manager.

When I try the same step with Bamboo I am getting below error in Bmaboo Logs

```
simple	03-Jun-2015 10:44:49	Build Deployment of '1.0.2.2' on 'dev' started building on agent Default Agentsimple	03-Jun-2015 10:44:49	Build working directory is C:\Users\rpotluri\bamboo-home\xml-data\build-dir\720897-786433simple	03-Jun-2015 10:44:49	Executing build Deployment of '1.0.2.2' on 'dev'simple	03-Jun-2015 10:44:50	Starting task 'Copy Artifact' of type 'com.atlassian.bamboo.plugins.bamboo-artifact-downloader-plugin:artifactdownloadertask'simple	03-Jun-2015 10:44:50	Preparing to download plan result WOR-RB-24 artifact: Shared artifact: [workflow-rest], pattern: [**/*.war] anchored at: [/workflow-rest/build/]simple	03-Jun-2015 10:44:50	Artifact [workflow-rest] downloaded successfully in 0s to: /download/simple	03-Jun-2015 10:44:50	Finished task 'Copy Artifact' with result: Successsimple	03-Jun-2015 10:44:50	Starting task 'Deploy' of type 'com.atlassian.bamboo.plugins.tomcat.bamboo-tomcat-plugin:deployAppTask'simple	03-Jun-2015 10:44:50	Deploying application with war file '/download/libs/workflow-rest-1.2.war' to context '/test' to server 'http://localhost:8090/manager/'error	03-Jun-2015 10:44:50	Could not deploy application: Unbuffered entity enclosing request can not be repeated.simple	03-Jun-2015 10:44:50	Finished task 'Deploy' with result: Errorsimple	03-Jun-2015 10:44:50	Finalising the build...simple	03-Jun-2015 10:44:50	Stopping timer.simple	03-Jun-2015 10:44:50	Build 720897-786433-1114130 completed.simple	03-Jun-2015 10:44:54	Finished processing deployment result Deployment of '1.0.2.2' on 'dev'
```


Answers:
author: Pat Milligan
body: We are trying similar and not successful.

We were getting the 'Could not deploy application: Unbuffered entity enclosing request can not be repeated.' message. This was traced to a self-signed certificate on the Tomcat server.

We applied for a proper web certificate, and when that arrives, will see what the next hurdle is.
Is it possible to create a custom deployment dashboard in Bamboo?
Asked by Arg Java:

I would like to have a deployment dashboard of all our apps on one page. The rows would be the name of each of our deployments (WebApp1, Service1, etc.). The columns would have the name of the app, the version currently deployed in test, the version currently deployed in UAT, and the version currently deployed in Production.

Thanks.


Answers:
author: Krystian Brazulewicz
body: Bamboo doesn't provide Deployments dashboard. There are 2 options to fix it:

* create feature request on our [public tracker](https://jira.atlassian.com/browse/BAM)
* use [Bamboo REST API](https://docs.atlassian.com/bamboo/REST/5.9.0/)and create your own dashboard


Tags: bamboo-administration
Where to enter new license for Bamboo remote agent
Asked by Christian Balaguer:

Hi

We just bought an additional license for a Bamboo remote agent. It runs on a seperate machine and connects to the main Bamboo server. Do I have to enter the newly issued license for the remote agent somewhere?

Thanks in advance,

Chris


Answers:
author: Christian Balaguer
body: Remote agent support is already turned on. I think I get it now, unless you're not using a standalone installation, you won't need the license key right? If you just have the remote agent. So the license can be used either for a standalone installation OR a remote agent, where in the latter you don't have to enter the license key.


author: Alexey Chystoprudov
body: Hello Christian,

You need to update license at Bamboo server side to turn Remote agents support there


author: Timothy
body: You enter the new license in your Bamboo server's administration screen.


Tags: bamboo-administration
changing bamboo project key
Asked by Jewel Francis:

Hi Team,

Greetings of the day !!!

I have one doubt, I know how to change the name of a particulr project in Bamboo. But it will still have the old project key. Is there any way to change the project key as well?

Thank you in advance :smile:

Warm Regards,

-Jewel


Answers:
author: Dirk Bromberg
body: Hi,

you can move a plan to a new project with a new key.

Goto Admin-\>Plans-\>Move plans

or enter: [http://bambooURL/admin/chooseBuildsToMove.action](http://bamboo.encowayhb.lokal/admin/chooseBuildsToMove.action)

Then you can move them to a new project.

Regards, Dirk

comments: author: Jewel Francis
body: Hi,So you're saying that there is no way to edit a project key? What about plan key. I read somewhere (I think in some atlassian site) that it is not possible.Regards,-Jewel


author: Dirk Bromberg
body: Yes I think there is no good way. Maybe in the database behind. But the keys are also reflected by the filesystem in bamboo home. So this not so easy.


author: Jewel Francis
body: Thanks Dirk !!


author: Krystian Brazulewicz
body: If you're changing the key for a plan with lots of results it is advised to create a backup of your Bamboo home directory and database before running this operation.


Tags: bamboo-administration