youngmon/atlassian-qna huggingface dataset:
Bamboo Remote Agent install *without* requiring approval
Asked by longviewbits:

I'm trying to use Chef to automate the install of a Bamboo Remote Agent.

We're hitting a wall in that the Agent install requires manual approval on a web page.

Is there any way to do the install where the approval is either implicit, or not required?

Thanks,

Aaron Kulbe


Answers:
author: Steffen Opel _Utoolity_
body: I'm not aware of an installation option with implicit approval, but in case your operational environment is sufficiently controlled to skip this security barrier, you can simply disable [agent authentication](https://confluence.atlassian.com/bamboo/agent-authentication-289277196.html) entirely:

1. Click the ![](https://confluence.atlassian.com/bamboo/files/306350223/405504149/1/1379633820512/cog.png) icon in the Bamboo header and choose **Agents**.
2. Click the **Disable remote agent authentication** link to the right of the **Remote Agents** section heading.

Alternatively, you *may* be able to retain the approval requirement, but automate the approval via the REST API's [/agent/authentication/{agentUuid}](https://docs.atlassian.com/atlassian-bamboo/REST/6.2.5/#d2e2252) resource (please note that I have never actually tested this myself).

* You can deduce more information on where to find the agent UUID and how it maps to the agent ID in [Map Agent UUID (authentication entry) to the actual Remote Agent in the Bamboo UI (BAM-17470)](https://jira.atlassian.com/browse/BAM-17470).


author: longviewbits
body: Okay. I got this part figured out, by passing the 'install' argument. Now I'm wondering if I can still use automation to associate this remote agent with the Bamboo Server. Is there a way to do that?
bamboo integration with .NET/Specflow tests
Asked by shab2908:

Hello all,

i need some help or point me to the right documents which can help me to run some specflow tests on bamboo server.

Regards


Answers:
author: berguenstein
body: Hello [@shab2908](/t5/user/viewprofilepage/user-id/1194180) ,

I think that you might have found an answer to your problem, but just in case:

The dotnet compiler is smart enough to know that Specflow is a test framework and you can use it directly with this command:

```
dotnet test
```

If you have problems with it, there's the way Visual Studio offers you:

When you use Specflow with VisualStudio, you have a script file called "runtests.cmd" in your project. When you open it, you can see the commands used to compile and run your tests. If you're not sure of which command you want to use, you can directly execute this script.

In case you're lost in this script, those are the commands called in my case (I just removed the commands that check if there are errors due to a wrong configuration with the PATH):

```
#build the project
MSBuild.exe "yourProject.csproj"
#go in the packages to use Specflow
cd ..\packages\SpecRun.Runner.*\tools\net45
#execute the tests
SpecRun.exe run --baseFolder "%~dp0\bin\Debug" --log "specrun.log" %2 %3 %4 %5
```

And here's the Specflow doc to use the test in cmd line:

<https://specflow.org/getting-started/#ExecuteAgain>

Hope it helps,

Best Regards,

Marc


Tags: bitbucket-cloud
Unable to log into Bamboo Dashboard with LDAP users
Asked by pereillo:

I have configured LDAP and see the users I expect to see from that directory in user management; however, when I try to log in as one of those users it responds that the password is incorrect.

I see the following errors in atlassian-bamboo.log

* could not be authenticated with the given password
* tried to login but they do not have USE permission or weren't found. Deleting remember me cookie.

I followed the directions at <https://confluence.atlassian.com/bamkb/how-to-set-up-ldap-in-bamboo-729978786.html>

I configured caching. <https://confluence.atlassian.com/bamboo/configuring-the-caching-of-your-ldap-repository-289277216.html>

I have provided Access, Create, Create repository and Admin permissions under Global permissions.

This is a new install of Bamboo 6.4.0 running on Windows Server 2012.

I'm using the same LDAP for Bitbucket and that works without issue.


Answers:
author: Jeyanthan I
body: As you say that the users are able to login to other applications and the user is listed in Bamboo and is granted appropriate permission, it is most likely that the user is not added to the appropriate group on LDAP that has rights to authenticate to the Bamboo server.

If you still have issues and if this problem is caused by the cache, a Bamboo restart should fix it.


Tags: ldap

login
Gulp Task in Bamboo Build plan is not recognized, why?
Asked by Robert Adby:

I have created a Bamboo build plan, with Node.js and so. I've also added tasks for installation of Gulp and Gulp-cli.

I've added a Gulp Task but I get this error :  
"`'gulp' is not recognized as an internal or external command, operable program or batch file".`

What is wrong or what can I look into? I don't know if it's a user context issue or a path in the systems variable is wrong or something else, how can I proceed? Thanks.


Answers:
author: vivshalu1
body: Hi,

Did u find the solution ?
Get Pull Request ID in Bamboo Plan Branch
Asked by Jakub_Papcun:

Hello all,

I am running Bamboo Plan Branches on Bitbucket feature branches.

Is it possible to retrieve the ID of the Pull Request (if there is any open) from the feature branch that is built by the respective Bamboo Plan Branch so that I use it during the build?

Thank you.


Answers:
author: Alexey Chystoprudov
body: It's not possible yet, but you can vote and track <https://jira.atlassian.com/browse/BAM-18350> to be notified when this feature request will be addressed. Also there's workaround you can use in a script task

comments: author: Jakub_Papcun
body: Thank you very much Alexey. Looks like exactly what I was looking for.


Tags: bitbucket
Docker runner with multiple docker containers
Asked by Mark Kewley:

Hello,

I've been testing the new Docker runner feature for the past couple hours and it's been working great! There is one thing though that I can't seem to figure out how to do. I'd like to be able to run say a Database Docker container alongside the build. This is a pretty typical case for builds to run external services alongside them (e.g. Bitbucket pipelines services feature).

Is it possible to configure multiple containers to run alongside your docker runner build?

Thank you,

- Mark


Answers:
author: Omar Herrera
body: Hi [@Mark Kewley](/t5/user/viewprofilepage/user-id/1193003) if your are familired with docker you can use docker compose for orchestate the containers.

Cheers

comments: author: Mark Kewley
body: Let me try that solution

Thank you!


author: MB
body: Hi Mark,  

It would be easiest to accomplish this by setting up pre-tasks to your build/plan. You could build your database and attach your schema in build steps before, and then have your docker runner tasks execute after that dependency is met, however you would need to cleanup the container in another step later.  

Cheers,  
Max

comments: author: Mark Kewley
body: [@MB](/t5/user/viewprofilepage/user-id/1189517)

Not sure if I see this pre-task tab, do you mean using stages? Is it possible configuring this all through the YAML bamboo-specs configuration as code?

A quick search in the docs does not mention pre-tasks.

Thanks,

Mark


author: Alexander Sowatsch
body: [@Mark Kewley](/t5/user/viewprofilepage/user-id/1193003)

to my mind Max points to the feature of this plugin: [pre-post-build-command-runner](https://marketplace.atlassian.com/apps/5581/pre-post-build-command-runner).  
I will give it a try - even if its an v1 plugin :(.

cheers  
Alex


author: Mark Kewley
body: Thanks [@Alexander Sowatsch](/t5/user/viewprofilepage/user-id/488301),

Our company has since moved away from Bamboo and we are now using Gitlab. So much better.


author: Mark Kewley
body: [@Omar Herrera](/t5/user/viewprofilepage/user-id/186043)

That actually doesn't solve the issue with Docker Runners, the only thing we are allowed to do via the UI is to place an image as our build container. We aren't given an option to say place a docker-compose.yml file.

What we need is something like bitbucket-pipelines, where you can have your base image the agent runs on and then you can attach services (other docker images) that run alongside the build that can be called upon.

Does such a feature exist?


Tags: docker
Is there a LARAVEL plugin into Bamboo?
Asked by aliasgarbaldiwala:

We have built an automation framework using Laravel and I was wondering if you anyone can confirm if that can be used with Bamboo?


Answers:
author: Jeyanthan I
body: Hi Aliasgar,

If you can build this framework via the Command line, then Bamboo can do it too. A [script task](https://confluence.atlassian.com/bamboo/script-289277046.html) is sufficient and you do not need an exclusive plugin for that. Maybe [this link](https://confluence.atlassian.com/bamboo/getting-started-with-php-and-bamboo-289277284.html) helps you get started with this PHP framework.

comments: author: aliasgarbaldiwala
body: Thanks Jeyanthan!
SCP upload task successful, but no file on remote host
Asked by eyequestionold:

Hi,

I'm using the bamboo SCP task to upload an artifact to a remote host.

After trying a bit and fixing all the file not found and Is directory like issues. I finally got it to work. At least that is what bamboo is telling me:

12-Mar-2018 12:36:44 Starting task 'Upload Artifact to FTP' of type 'com.atlassian.bamboo.plugins.bamboo-scp-plugin:scptask'  
12-Mar-2018 12:36:44 Connecting to MYREMOTE-IPADRESS on port: 22  
12-Mar-2018 12:36:44 Uploading 'FILEPATHHERE\\Bamboo Home\\xml-data\\build-dir\\163841\\XXXXXXX\\XXXXXXXX\\target\\xxx.war' to 'remotefolder'...  
12-Mar-2018 12:36:51 'FILEPATHHERE\\Bamboo Home\\xml-data\\build-dir\\163841\\XXXXXXX\\XXXXXXXX\\target\\xxx.war' was uploaded successfully.  
12-Mar-2018 12:36:51 Finished task 'Upload Artifact to FTP' with result: Success

So all seems fine. However, when I look at my remote folder. Nothing is there.  
What can I check. Because I solved permission problems, file not found problem, remote directory problems. So I know for a fact that the connection and settings are good.

Any pointers are welcome.

Using Bamboo 6.3.2


Answers:
author: Jeyanthan I
body: As the build log says that the upload is successful, is it possible to ssh into that machine using script task in the same plan and then do a **dir** to that directory to list the uploaded files. This way, you can ensure that the files are listed right after the upload in the same session.

Also, check if you get the same issue when you scp and move your war via script task. I'd try the following.

```
scp -r ${bamboo.build.working.directory}\*.war user@host:/path/to/whereyouwant/thefile
```


Tags: scp
Agent for ansible task
Asked by loganathan:

I have tried to execute ansible task in bamboo by mentioning executable path of ansible for agent as C:\\cygwin64\\bin . But I am getting "No agent to build this task" notification . Is there any solution to overcome this problem?. Please suggest me some solutions.


Answers:
author: Omar Herrera
body: Hi [@loganathan](/t5/user/viewprofilepage/user-id/1188814), if you are using some of the lastest version of bamboo with embeded docker you can use a public docker docker image for execute ansible if not you can check the definition of your custom command on the agent capabilities.


author: Jeyanthan I
body: Go to **Overview -\> Agent matrix**and check which capability is missing that prevents all the agents to not build your plan.

Then, install what is missing and [define that respective capability](https://confluence.atlassian.com/bamboo/configuring-capabilities-289277148.html).

Hope that helps.
unable to install bamboo on my aws ec2
Asked by srikanthsri490@gmail.com:

hi everyone

im trying to install bamboo on aws ec2 i was unable to do that.

when im trying to install it i set admin user details \& everything

after that it is showing that ur bamboo is finalising ur instance setup.

i tried lot of times installing it but im failing to install.

it is showing the exact error like Bamboo bootstrap failed: Your Bamboo instance could not start because Bamboo home directory does not match database.


Answers:
author: Craig Castle-Mead
body: Seems like it could be the same issue as <https://community.atlassian.com/t5/Bamboo-questions/Bamboo-home-directory-does-not-match-database/qaq-p/665187>

CCM
Solved: Bamboo doesn't support MySQL version 5.5.5-10.1.26-MariaDB-0+deb9u1
Asked by webeard:

Got this error while trying to install latest Bamboo:

2018-03-10 11:37:04,456 FATAL \[performSetupDatabaseConnectionBackgroundThread\] \[DefaultBootstrapManager\] Validation tests failed: \[Task 51111 failed with exception: Bamboo doesn't support MySQL version 5.5.5-10.1.26-MariaDB-0+deb9u1. Please check <https://confluence.atlassian.com/display/BAMBOO/Supported+Platforms> for more information.\]  
2018-03-10 11:37:04,456 FATAL \[performSetupDatabaseConnectionBackgroundThread\] \[DefaultBootstrapManager\] Validation tests failed: Your Bamboo instance could not start because health check failed. Contact Atlassian Support at <https://support.atlassian.com>  
2018-03-10 11:37:04,457 ERROR \[performSetupDatabaseConnectionBackgroundThread\] \[SetupUtilityBean\] Database configuration failed. com.atlassian.bamboo.upgrade.exception.ValidationException: Your Bamboo instance could not start because health check failed. Contact Atlassian Support at <https://support.atlassian.com>  

Is there any workaround for this issue? I have jira, crowd, bitbucket and confluence on the same server - all works fine but bamboo...


Answers:
author: Jeremy Owen
body: There is indeed a workaround but keep in mind MariaDB is unsupported. This means that while the MariaDB fork aims to maintain high compatibility with MySQL APIs, we don't test against it and compatibility isn't guaranteed. If it turns out MariaDB doesn't work in some scenarios, a bug fix isn't guaranteed.

Here's a list of supported platforms for the latest version of Bamboo:

* [Supported Platforms](https://confluence.atlassian.com/bamboo/supported-platforms-289276764.html)

MariaDB 5.5 is also based on MySQL 5.5 which we dropped support for in Bamboo 5.12+. It'll probably be fine, but it's a risk -- take precautionary backups just to be safe.

The validation check for MySQL can be disabled with the below JVM argument:

```
-Dbamboo.upgrade.fail.if.mysql.unsupported=false
```

I've included the documentation that explains configuring system properties / JVM arguments in Bamboo below:

* [Configuring your system properties](https://confluence.atlassian.com/bamboo/configuring-your-system-properties-289277345.html)

Hope this helps. :)


author: webeard
body: Thanks, this helps. The reason why I was looking for workaround is I have another version of bamboo on another server running on mariadb with no problem and eventually I would like to update that instance as well.


Tags: mariadb

mysql
Backlog Feature in JSM?
Asked by Andrea Ringgenberg:

Is there a way to enable the Backlog feature on JSM boards?


Answers:
author: Mikael Sandberg
body: Hi [@Andrea Ringgenberg](/t5/user/viewprofilepage/user-id/5441799),

Welcome to Atlassian Community!

No, backlog is not a feature that is available in JSM, the only thing you can enable is a Kanban board if you want to work that way instead of using the queues. This can be enabled if you go to Project settings \> Features and under the Feature lab section you should see Boards.


author: Joseph Chung Yin
body: [@Andrea Ringgenberg](/t5/user/viewprofilepage/user-id/5441799) -

Welcome to the community. I agreed with what [@Mikael Sandberg](/t5/user/viewprofilepage/user-id/853579) stated. By default, Kanban board/Scrum board concepts are for Jira Software Application project and not for JSM. However you can try out the feature against JSM if you want to.

Typically, JSM issues should be managed through Queue setup.

Hope this also helps.

Best, Joseph Chung Yin

Jira/JSM Functional Lead, Global Technology Applications Team

Viasat Inc.

comments: author: Andrea Ringgenberg
body: I made a suggestion to add the backlog feature.

If you have the board feature enabled, it's a nice feature to have the backlog as well since you can't move tickets from the board into the queue.


author: Mikael Sandberg
body: [@Andrea Ringgenberg](/t5/user/viewprofilepage/user-id/5441799) I have to disagree with you that you cannot move tickets from the board into a queue. Queues are just filters that you associate with a specific queue. The board would show all tickets that you have in the project, while a queue can be very specific, for example only show email requests.


Tags: backlog

cloud

jira-service-management

jira-service-management-cloud
New with JIRA and need help with Comments
Asked by nathan:

I was assigned to create a comment when someone write a comment on a ticket that begins with \*client, We want to have automation send the message over to the client. If it doesn't have \*client, Don't send it to client. I've been searching for a solution for this for days.


Answers:
author: Trudy Claspill
body: Hello [@nathan](/t5/user/viewprofilepage/user-id/5438044)

Can you confirm that this applies to a Jira Service Management project?

If so, a Comment that is entered manually with the Reply To Customer option

![Screenshot 2024-03-13 at 5.16.23?PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/311971i2BCB3439308D685F/image-size/large?v=v2&px=999 "Screenshot 2024-03-13 at 5.16.23?PM.png")

will automatically be sent to the customer(s) on the ticket based on the Customer Notifications you have configured for the project.

What problem are you trying to solve by using a keyword in the Comment and then an automation rule to send it?

comments: author: nathan
body: [@Trudy Claspill](/t5/user/viewprofilepage/user-id/3569011) yes ma'am trying to create an automation where customer can reply back in the comment inside Jira


author: Trudy Claspill
body: Customer can add comments to a Jira Service Management issue (to which they have access) through the Customer Portal or by replying to the emails they receive.

That native functionality manages sending emails to the customer when a comment is entered, and allowing the customer to feed a comment back to the issue by replying to the email or going to the Customer Portal.

I am still not clear on the problem you are trying to solve, nor why you think you need automation to manage this.


author: nathan
body: This was given to me as a task for comment automation, since im new with the system i tried to get all the necessary information possible and haven't found any article for it.


author: Trudy Claspill
body: I am a strong advocate for exploring what problem is trying to be solved and finding the best solution rather than implementing a customization just because somebody asks for it.

Have you reviewed the extensive documentation on the Automation Rules feature?

<https://support.atlassian.com/cloud-automation/docs/jira-cloud-automation/>


Tags: cloud

jira-service-management

jira-service-management-cloud
How to automate adding characters to a field in a ticket?
Asked by Joshua Young:

I am trying to set an automation for incoming tickets that will check a field and if it isnt formatted properly to automate a correction to the data in the field.

The field is an ssn field that allows users to enter the ssn as either 123456789 or 123-45-6789. And the preferred formatting is the latter.

i was able to get as far as when an issue is created, if the field does not contain "-" then edit field.

im stuck on how to retain the inputted data and add the "-" characters

any help is appreciated, thank you,


Answers:
author: Kalyan Sattaluri
body: Hello [@Joshua Young](/t5/user/viewprofilepage/user-id/5425887)

Probably many ways to do this, I could think of [substring](https://support.atlassian.com/cloud-automation/docs/jira-smart-values-text-fields/#substring-int-start--int-end-:~:text=substring(int).-,substring(int%20start%2C%20int%20end),-Returns%20the%20characters) function.

if my field was called "Text 1", then below will give me formatted string:

{{Text 1.substring(0,3)}}-{{Text 1.substring(3,5)}}-{{Text 1.substring(5,9)}}

In my test, I am checking if length is 9, then do this step:

![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/311898i1A10EF11A549E1D6/image-size/large?v=v2&px=999 "image.png")

comments: author: Joshua Young
body: thank you for your help, im going to try this in my environment


author: Kalyan Sattaluri
body: Please store your original SSN value in a variable, modify the variable as above and finally store that variable back in your field.


author: John Funk
body: Hi Joshua,

Are you using an Advanced Form? If so, you might be able to set the format there to enforce the entry.

comments: author: Joshua Young
body: im not using a form here, just a custom field on the ticket.


Tags: cloud

jira-service-management

jira-service-management-cloud
External Issue types
Asked by Meghan_Pereira:

Are service requests the only available issue types that can be used by external customer service teams?


Answers:
author: Joseph Chung Yin
body: [@Meghan_Pereira](/t5/user/viewprofilepage/user-id/5418178) -

Welcome to the community. Take a look at the following documentation on all the default issue types assoicated with a JSM project - "just look under the **Jira Service Management (service projects) issue types**section"

<https://confluence.atlassian.com/servicedeskcloud/issue-types-1097176086.html>

In addition, a typical ITSM project type will have the following issue types by default when it is provisioned. Of course, project admin/site admin can further customize the issue types configuration as needed.

![2024-03-13_10-48-38.png](https://community.atlassian.com/t5/image/serverpage/image-id/311883i73997F7D743305A8/image-size/large?v=v2&px=999 "2024-03-13_10-48-38.png")

Keep in mind, one will then create request types associated to those issue types to expose the request types in the portal UI. The issue type is not exposed to the users from the portal UI because they only interact with the project via the request types that you setup.

Hope this helps.

Best, Joseph Chung Yin

Jira/JSM Functional Lead, Global Technology Applications Team

Viasat Inc.


Tags: cloud

jira-service-management

jira-service-management-cloud
Automation comment after assign
Asked by Proshkin Kirill:

Hello Community.  
I use automation with assign and comment rule.  
when smb create a ticket on portal, based on one field value I choose an assignee for ticket and than want to leave a comment "{{issue.assignee.displayName}} has been assigned this ticket."

But when I create an issue, comment rule doesn't work correct, it shows me only "has been assigned this ticket." , without {{issue.assignee.displayName}} value.![Screenshot 2024-03-13 at 8.40.17?PM.png](/t5/image/serverpage/image-id/311870i0669AE127F3502E9/image-size/large?v=v2&px=999 "Screenshot 2024-03-13 at 8.40.17?PM.png")![Screenshot 2024-03-13 at 8.50.30?PM.png](/t5/image/serverpage/image-id/311869i30BC8496A975A8D2/image-size/large?v=v2&px=999 "Screenshot 2024-03-13 at 8.50.30?PM.png")

Also if I create another rule where I create a comment after trigger "Issue created" than create a comment, I have the same problem, no value for {{issue.assignee.displayName}}


Answers:
author: Kalyan Sattaluri
body: Hello [@Proshkin Kirill](/t5/user/viewprofilepage/user-id/4513567)

Please add a refetch action before your comment. In fact add 2.

Its a race condition where when comment action is being executed and system hasnt had time to update the DB yet of assignee name.

comments: author: Proshkin Kirill
body: [@Kalyan Sattaluri](/t5/user/viewprofilepage/user-id/5312306) Thank you so much!  
You are simply the best.   
Have a nice day!


author: Kalyan Sattaluri
body: Awesome, Please consider accepting answer so it benefits others in future.


author: Proshkin Kirill
body: [@Kalyan Sattaluri](/t5/user/viewprofilepage/user-id/5312306) Yes, sure.


Tags: automation

cloud

jira-cloud

jira-service-management

jira-service-management-cloud