youngmon/atlassian-qna huggingface dataset:
Silence subsequent notifications in Opsgenie app
Asked by Gabriel Valladolid:

Hello,

We are using Opsgenie and Opsgenie App as alerting system, however some users are complaining about having several notifications for every comment or update in the alerts when using the Opsgenie app. Mainly because some of them need to stay alert overnight, but not attending every notification for comments/updates.  

Is there a way to silence the subsequent notifications for every update or comment for an alert?

Hope you can help.   
Thanks in advance.


Answers:
author: Shashwat Khare
body: Hello [@Gabriel Valladolid](/t5/user/viewprofilepage/user-id/5412738) ,  

Yes, they're getting these notifications because of the Add note notification rule configured for their individual profiles, which is sending out the notification every time someone is adding a note to an existing alert.  

To disable these notifications, they can navigate to **Settings \> Notifications \> Notification rule \> Add note** and then delete this notification rule by clicking on the Delete (trash) icon as below:  
![Screenshot 2024-01-25 at 1.44.52?PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/302429i71222BD7854C4F88/image-size/large?v=v2&px=999 "Screenshot 2024-01-25 at 1.44.52?PM.png")  

<br />

Please refer to the below document link on how to manage notification preferences in Opsgenie:  
<https://support.atlassian.com/opsgenie/docs/create-and-manage-notification-preferences/>  

I hope this helps resolve your concern, please check and let us know. Happy to help! :)   

Best,  
Shashwat


Tags: cloud
Not able to create alert for user type. However I am able to create alert for teams.
Asked by anshu singh:

I am trying to create alert for user type but I am getting below error.  
{  
"code": 40301,  
"message": "To perform this action, use an API key from an API integration.",  
"took": 0,  
"requestId": "da0e219a-53d9-42bd-add8-xxx"  
}  
Even though I am the org admin but still can't create the alert for a specific user.  
Rest Api Which I am using  
<https://api.opsgenie.com/v2/alerts> (US based API)  
Method: Post  
However the get method is working with the rest api and also with the same api key but post method is not working.  
Please advise.  
Python code:  

```
import requests

def opsGenieAlertCreation():

? ? authorization_token: str = 'GenieKey {0}'.format("xxxxxx-xxxx")

? ? headers = {

     'Content-Type': 'application/json',

     'Authorization': authorization_token

? ? }

? ? #incidentEscaltionOpsgenieTeamId = ops_genie_teamid

? ? incidentEscaltionOpsgeniePriority = "P1"

? ? api_url = 'https://api.opsgenie.com/v2/alerts'

? ? alert_data = {

? ? ? ? "message": "New incident was created",

? ? ? ? "responders": [

? ? ? ? ? ? {

? ? ? ? ? ? ? ? "type": "user",

? ? ? ? ? ? ? ? "id": "xxx@gmail.com"

? ? ? ? ? ? }

? ? ? ? ],

? ? ? ? "description": "test description",

? ? ? ? "priority": incidentEscaltionOpsgeniePriority,

? ? ? ? "tags": ["Incident", "Monitoring"]

? ? }

? ??

? ? response = requests.post(api_url, json=alert_data, headers=headers)

? ??

#calling above function

opsGenieAlertCreation()
```


Answers:
author: Alan Violada
body: Hey Anshu, Alan from the Opsgenie Support team here.

In this case, you want to make sure that the API key you are using is from an API integration - All instances have the "Default API" integration, but you can also create your own:

[Create an API integration](https://support.atlassian.com/opsgenie/docs/create-a-default-api-integration/)

Cheers,

Alan
Outgoing automation rules for email integration
Asked by David Duong:

Hello.  

We use Opsgenie to catch all alerts from many integration types where I see I can create outgoing automation rules but I do not see such option for Email integration. We are receiving manual reports by email about outages or issues in the systems. Reporters send email to our specified address and automation in Opsgenie creates alerts from it.   

I was searching for option to have an automation which would send the reporter an email upon acknowledgement of the alert in Opsgenie. I would like to inform them in this email that we have received their request and we are working on it.   

Also, later on, I would like to send another automated and templated email to the reporter based on adding a tag to the alert, while adding that tag creates an issue in a Jira board. This integration and tag automation is already in place and working, so I am interested only in the email to the reporter part.  

Thank you for any advice you can give me. Have a nice day.


Answers:
author: Brennan Kiely
body: Hi David,

Right now, Opsgenie can only send emails to users in Opsgenie in the form of alert notifications, or to stakeholders for incidents. We have an open feature request for an auto-reply for the email integration: <https://jira.atlassian.com/browse/OPSGENIE-1160>


author: Oleksandr Tolochko
body: Hi David,

As an option, you can build something with an Opsgenie Edge Connector.


Tags: email
Rebuilding a VM running bamboo agent and retaining UUID
Asked by darren brewerton:

Hi,

Is it possible to restore a bamboo agent configuration and avoid having to manually approve a new UUID if the hosting virtual machine is re-created?

I have bamboo agents running as a systemd services. They are registered running OK after the initial manual agent approval.

On occasion I need to destroy and recreate the VMs with new base images.

I have to reinstall the bamboo agent at the point the VM is created. The systemd service generates a new UUID and requests that the agent is approved.

If I then restore the original xml configuration file with the original Agent ID and UUID and restart the service the bamboo agent service doesn't read the config file.

Each time the service is stopped/started another temp-UUID is generated for registration.

Many thanks in advance.


Answers:
author: Eduardo Alvarenga
body: Hello [@darren brewerton](/t5/user/viewprofilepage/user-id/5276368),

Welcome to **Atlassian Community**!

If your Agent is launched via its startup script via **\<bamboo-agent-home\>/bin/bamboo-agent.sh** , it will load the **\<bamboo-agent-home\>/bamboo-agent.cfg.xml** properties file and connect using the provided UUID settings when connecting to the Server. If you still see an approval message, that means Bamboo is not loading or is replacing the file.

Is it possible that you are running the Installer jar package and expecting it to use the restored configuration file? If that's the case, you will have to:

* Install the Agent using the provider Jar package
* Stop the installer after it is "waiting for approval" message
* Replace the configuration files
* Start the Agent via **\<bamboo-agent-home\>/bin/bamboo-agent.sh start**

It would be best to consider installing the Agent by adding the extra ***install*** flag. That will instruct the installer to only place the files and not start the service. That allows you to replace the configuration files before starting the service for the first time. Check this documentation for more details:

* [Additional remote agent options](https://confluence.atlassian.com/bamboo/additional-remote-agent-options-436044733.html) -- Expand ***Running the remote Agent with different start-up commands* for more details**

Here's a KB that shows how a Bamboo service needs to be configured via Systemd:

* [Running Bamboo as a Linux service](https://confluence.atlassian.com/bamboo/running-bamboo-as-a-linux-service-416056046.html) -- Make sure to expand the *Systemd Service Configuration*

Sincerely,

Eduardo Alvarenga  
Atlassian Support APAC

**--please don't forget to Accept the answer if the reply is helpful--**

comments: author: darren brewerton
body: Much appreciated. I shall try your suggestions.
How can we add single daily trigger to only a single plan branch among multiple plan branches
Asked by PRASHANT GANJI:

currently I have 10+ plan branches and set develop branch as default branch for my plan. I am trying to add trigger for default branch only but the trigger is getting applied across all plan branches  


Answers:
author: Shashank Kumar
body: Hello Prashant,

Welcome to Atlassian Community.

This design is by default, plan branch will by default inherit the trigger of the main branch.

To change the Trigger for a particular plan branch, you can follow the below steps

1. Open the Plan branch which you want to modify and click on **ConfIgure branch,**see below

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

2. You can click on Trigger Type and change it for only this particular plan branch

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

Let me know if this helps!

Regards,

Shashank Kumar

**\*\*please don't forget to Accept the answer if your query was answered\*\***
Bamboo plan spec ssh key configration
Asked by Ibrahim Buamod:

I having an issue in configuration the ssh keys  
as this post but the solution didn't work with me   
<https://community.atlassian.com/t5/Bamboo-questions/Bamboo-YAML-spec-not-working-when-I-use-with-plan-repo/qaq-p/2004010>

```
java.lang.IllegalArgumentException: Cannot read keypair, passphrase wasn't setjava.lang.RuntimeException: java.lang.IllegalArgumentException: Cannot read keypair, passphrase wasn't set

Caused by: java.lang.IllegalArgumentException: The supplied key is not in a supported format or needs a passphrase to be decrypted


```

my workflow:

I clone a yaml file and modify it to work for another project, I didn't find a proper way on how to handle the ssh keys   

- repo-name:  
type: bitbucket-server  
server: Stash  
project: project  
slug: repo-name  
clone-url: ssh://git@stash.company.local:7999/project/repo-name.git  
public-key: ssh rsa generated key (imported to the project ssh key )  
private-key: encrypted private key  

I read that the passphrase is only for git repos


Answers:
author: Eduardo Alvarenga
body: Hello [@Ibrahim Buamod](/t5/user/viewprofilepage/user-id/5100905)

The SSH public key portion of your key needs to be added to your repository settings on your Bitbucket server, while the SSH private key needs to be encrypted before being added to the YAML specs file.

To encrypt a string, run it through [Bamboo's Specs Encryption tool](https://confluence.atlassian.com/bamboo/bamboo-specs-encryption-970268127.html).

The SSH private key can't be password protected.

Thank you,

Eduardo Alvarenga  
Atlassian Support APAC

**--please don't forget to Accept the answer if the reply is helpful--**


author: Ibrahim Buamod
body: .
SCP-Task alsways uses default Port 22
Asked by Til Georg Pockrandt:

I have an SCP-Task set up through the Web-GUI. I have specified the Port under advanced options. The deployment-log also says:

```
Connection to ... on port: <specified port>
```

But my Firewall shows no request on the specified port, just port 22.


Answers:
author: Eduardo Alvarenga
body: Hello [@Til Georg Pockrandt](/t5/user/viewprofilepage/user-id/5275220)

Check your Bamboo system user for any **\~/.ssh/config** files that would contain special options for your designated host.

The SSHJ Library used by Bamboo loads such ssh config files when initialising and may interfere with its normal operation.

Cheers,

Eduardo Alvarenga  
Atlassian Support APAC

**--please don't forget to Accept the answer if the reply is helpful--**
it appears the only difference between server and datacentre software versions is the licence ?
Asked by vaughan.dickson:

Not actual directly linked to Jira but rather Bamboo.

We are currently looking in testing a move from server 9.2 to DC on premises what other changes (Software) are required accept for the actual DC licensing.


Answers:
author: Eduardo Alvarenga
body: Hello [@vaughan.dickson](/t5/user/viewprofilepage/user-id/5070199)

Check the following page to understand the different features between Server and Data Center Bamboo versions.

* [Bamboo Server and Data Center feature comparison](https://confluence.atlassian.com/bamboo/bamboo-server-and-data-center-feature-comparison-1063170546.html)

It is also important to understand the differences between a Server and a Data Center licences when they expire.

* [What happens when a Bamboo license expires](https://confluence.atlassian.com/bamkb/what-happens-when-a-bamboo-license-expires-1114804458.html)

Best regards,

Eduardo Alvarenga  
Atlassian Support APAC

**--please don't forget to Accept the answer if the reply is helpful--**


Tags: bamboo-development

cloud

jira-software

jira-software-cloud
Your Bamboo instance could not start because health check failed. Contact Atlassian Support at https
Asked by Waqas Subhani:

Currently Getting Error "Your Bamboo instance could not start because health check failed. Contact Atlassian Support at <https://support.atlassian.com>"

But in Logs, its mentioned below the error:

2023-07-20 16:53:45,613 FATAL \[main\] \[DefaultBootstrapManager\] Validation tests failed: \[Task 51102 failed:, Server key hasn't been initialized or is invalid\]  
2023-07-20 16:53:45,666 FATAL \[main\] \[DefaultBootstrapManager\] Validation tests failed: Your Bamboo instance could not start because health check failed. Contact Atlassian Support at <https://support.atlassian.com>.

Could you please provide the solution?


Answers:
author: Eduardo Alvarenga
body: Hello [@Waqas Subhani](/t5/user/viewprofilepage/user-id/4458831)

The **\<bamboo-home\>/bamboo.cfg.xml** file is missing or has an invalid **serverKey** property. Are you sure you are pointing your configuration to the right location?

The **serverKey** and **serverId** properties are generated during the first Bamboo installation and are used, among other things, to identify the Bamboo server when interacting with Application Links interfaces.

Fix those two properties in your Bamboo configuration file and restart the process.

Check the following link if you would like to have new Ids:

* [How to change the server ID for Bamboo](https://confluence.atlassian.com/bamkb/how-to-change-the-server-id-for-bamboo-454361547.html)

Cheers,

Eduardo Alvarenga  
Atlassian Support APAC

**--please don't forget to Accept the answer if the reply is helpful--**


Tags: server
How to determine if a test has been quarantined in an ongoing build ?
Asked by batturu:

We would like to know if there's a way to use the bamboo api to get whether a test has been quarantined in an ongoing build. We tried to use the api - "/{build_key}-latest.json?expand=testResults.quarantinedTests but this gives the quarantined tests for the last completed build. Is there an api we can use get the quarantined tests for an ongoing build ?


Answers:
author: Shashank Kumar
body: Hello Batturu,

Welcome to Atlassian community support.
> Is there an api we can use get the quarantined tests for an ongoing build ?

Can you please clarify if your question is for ongoing running builds in Bamboo which is still in progress on the agent?

Regards,

Shashank Kumar

comments: author: batturu
body: yes that's correct


author: Shashank Kumar
body: Hello Batturu,

Unless the Build completes, it's status is not updated in the DB, hence if you use any API, it will consider the last completed as latest.

You'll be able to see these details in the build logs for the ongoing builds

Regards,

Shashank Kumar
Enable/Disable a stage through api call in bamboo
Asked by Madhu:

Hi Team,

Can you please help me to get rest api to enable/disable a stages through api call in bamboo. Please find the attached screenshot.

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

Thanks \& Regards,

Madhu Balineni


Answers:
author: Eduardo Alvarenga
body: Hello [@Madhu](/t5/user/viewprofilepage/user-id/5179315)

You are actually looking for a way to control a Job status, not a Stage. Stages can't be disabled by design.

Unfortunately, no REST API endpoint would allow you to manage a Plan structure that way. For that, Bamboo uses Plan Specs to manage a Plan structure.

If you want to automate that, please [export the Plan as Java Specs](https://confluence.atlassian.com/bamboo/exporting-existing-plan-configurations-to-bamboo-specs-894743917.html) and use Maven to upload a new Plan with a disabled Job using Java Specs; you can also use [Repository Stored Specs](https://confluence.atlassian.com/bamboo/enabling-repository-stored-bamboo-specs-938641941.html).

Use the tutorial below to create your first Bamboo Specs Maven project. When creating the Plan file, fill it with the content from the exported Plan you have done before, as instructed in the previous paragraph.

* [Tutorial: Create a simple plan with Bamboo Java Specs](https://confluence.atlassian.com/bamboo/tutorial-create-a-simple-plan-with-bamboo-java-specs-894743911.html)

Then on your Specs code, modify the Job status to ***enabled(false)*** and publish it back to Bamboo.

```
.stages(new Stage("Default Stage")
        .jobs(new Job("Build",
                new BambooKey("BLD1"))
                .enabled(false)
```

Sincerely,

Eduardo Alvarenga  
Atlassian Support APAC

**--please don't forget to Accept the answer if the reply is helpful--**
Disable GUI editing of Bamboo Build and Deploy plans (w/o Specs)
Asked by Sean Conlon:

We build a lot of Bamboo Build plans and Deploy plans via Java API calls. These do NOT use any type of Specs, so by default the plans are editable for myself and the other admins, even though we are NOT included in the Build \& Deploy permissions.

So, we need a way to disable editing of both Build \& Deploy plans as though they were Spec plans, even though they are NOT spec plans.

Is this possible? If so, how can we achieve this?


Answers:
author: Eduardo Alvarenga
body: Hello [@Sean Conlon](/t5/user/viewprofilepage/user-id/723600)

Unfortunately, that feature is not supported by Bamboo yet. I have created a feature request to address that requirement. I recommend you follow and vote for it so our developers can have numbers to justify their decision to implement it. You are also free to add a public comment explaining your individual requirements.

* [Add "UI Write Lock" option for Plan and Deployment configuration in Bamboo for Java Specs](https://jira.atlassian.com/browse/BAM-22421)

Thank you,

Eduardo Alvarenga  
Atlassian Support APAC

**--please don't forget to Accept the answer if the reply is helpful--**


Tags: server
How to clean files generated after bamboo build?
Asked by David Sun:

At present, the disk has alerted, mainly bamboo files..


Answers:
author: Eduardo Alvarenga
body: Hello [@David Sun](/t5/user/viewprofilepage/user-id/5247764)

Please check the following KB article for tips and tricks on how to clean up your disk usage in Bamboo:

* [Disk space hotspots and cleanup best practices in Bamboo](https://confluence.atlassian.com/bamkb/disk-space-hotspots-and-cleanup-best-practices-in-bamboo-1079351744.html)

Cheers,

Eduardo Alvarenga  
Atlassian Support APAC

**--please don't forget to Accept the answer if the reply is helpful--**
how can we update plan in bamboo to checkout code inside server
Asked by Pramodh:

As of now when we are doing the task checkout it is cloning the repository to agent, can we make it to checkout inside the server?  
If so how is it possible?


Answers:
author: Eduardo Alvarenga
body: Hello [@Pramodh](/t5/user/viewprofilepage/user-id/5265195)

You can use [Local Agents](https://confluence.atlassian.com/bamboo/creating-a-local-agent-289277175.html) to run the Job from the Bamboo Server. Local Agents are deprecated and will be removed in a future Bamboo release. Use Local Agents with care as they share the same access levels as the main application, and also CPU and memory resources from the same JVM that runs Bamboo.

To understand the difference between Remote and Local Agents, check the following link:

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

Cheers,

Eduardo Alvarenga  
Atlassian Support APAC

**--please don't forget to Accept the answer if the reply is helpful--**
How can we make bamboo run build on Browserstack
Asked by Pramodh:

When I'm checking currently it is showing only 2 options to run Agent/Docker environment.   

Note: Browserstack plugin is installed on bamboo and I'm able to add credentials


Answers:
author: Eduardo Alvarenga
body: Hello [@Pramodh](/t5/user/viewprofilepage/user-id/5265195)

Welcome to **Atlassian Community**!

BrowserStack is an external app and is supported by a third-party company.

I found this guide that should walk you through the installation and configuration process.

* [Integrate BrowserStack Automate with Bamboo](https://www.browserstack.com/docs/automate/selenium/bamboo)

Sincerely,

Eduardo Alvarenga  
Atlassian Support APAC

**--please don't forget to Accept the answer if the reply is helpful--**

comments: author: Pramodh
body: Hello [@Eduardo Alvarenga](/t5/user/viewprofilepage/user-id/4365410)

Thanks for your response, I'm able to install the plugin as suggested in above link, however when trying to do build it is not showing me option to select browser stack to run test cases, it is showing me to select either Agent Environment/ Docker Environment  

<br />

Regards,  
Reddy Pramodh A


author: Pramodh
body: Hello [@Eduardo Alvarenga](/t5/user/viewprofilepage/user-id/4365410)

Thanks for your response, I'm able to install the plugin as suggested in above link, however when trying to do build it is not showing me option to select browserstack to run test cases, it is showing me to select either Agent Environment/ Docker Environment  

<br />

Regards,  
Reddy Pramodh A
How to configure branch plans with Bitbucket Cloud repository
Asked by Przemyslaw Kalucki:

I have yaml bamboo specs in Bitbucket Cloud repository and it does not seem to pick up changes to specs in different branches than master and there is no option to pick a branch.  
![Screenshot 2023-07-11 at 10.08.58.png](/t5/image/serverpage/image-id/267939iA787038AF807400F/image-size/large?v=v2&px=999 "Screenshot 2023-07-11 at 10.08.58.png")  

To compare this with a yaml bamboo specs that are kept in Bitbucket DataCenter repository, there is an option to pick branch in Specs status and branch plans correctly pick up specs changes in all branches:  
![Screenshot 2023-07-11 at 10.10.58.png](/t5/image/serverpage/image-id/267941iD6782EE10D2E9E59/image-size/large?v=v2&px=999 "Screenshot 2023-07-11 at 10.10.58.png")  

What am I missing here?


Answers:
author: Eduardo Alvarenga
body: Hey [@Przemyslaw Kalucki](/t5/user/viewprofilepage/user-id/5265066)

Welcome to **Atlassian Community**!

Full support for Bitbucket Cloud repositories has been [added on Bamboo 9.0](https://confluence.atlassian.com/bambooreleases/bamboo-9-0-release-notes-1189793867.html#Bamboo9.0releasenotes-bitbucketImprovedintegrationwithBitbucketCloud). What version of Bamboo are you running?

Make sure that the repository type is set as "[Bitbucket Cloud](https://confluence.atlassian.com/bamboo/bitbucket-cloud-289277000.html)" and not only "Git".

Here's my Bamboo 9.3 instance with support for branches:

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

Thank you,

Eduardo Alvarenga  
Atlassian Support APAC

**--please don't forget to Accept the answer if the reply is helpful--**


Tags: server