youngmon/atlassian-qna huggingface dataset:
notification agent status
Asked by Jafaruddin Lie:

*This question is in reference to Atlassian Documentation: [Monitoring agent status](https://confluence.atlassian.com/pages/viewpage.action?pageId=289277176)*

Hi all

I was wondering if there's a way to be alerted when a remote Bamboo agent goes down?

I know we can monitor the agents, but I was wondering if there's a way to send out automated notification?


Answers:
author: Alexey Chystoprudov
body: <https://jira.atlassian.com/browse/BAM-2489>


author: Steffen Opel _Utoolity_
body: This functionality is not yet supported by Bamboo itself (but see below), please watch and vote for the following issue to further guide Atlassian's priority for addressing this notable limitation:

* <https://jira.atlassian.com/browse/BAM-2489>

That being said, the [Agent Utilities - Basic](https://marketplace.atlassian.com/plugins/com.pronetbeans.bamboo.agentutils-basic/server/overview) add-on used to provide this functionality. Unfortunately it is not maintained anymore and only marked as compatible up to the [long outdated](https://confluence.atlassian.com/support/atlassian-support-end-of-life-policy-201851003.html) Bamboo release 4.4.8. The [source code](https://bitbucket.org/adammyatt/bamboo-agent-utilities-basic/overview) is available though, and the underlying [Bamboo notification plugin](https://developer.atlassian.com/bamboodev/bamboo-plugin-guide/bamboo-plugin-module-types/notification-plugin-modules/notification-type-module/building-a-notification-plugin) functionality is documented, so it should be a comparatively straight forward task to either pick it up and adjust it to work with Bamboo 5.x (if at all required), or just build a new add-on from scratch that provides those notifications.


author: Mark de Bont
body: Good point, better to be proactively informed then checking why jobs are queuing or are waiting for completion


Tags: bamboo-administration

monitor
Master has branching enabled. Can I edit one of the branch plans to disable stages?
Asked by Amanda Culver:

I have master with branching enabled, it's working well.

I have created a ReleaseCandidate branch but need only the build stage to be run, not all of the tests, as the QA team are to run their whole suite over it and the CI test suite is time consuming.

(I also want to change notifications, add a few envVars, change the branch cleanup options, etc)

Can I specify that I want /this/ branch to run /that/ config without impacting the parent (Master) ?

if not, how do I achieve this ?


Answers:
author: Tim Crall
body: I'm not aware of a way to do this, other than cloning the Build Plan. I'd be very interested if someone else has a way.


author: Mark de Bont
body: The way I've resolved this is, indeed, cloning a plan and tailor it to your needs. Unfortunately you will have to sync updates manually yourself.

There is also a plugin wihich lets you dynamically update the workflow but not notifications, cleanup etc. <https://marketplace.atlassian.com/plugins/org.valens.dynamicPlans/server/overview>

comments: author: Amanda Culver
body: Have followed your advice, have cloned the build plan and setup a new proj, with one build plan, have changed the notifications, the build stages and variables etc. it's now looking like I'd like it to, only ... I can't get it to auto update from Master which is being built in the original plan.

This is a nightmare! I don't understand why we can't 'tear off' a build plan for a branch and hone it to that branch's specific reqs.


author: Mark de Bont
body: Maybe this plugin is something you would like:

<https://marketplace.atlassian.com/plugins/org.valens.bamboo-templatedplans-plugin/server/overview>

Set the master plan as template and let your branch plan use the templated jobs steps


author: Amanda Culver
body: Thanks Mark, appreciate your guidance.

Sadly, this is looking like a real heartache.

Master has branching enabled and it's working a dream for all branches. However, we have a special, critical branch, for which we don't want to run the whole plan, just a subset of it and we want to manipulate some bits so that only our demigod receives notifications etc.

I don't want to change the WORLD for this one branch. It seems like such a simple thing. I can't believe it's not possible.


Tags: bamboo-administration
Did dedicated Bamboo remote agent can run interactive process on Windows machine?
Asked by Daniel Gravel:

I have configured a dedicated remote agent to run test on a remote machine.  
The test is running under a custom windows application that needs to be started prior to run TCL script from the application TCL interpreter. When running the test the application is started in a hidden window process and seems to work for some test but stopped responding at one point.

When I start it using the same command from a local batch file now the application window is displayed and all the tests work properly.

Is there a way to configure the agent so it runs the application interactively?


Answers:
author: Mark de Bont
body: Run the agent from command line instead of a service. This will solve problems where programs are executing using GUI output etc. Let us know how this works out.

I know this is not ideally as you have to manually login/start the agent instead of a service.

comments: author: Daniel Gravel
body: Thanks Mark I have tried this and it works as expected now.
Dedicating agents to a particular deployment project do not allow that project tasks to run on other available agents even if other available agents meet all requirements for those tasks.
Asked by ashleyg:

*This question is in reference to Atlassian Documentation: [Dedicating an agent](https://confluence.atlassian.com/pages/viewpage.action?pageId=629015108)*

Dedicating agents to a particular deployment project do not allow that project tasks to run on other available agents even if other available agents meet all requirements for those tasks. This is what is currently happening for one of my depployment projects.

My understanding is that you can force deployment projects/any bamboo build jobs to run on specific agents by defining custom requirements that match agent capabilities, and also that you can dedicate agents to run only certain specific jobs/deployment tasks.

So in my case, i have few agents that we dedicate to run our build projects and deployment projects every time we have one created. So we got a new deployment project and it showed 25 agents available to run it. But we wanted it to run on only our 10 dedicated agents, so we defined custom requirement matching those agent capability and dedicated those 10 agents for this deployment project as well. Then it showed 10 agents capable to run it, but after removing the custom requirement, as per my understanding it should now show availability of 35 agents ,instead of 10, but to my surprise it still shows only 10 agents capable to run it.

Kindly let me know if my understanding is incorrect , because i couldn't find any bamboo documentation that illustrates this. I only see how you can force run jobs/deployment projects on certain agents or how you can dedicate your agents to run only specific jobs/deployment tasks.

Thanks,

Ashley


Answers:
author: Tim Crall
body: It's a little counter intuitive and poorly documented, but dedicating an agent is a two-way street. If an agent is dedicated to a build plan, that agent will only run that plan's builds, and that plan will only run on that agent.

This is why whenever possible we try to use capabilities to define what agents a plan should run on, and avoid dedicating agents.

comments: author: ashleyg
body: Thanks Tim for the prompt reply.

So does that mean if we dedicate an agent A to run x, y, z plans/deployment projects, then both things happen:-

1) x,y,z can only run on agent A, even if there are other agents capable to run them.

2) Agent A can only run x,y,z unless dedicated to run other plans/deployment projects

So from this i can make sure that i don't need to define custom requirements on these plan jobs/deployment tasks, if i have dedicated agents to run them.Because you meant that would ensure these plans will always run on those agents only.

Is that right?


author: Tim Crall
body: I believe that to all be correct, yes.


author: Mark de Bont
body: Yes, I also found that dedicating an agent to a deployment plan takes away the agent for other use of build plans ;-s


Tags: bamboo-administration
how to define the artifacts specific to branch
Asked by saketh-stash:

I have a bamboo plan with different branches, my build job and the tasks are different for each branch, so i need do define artifacts specific to branch else am unable to publish my artifacts as my artifacts path are different for each branch, can we fix this?


Answers:
author: Mark de Bont
body: No, the only solution would be to clone plans and tailor it for that specific branch


author: saketh-stash
body: can someone please answer?


Tags: bamboo-administration
If I have a smaller git repository and want to just sync those or newer changes from svn can it be done.
Asked by Patrick J Bonk:

I have a 6 month git repository that I cloned from svn. I want to sync just those 6 months and newer svn commits. Can I do that.


Answers:
author: Corentin M?hat
body: Hello,

you should have a look to the following pages :

* <https://www.atlassian.com/git/tutorials/migrating-synchronize/>
* <http://stackoverflow.com/questions/907913/there-is-any-way-to-synchronize-git-and-subversion-repositories>
* <https://git-scm.com/book/en/v1/Git-and-Other-Systems-Git-and-Subversion>

They explain how you can perform this kind of sync between a local git cloned repo and a distant svn server


Tags: bamboo-administration
Work from Linux Bamboo server to execute PowerShell script on remote Windows server
Asked by Chris Lenz:

Hi,

1. Will PowerShell Task work on Linux Bamboo server?
2. Will it be able to execute commands on a remote Windows server either by inline commands or executing a script that is on the remote server?

thanks,

Chris


Answers:
author: Tim Crall
body: 1) If you have Windows Bamboo Agents, you can use them to run PowerShell scripts within a build regardless of the OS of the Bamboo Server itself.

2) Are you trying to run PowerShell scripts on a remote computer other than a Bamboo Agent? Like as part of a deployment? That should be possible use the SSH task or something like that.


author: Sergey Podobry _Stellarity Software_
body: I want to notify you that [PowerShell Task Addon](http://marketplace.atlassian.com/apps/1211403/powershell-task) supports Linux now (you just need to install pwsh). So answer on both questions is yes.


author: Sergey Podobry _Stellarity Software_
body: Yes, you need a Windows Bamboo agent to use PowerShell Task.

comments: author: David Chin
body: Well, shouldn't the build plan task be smart enough to not have windows powershell drop down available for a Linux Agent?


author: Sergey Podobry _Stellarity Software_
body: Build plans know nothing about agents. Compatibility with agents is checked later when a build is about to be run. Then only appropriate agents are selected.

BTW, if you need running PowerShell on Linux [PowerShell Task Addon](http://marketplace.atlassian.com/apps/1211403/powershell-task) supports it.


author: David Chin
body: Thank you so much! Sorry to complain about a thread that's 3 years old without doing my homework.


author: Chris Lenz
body: The two agents are both local, so, no, they would have to be linux since this Bamboo instance is on linux. So it appears I would need to have a remote agent on the Windows server where I could use "PowerShell" task, or use an SSH task.

thanks


Tags: addon-com.stellarity.bamboo.powershell-task
Builds are failing to get triggered after the Bamboo 5.12.2 upgrade completion
Asked by Sergei Jerdetski:

Hello there,

As a result of our testing of the Bamboo upgrade from the current 5.7.2 version to the latest Bamboo version 5.12.2, we have run into a major issue: builds won't get triggered from the Bamboo UI and log the following System Error:

Bamboo has detected one error.

LESA - SVC - 06.b content-admin-service - Unit Tests : Error encountered while triggering manual build: Could not generate next build number for 'LS-CSVCUT'

(16 Jun 2016, 9:27:07 AM, Occurrences: 2)

When viewing the error log, one can see the reason for the failure:

java.lang.RuntimeException: Could not generate next build number for 'LS-CSVCUT'

Caused by: java.lang.IllegalStateException: No build numbers record for plan LS-CSVCUT

The reason behind is quite obvious: the new DB table BUILD_NUMBERS being empty (as a result of the DB changes specific to the upgrade) does prevent all builds from generating the next build number. I do not recall any specific database instructions in the Bamboo upgrade steps by Atlassian that suggested a data migration: did we miss something and, if so, what should be done -- as a pre- or post-upgrade -- in order for that to be fixed and not become a show stopper? Does Atlassian have any data migration plan that should be followed during the upgrade procedure?

This is a blocking issue for us at this moment and your assistance/advice will be much appreciated.

Thank you in advance for a prompt response.

Sergei Jerdetski

DevOps Engineer

Health Language

Wolters Kluwer Health

4600 S Syracuse St, Suite 1200

Denver, CO 80237

720.446.2519 tel.

[Sergei.Jerdetski@wolterskluwer.com](mailto:Sergei.Jerdetski@wolterskluwer.com)


Answers:
author: Bhagwan Basnet (Aakash)
body: Hello Sergei,

Did you got solution to this issue, if yes could you please provide us that solution, that would be highly appreciated and helpful.

Thanks


author: Bhagwan Basnet (Aakash)
body: kindly request you to post the solution guide once you got from Atlassian support, that will really really helpful for all of Atlassian tool admins.

Thankyou


author: Sergei Jerdetski
body: Already done.


author: Alexey Chystoprudov
body: @Sergei Jerdetski,

Please create request at support.atlassian.com. Our support engineers will be happy to help you
Firewall ports between Bamboo and external MySQL database
Asked by Tom Allen:

We experimentally moved our Bamboo server to a different IP address in response to a security need, but after doing so there were connectivity errors between Bamboo and the external MySQL server. We successfully rolled back to the former IP address. I suspect we need to modify firewall settings for the new IP address. But which?

My question: Which ports and protocols should be opened in a firewall between Bamboo server and an external MySQL database?


Answers:
author: Krystian Brazulewicz
body: You should:

* configure your MySQL server to accept TCP/IP connections
* on firewall open the port that your MySQL is using (by default it is 3306)

<https://dev.mysql.com/doc/refman/5.7/en/problems-connecting.html>


Tags: firewall

mysql
Bamboo Error : You cannot access Bamboo at present. Look at the table below to identify the reasons:
Asked by abhaydwivedi1:

Hi,

I am getting error while accessing the bamboo -

|---------------------|-------|-----------|--------------------------------------------------------------------------------------------------------------------------|
| 2016-06-15 01:30:09 | fatal | bootstrap | Bamboo bootstrap failed: Your build of Bamboo (4306) is too old to work with the data in your Bamboo home directory (/va |

What is the issue here? Do I need to update the version?

Please advice.


Answers:
author: Steffen Opel _Utoolity_
body: Yes, you need to update the version of Bamboo to one that is identical or newer to the one that has been used to create the data in your Bamboo home directory - from [this question](https://answers.atlassian.com/questions/9377438/bamboo-5.5.1-build-4306-and-visual-studio-2013) I'm inferring that build 4306 equals the [meanwhile unsupported](https://confluence.atlassian.com/support/atlassian-support-end-of-life-policy-201851003.html) Bamboo version 5.5.1, so you'd need to use at least release 5.6.0 to still run a supported Bamboo version (please follow the instructions in the [Bamboo upgrade guide](https://confluence.atlassian.com/bamboo/bamboo-upgrade-guide-720411366.html) to protect yourself from data loss, i.e. backup your database and disk etc.).

### Background {#toc-hId-1484146685}

Some Bamboo versions do run so called [upgrade tasks](https://docs.atlassian.com/bamboo/5.11.0/com/atlassian/bamboo/upgrade/UpgradeTask.html) that affect the schema of the Bamboo data that is stored in the database or on disk. Once this is done, it is not possible to revert back to an earlier version that is not able to handle those schema changes.

### Cause {#toc-hId--1068010276}

My best guess is that someone already tried to update your Bamboo installation to a more current Bamboo release and you are now effectively trying to go back to your previous or an older version somehow (this can easily happen when reverting to an outdated backup for example, or by using the wrong virtual machine or Docker image in a test installation or so).


author: SidduAngadi
body: cleanup hone directory or redirect home directory to different folder. To change home home directory edit file:

\<Bamboo installation directory\>/atlassian-bamboo/WEB-INF/classes/ directory.   

bamboo.home=C:/test/bamboo-home

restart your bamboo service
How to use variables in a repository's file pattern field
Asked by Harry Rose:

Hi.

As part of a build, I have configured bamboo to check out our source from a git repository. The git repo contains a number of different services, all stored in different subdirectories (structure ./{service-name}). For the sake of this question, lets use a service called 'my-service' as an example. Currently the repository is configured to only include files in \`\^my-service/.\*\` (the 'File Pattern' in the advanced options of the repository configuration). However, I'd like to move the 'my-service/' value to a plan variable called \`SERVICE_SOURCE_PATH\`.

I've tried using the value \`\^${bamboo.SERVICE_SOURCE_PATH}.\*\`. However, this is not accepted as a valid regular expression. The user at <https://answers.atlassian.com/questions/257995> tried escaping the value, but it seems it was just taken literally.

Does anybody know whether it is possible to use a plan variable in the repository configuration's File Pattern field? And if so, the correct syntax?

Thanks.


Answers:
author: Alexey Chystoprudov
body: This field doesn't support variables

comments: author: Harry Rose
body: Thanks for the fast response, Alexey. Do you know if there are plans to add support for variables in this field? I think it would be very useful.


author: Alexey Chystoprudov
body: I don't think we will implement it soon. You can watch and vote on <https://jira.atlassian.com/browse/BAM-16422>


author: Harry Rose
body: Thanks for that. I'll add my vote :smile:


Tags: cloud
How does one secure a connection to a Bitbucket repository?
Asked by Stuart Longland:

p style color:#6f6f6f;border: 1px solid #e9e9e9;border-radius: 3px;padding: 5px; \> em\>This question is in reference to Atlassian Documentation: a href https://confluence.atlassian.com/pages/viewpage.action?pageId 289277374 \>Securing your repository connection /a\> /em\> /p\> p\> span class text-placeholder \>Ask your question here... /span\> /p\>

Seems while Bitbucket and Github supports SSH authentication, I can't set up a shared SSH key for accessing repositories, and so my (developer) credentials get hard-coded into the configuration of a repository.


Answers:
author: Krystian Brazulewicz
body: @Stuart Longland this feature is planned for Bamboo 5.13. Please stay tuned.


author: Rich Duncan
body: Bitbucket cloud or server?


Tags: bamboo-administration

documentation
trigger a Bamboo build from stash checkin on a sub directory
Asked by Christopher Bartlett:

I am looking to split apart our build for different areas of our site. I would like to have a build triggered based on a checkin to a sub directory. Currently we have the trigger working on any check in, but that is not what I need I have tried [this](https://answers.atlassian.com/questions/257995/is-there-a-way-to-trigger-a-bamboo-build-on-changes-to-a-specific-sub-directory-of-a-git-repository)solution with no success.

This seems like it should be a pretty straight forward thing to accomplish.

Thanks,

Chris


Answers:
author: Rich Duncan
body: I think the only way you could do this is by writing a bamboo pluging to parse the commits looking for the specific subdirectory that should trigger the build.

Maybe you should refactor the repositories...

comments: author: Christopher Bartlett
body: I find that odd since both of these platforms are Atlassian software and TFS handles this very simply. I have seen examples (like the one I posted) that supposedly do this, but none have worked for us. Our project is a web site and we would like the UX to be pushed separately from the source code so they are not dependent on each other and breaking them up into separate repositories does not make sense since they are apart of the same project.


Tags: bitbucket

sub-directory

trigger
How to send email notification before build
Asked by Randhir Panda:

*This question is in reference to Atlassian Documentation: [Configuring notifications for a plan and its jobs](https://confluence.atlassian.com/pages/viewpage.action?pageId=289276973)*

We have a requirement to send an email communication to the list of user before the build start.

How do I configure this in bamboo server ?

I don't see any notification type to trigger an email on pre-build event.


Answers:
author: Randhir Panda
body: Thanks Siddu for you answer.

could you please explain little more on the above 2 points. I am from .Net world and can I write a bamboo plugin on .net ? Also for the #2, I have used script task heavily in my build plan to do the MSBuild, copy the file , to run powershell script and all. Is their a way to send email through script task ? Any URL link or steps on this will be highly helpful for me.

comments: author: Alexey Chystoprudov
body: 1. No, your plugin should be compiled to Java bytecode
2. [http://tecadmin.net/ways-to-send-email-from-linux-command-line/#](http://tecadmin.net/ways-to-send-email-from-linux-command-line/) and <http://www.howtogeek.com/120011/stupid-geek-tricks-how-to-send-email-from-the-command-line-in-windows-without-extra-software/>

In solution 2 email will be sent by OS or 3rd party library which you have to configure separately.


author: SidduAngadi
body: There is no plugin available for this.

YOu can two ways:

1. Write ur own plugin or extend repository before event module
2. if you are not expert in bamboo devlopment, use script task and execute script to send email.

What exactly you trying to achive by sending email before plan execution.

If you want use inbuilt notification refer: <https://confluence.atlassian.com/bamboo/configuring-notifications-for-a-plan-and-its-jobs-289276973.html#Configuringnotificationsforaplananditsjobs-events>


Tags: bamboo-administration

build

notification
Tomcat has started successfullly but bamboo was not running
Asked by Swetha Bammidi:

Hi,

I installed bamboo in one of my instance with root user. And created bamboo-home and provided bamboo -home location in bamboo installation directory as mentioned in your documentation.

Installed mysql server on same instance and created db and user for bamboo.

And then executed start-bamboo.sh with root user, it is saying that tomcat started but bamboo application was not running. In logs folder there is no catalina.out file.

Same issue facing with crowd also.

Please help me to debug this.

Regards,

Swetha


Answers:
author: Marcin Kempa
body: Hi @swetha bammidi!

I assume you are using latest versions of Crowd and Bamboo?

What version of Java are you using? Both [Crowd](https://confluence.atlassian.com/display/CROWD/Supported+Platforms) and [Bamboo](https://confluence.atlassian.com/display/BAMBOO/Supported+platforms) require JDK 1.8. Could you check if you have properly configured [JAVA_HOME](https://confluence.atlassian.com/display/CROWD/Setting+JAVA_HOME)?

Thanks,

Marcin


Tags: crowd