youngmon/atlassian-qna huggingface dataset:
setting up task with boot:test
Asked by Johan Hedman:

Hi,

Is it possible to set up a task in bamboo boost:test that is run on an other server than the server where bamboo is installed?

Like a task scheduler like LSF?

Regards

Johan Hedman


Answers:
author: Sergey Podobry _Stellarity Software_
body: Hi Johan,

The easy way is to use a remote agent for that.

The hard way is to copy binaries to a remote server, run them (for example via ssh), copy logs back to the main server and feed them to the [boost:test](https://marketplace.atlassian.com/apps/1212285/boost-test-task) task.

Hope this helps!

comments: author: Johan Hedman
body: Hi Sergey,

Thanks for your answer. When you write remote agent. How do I set up a remote agent?

Regards  
Johan Hedman


author: Sergey Podobry _Stellarity Software_
body: Here is the documentation: <https://confluence.atlassian.com/bamboo/bamboo-remote-agent-installation-guide-289276832.html>

Note: remote agents may require more expensive license.


author: Johan Hedman
body: Thanks! I'll try that.
Recommendations For OS for Bamboo server
Asked by Avinash Sunnasy:

Hi there,  

We currently use Jenkins we would like to try Bamboo.   
We need many agents either local or remote that use Windows.   

What OS do I need to use for the server?  

In Jenkins, we have a Linux master with many windows based slaves.  

I don't need the server to be Linux, but I don't know if I can create a Windows local agents on a Linux server.   

Any ideas?  

Thanks,  

Avinash.


Answers:
author: Gabriel Ribeiro
body: Hi Avinash,

Although you shouldn't notice any difference in basic Bamboo operations if you decide to install it on Windows, I personally recommend you to install the server on a Linux machine. You will not be able to set local windows agents but this condition will be easily "workaroundable" using remote agents.

thanks

comments: author: Avinash Sunnasy
body: Hi Gabriel,  

Thanks for your response. I need to learn a bit more about remote agents due to pricing. Can you explain how a remote agent compares to a Jenkins slave?  

Let's say I have a Windows VM with 16 cores and 16GB ram. In Jenkins, this is one slave. It runs one instance of a JVM per slave.   

With regards to Bamboo, is this considered one remote agent?   

Thanks,  

Avinash.


author: Gabriel Ribeiro
body: Hi Avinash,

The idea is basically the same, remote agents, unlike the local ones, run in a separate JVM and use JMS to communicate with Bamboo server.

In the example you mentioned (Windows VM with 16 cores and 16GB ram) you can run one or multiple remote agents, the only limitations will be hardware capacity and your license tier.

You'll find more detailed information in the documentation below:

* [Difference between Local agents and Remote Agents](https://confluence.atlassian.com/bamkb/difference-between-local-agents-and-remote-agents-457703602.html)

If you have any further questions, please let us know.

<br />

thanks


author: Avinash Sunnasy
body: Hi Gabriel,   

I think we'll go with the Windows server because of cost reasons. It would be great if there was a pricing option that included 1 free remote agent and a lightweight (non-builder) server.  

Thanks,  

Avinash.
Automated (unattended) Bamboo Server install
Asked by kai-shelde:

Hi Community,

Is it possible to do a complete unattended Bamboo Server (master) install via script (only)?

From start to running instance (without using a previous install instance) ?

There's a lot of software available where this is possible (Splunk, Jenkins etc). But as far as I can make out from available literature - the first local admin credentials always need to be created via UI for Bamboo.

Any thoughts anyone ??

thanks  
Regards

Kai


Answers:
author: Gabriel Ribeiro
body: Hello Kai,

Unfortunately Bamboo doesn't have anything embedded for that so I started experimenting some options a while ago using Python + Mechanize, the script basically needs a fresh Bamboo installation (for my tests I used a Docker container) and uses web scrapping to automate the UI part. I committed what I have so far to a public repo, it needs some polishing but you can use as a reference:

**Docker image used:**

* <https://hub.docker.com/r/dchevell/bamboo/>

```
docker run -d \
 --name bamboo \
 -v ~/dockerdata/bamboo:/var/atlassian/application-data/bamboo \
 -h bamboo \
 -p 8085:8085 \
 -p 54663:54663 \
 dchevell/bamboo
```

ps. I'm using docker on macOS, it might be needed to adjust the volume biding option.

**Link to my project:**

* <https://bitbucket.org/ribeirogm/unattendedinstallation_bamboo/>

It would be great if you could contribute to the project or create a new one and share with us.

thanks


author: Jeyanthan I
body: Added to my colleague's update, if you have hosted Bamboo on [AWS](https://aws.amazon.com/), you may also use our [Bamboo Server EC2 Wizard](https://confluence.atlassian.com/bamboo/running-bamboo-server-in-aws-858705568.html). This will get your Bamboo server up and running in AWS in less than 10 minutes. You can get this jar file and automate the entire configuration.

In short, to run the wizard, you will just have to execute:

    java -jar bamboo-server-ec2-wizard.jar

Hope that helps.


Tags: automation
Unable to find executable at python. Will try to run it anyway.
Asked by Samuel Chow:

I wrote a inline python script using the script task in bamboo. The job will be run on windows so the script has "#!python" as the first line so windows knows its a python script since there isn't an interpreter option.  

The script task executes fine and runs all the inline script but outputs the error "Unable to find executable at python. Will try to run it anyway."

<br />

How do I get rid of the error?


Answers:
author: Foong
body: Instead of having only "#!python", set the full path to the python.exe file like the following:

```
#!C:\Users\Administrator\AppData\Local\Programs\Python\Python37-32\python.exe
```

comments: author: Samuel Chow
body: Definitely an option to get rid of the error. I was hoping to get an answer to why Bamboo can't resolve the python via system variables? This case relies on applications having the same install path.


author: Foong
body: According to this [documentation](http://www.uniformserver.com/ZeroXI_documentation/perl_unix_windows_shebang.html), this is how shebang works. Bamboo is just running the command in the machine so the error message is thrown by the machine.

As a test, try saving the commands in a file and run the file manually inside the Windows machine through the Command Prompt.


author: Vineesh
body: I have same issue in Mac, added the full python path , '/usr/bin/python' still same issue exists
How can bamboo re-use build results?
Asked by nbelakovski:

So I have the following scenario:

-I have a successful build on master on commit A

-I have a successful build on branch develop on commit B, who's parent is A

-I merge B into A using a fastforward commit, so that master now points to B

With my plan branches setup on Bamboo, it will trigger a new build for B even though it has already built it. Can bamboo be configured to re-use the build result for a commit with an existing build?


Answers:
author: Gabriel Ribeiro
body: Hi Nickolai,

I'm afraid not. From my perspective, one of the main benefits of continuous integration is to have a different build for each commit allowing you to have less back-tracking when you try to find the change responsible for a red build.

In the proposed approach, what could guarantee that if A and B are passing, then AB will also pass?

Even if there was a way, I wouldn't do that.

Don't you agree?

thanks.

comments: author: nbelakovski
body: I agree with you 100% that each commit should have its own build, but in the current system, as I described it in my note, there are actually two builds for one commit, which could be different if, for example, the current timestamp is used in the build process, or if the build accesses information in database which has changed between runs.

In the scenario I described, there is no AB commit. Master gets fastforwarded onto B, which already passed, no merge commit is created, and so I would think that the Bamboo plan's master branch would get auto-magically updated to have a build number that points to the successful B build.

Does that make sense?
Python "logging.info" is outputted as an error in build output
Asked by Samuel Chow:

I have python scripts that print outputs using "logging.info" command. These are labelled as errors in build output. This is not an error. why does bamboo label as such?


Answers:
author: Gabriel Ribeiro
body: Hi Samuel,

Would you mind sharing with us details of your code implementation? This doesn't seem to be the expected behavior.

thanks

comments: author: Samuel Chow
body: ```
import logging
logging.basicConfig(level=logging.INFO, format='%(asctime)-15s - %(levelno)s - %(message)s')
logging.info("Starting Work at: {0}".format(path))
logging.info("Finished Work with outputs at:".format(output_path))
```

This is my output in bamboo and is highlighted in red in logs:

2018-07-18 11:20:50,804 - 20 - Starting Work at: C:\\work  
2018-07-18 11:20:50,835 - 20 - Finished Work with outputs at: C:\\output  

It gets populated in the error summary.


author: ksielewi
body: [@Samuel Chow](/t5/user/viewprofilepage/user-id/1601497) [@Gabriel Ribeiro](/t5/user/viewprofilepage/user-id/352687)

Hi Guys, is there any follow up here? I am experiencing the same error and I am looking for a solution because it looks like it's an issue with Bamboo.

Cheers, Krzysztof


author: Ian Norton
body: Hiya, bamboo thinks anything that gets printed to stderr is an "error" so appears in the error red text.  

By default, python's logging module prints messages to stderr.  

You can change that to stdout by using \`stream=sys.stdout\` as a parameter to \`logging.BasicConfig()\`
Why aren't my builds kicking off as soon as a commit is pushed up to bitbucket?
Asked by Jeremy Stafford:

So I set up a webhook in my repo on bitbucket cloud and pushed a commit. I can see in bitbucket that the webhook request went out and got a 204 back, but bamboo isn't doing anything. I have the trigger setup and the ip 104.192.142.0/24 is whitelisted in the trigger setup.... but no build. What gives?


Answers:
author: Gabriel Ribeiro
body: Hi Jeremy,

Are you sure that you're using the correct Bamboo API endpoint as per "[How to trigger a Bamboo build from Bitbucket Cloud using a Webhook](https://confluence.atlassian.com/bamkb/how-to-trigger-a-bamboo-build-from-bitbucket-cloud-using-a-webhook-872271665.html)" documentation?

You can also check in bamboo logs if the server is receiving the request from Bitbucket and what exactly is happening right after that. The REST endpoint mentioned above triggers a change detection so if the server is not able to get repository's delta, no build will be triggered.

thanks

comments: author: Jeremy Stafford
body: You know what, I don't remember where I got the webhook that I was using, but it was different from the one in the link. I swear it was Bamboo that gave it to me at some point. At any rate, I used the one in the link you pasted and it seems to work. Thanks!


author: Jeremy Stafford
body: On that note, shouldn't Bamboo offer some way to create those webhooks for you when linking the repo? AppVeyor took care of this for us, and this is going to get a bit irritating since we're going to have a large number of repos going up for our microservice architecture.


author: Gabriel Ribeiro
body: Hi Jeremy,

I'm glad my comment was useful.

Regarding your note, Bamboo 6.5 already use a similar approach when setting up a [repository-stored Specs](https://confluence.atlassian.com/bamboo/enabling-repository-stored-bamboo-specs-938641941.html) if you're not using a Bitbucket server repository but, I agree with you, I think it would be very convenient if we also have this for change detection.

I took the liberty of raising an improvement request for this, please find it below:

* [BAM-19997 - Bamboo should suggest which API endpoint should be used to trigger change detection using Remote trigger](https://jira.atlassian.com/browse/BAM-19997)

I encourage you to vote on and watch the Improvement Request to increase its visibility and ensure you're kept in the loop with any future updates.

Also, to help our community, please don't forget to accept the answer if you feel that it was useful.

thanks.


author: bogdancraciun
body: We have a similar issue, and after doing some investigation, it seems that they changed something on Bitbucket, because requests now seem to be made through a proxy. If I manually call Bamboo (make HTTP request) everything works, but not via Bitbucket.
Where are the scripts stored?
Asked by Bam Boo:

We have many developers using the bamboo server, some of them are abusing it with scripts. Where are the scripts stored on the bamboo server? I need to get the inline and the regular ones too. Any ideas?


Answers:
author: Gabriel Ribeiro
body: Hi There,

I'm sure you'll find this information in the **build_definition_data** column from the **build_definition** table in Bamboo database. Some XML parsing skills might be needed to extract the values.

thanks

comments: author: Bam Boo
body: Thank you, indeed I found the scripts there, right in the build_definition table. I guess it's time to learn some XQuery then.


author: Gabriel Ribeiro
body: Hi Bam Boo,

Great! If you don't mind, it would be great if you share with us the query as soon as you have it. I'm sure it will bring value to the Bamboo community.

thanks
Agent ticket view layout
Asked by Alex Recinos:

Hello everyone,

I'm seeking guidance if anyone can please assist with my issue. How can I change my agent ticket view layout to look like this:

![Screenshot 2024-04-04 082213.png](/t5/image/serverpage/image-id/316304i189BBB1F6D934B66/image-size/large?v=v2&px=999 "Screenshot 2024-04-04 082213.png")

Currently our ticket view looks like this:

![Screenshot 2024-04-04 082234.png](/t5/image/serverpage/image-id/316310iA43188CA020F7370/image-size/large?v=v2&px=999 "Screenshot 2024-04-04 082234.png")

I feel the current layout is too busy and doesn't show key details. Ideally getting it as close as possible to the layout in the 1st image would be ideal. I tried to follow the steps in this link to no avail [Review and modify the issue view layout \| Jira Service Management Cloud \| Atlassian Support](https://support.atlassian.com/jira-service-management-cloud/docs/review-and-modify-the-agent-view-layout-configuration/)

Thanks in advance!


Answers:
author: Jack Brickey
body: Hi [@Alex Recinos](/t5/user/viewprofilepage/user-id/5291962) , I'm not sure you can TBH. Your first image obviously is from server, and I suspect you have migrated from server to cloud and experiencing migration shock. ?

so there's nothing you can do to the left side bar to simplify it. To the overall layout is set and cannot be re-shaped. The only thing you can change is which fields appear on the screen, which can be done using the configure button and the layout option. Based on the links you provided. I expect you are already aware of this. I wish I had a better answer for you, but I don't.

comments: author: Alex Recinos
body: Thanks Jack,

This is our first go, we've never had an on prem instance but I was used to the view in the initial pic from previous jobs - They may have been server based now that you mention it. Thanks for the tip! We'll tweak it as best we can to make it come as close as possible.


Tags: cloud

jira

jira-cloud
Assign / Monitor The status of componment services?
Asked by Rob:

Hi Guy's,  

Please forgive the nube(ish) nature of the question, but I'm new to JSM and the searches aren't finding much of use.  

Within an ITSM project I define services and components (Though there doesn't seem to be a correlation between them), unfortunately I don't yet have an asset list defined.  

What I'd like to be able to do, is monitor and then present, to normal non-ICT users a simple dashboard of current service status. So that if email is down (RED) then they can see that we're already aware and don't need to raise a ticket.  

Question:  
Is it possible to assign a status to a service that can be fed into a dashboard?  

Thanks in advance for your help :)

Rob.


Answers:
author: Rob
body: I'm Guessing the silence means no :(

It's Odd

<br />

Being able to tie an incident to a service, and use the services build in hierarchy to automate alerts seems like a useful functionality.  

Is there any-chance it's on the roadmap?


Tags: cloud

jira-service-management

jira-service-management-cloud
Restrict view for specific user group
Asked by Nataliia Kekosh:

Hi!  

I'm looking for a way to limit the view of tickets for our external consultants. They should be able to only see tickets assigned to their group in Jira.

I was trying to use the Issue security scheme but was only able to limit the view based on the Current assignee. It's not quite what I need because they should be able to see all tickets in their group and be able to collaborate on them and not only see ones assigned to an individual.  

Is there a way to achieve it?


Answers:
author: Dirk Ronsmans
body: Hi [@Nataliia Kekosh](/t5/user/viewprofilepage/user-id/5468937) ,

Issue level security should be the way to go. If you create a security level you can specify who can see the ticket and that is not limited to the current Assignee.

<https://support.atlassian.com/jira-cloud-administration/docs/configure-issue-security-schemes/>

A security level's members may consist of:

* Individual users

* Groups

* Project roles

* Issue roles such as 'Reporter', 'Project Lead', and 'Current Assignee'

* 'Anyone' (eg. to allow anonymous access)

* A (multi-)user or (multi-)group picker custom field.

You will need to add a custom field to the issue which contains the group that can view it or add some kind of attribute on the issue which will result in applying the correct level.

However if it has to be dynamic with the same level, normally a custom (multi-)group field on the issue is the way to go. That way when the field is adjusted the visibility also changes.

comments: author: Nataliia Kekosh
body: Hi [@Dirk Ronsmans](/t5/user/viewprofilepage/user-id/124602) !  

Thank you for the quick response!

So do I understand correctly?  

I need 2 security levels:

1. Internal employees (default) - can view all tickets in the project.

2. External consultants - can only view tickets assigned to their group.

How do I apply the security level 2 when the issue is assigned to that external team? I have a field called Department and I was thinking of using automation to apply the security level 2 when a certain department is selected. But for some reason, I cannot select level 2, only level 1.  

Do you have any suggestions on how to set it up properly?  

Thanks in advance!


Tags: cloud

jira-service-management

jira-service-management-cloud
Get the URL for a linked issue when it has been created
Asked by Ste404:

Hi,

I have an automation that creates a linked JWM issue when a ticket has been escalated.  
On the escalation screen a group is selected and an email sent to them.

What I am trying to do is find the URL for the linked issue to put into the email.  

I can pull out the Key of the linked issues using the {{issue.issuelinks}} value and I can even find the API URL {{issue.issuelinks.outwardIssue.self}} but not something clickable for an agent to leverage from an email to open the issue.   

Is this possible?


Answers:
author: Gikku
body: [@Ste404](/t5/user/viewprofilepage/user-id/4984517) If you are creating the issue using Automation rule and wants to include the link to the same within the rule, you can use {{createdIssue.url}} which should give you a full URL to access the issue for an agent.


Tags: cloud

jira-service-management

jira-service-management-cloud
Copy content from one jira field and paste that information into reply to customer comment
Asked by Deb Keene:

We have a ticket that is linked to another project. One ticket has a custom field. We want the information in the custom field (of project 1) to be automatically copied into the linked ticket (in project 2) and that information to go in the reply to customer comment.

can that be done?


Answers:
author: John Funk
body: Hi Deb,

You can create an automation rule based on a Field Value Changed trigger for the custom field.

Add any Conditions if you need to.

Then add a Branch for Linked Issues - identify the issue link type if you need to.

Then under the Branch add an action for Edit Issue - choose the custom field.

Then click the 3 dots to the right of the box of the custom field and choose Copy

Then Click on Copy Current text and in the pop up, select Trigger issue instead of Current issue.

Then add an action for Comment Issue. Populate as desired.

Save and update!

comments: author: Deb Keene
body: How do I make sure that the data in the custom field I am copying from project 1- gets copied into the reply to customer section on project 2 and is not copied into the add internal note section on project 2?


author: John Funk
body: I believe the default for the Comment action will put it in the Customer section. But give it a try to see.


author: Deb Keene
body: The comment defaults to "add Internal note" section and not "reply to customer" section. How do I get the comment to go to the "reply to customer" section?


author: John Funk
body: When you use the Comment on Issue action, you should be able to identify the Visibility.

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


author: Deb Keene
body: thank you!


author: John Funk
body: You are welcome!


Tags: cloud

jira-cloud

jira-service-management

jira-service-management-cloud
Jira Automation Azure Runbooks connection asks for permissions every time and never logs in
Asked by Toby Hessellund:

I'm trying to start a Runbook in Azure within Jira Automation and every single time it asks to login to azure and when I do I get the following pop-up. Even though I have approved it many times, it still pops up like it never took hold.

![7RLTpS8IT0.png](/t5/image/serverpage/image-id/316187i813CB9FDA244F20C/image-dimensions/299x403?v=v2 "7RLTpS8IT0.png")

Each time, I'll get the following.

![msedge_Cqmom5vYAy.png](/t5/image/serverpage/image-id/316186i7B512EEC1B704175/image-dimensions/382x280?v=v2 "msedge_Cqmom5vYAy.png")

the Service Account I'm using has admin access to the project where the automation is running and is a Automation Job Operator on the Azure side.   

Let me know what I seem to be missing here or what other information I can share.


Answers:
author: Toby Hessellund
body: Does anyone know what the minimum role is needed in Azure for this connection to work?


author: Toby Hessellund
body: I've discovered this seems to be related to the level of permissions on the Azure side. The service account has job operator permissions and I tested it with an admin account and it connected successfully. I'll have to see what the minimum is needed to connect.


Tags: azure

cloud

jira-service-management

jira-service-management-cloud