youngmon/atlassian-qna huggingface dataset:
1:1 or 1:n Integration?
Asked by Ersin Eromay:

We're having a discussion with a customer.  
It's about the integration of AWS, Promotheus and co.  

The customer has several Promotheus systems.  

Does the customer on the OpsGenie side only need one integration for all Promotheus systems or does he need several OpsGenie integrations?  
Can the same API key provided by OpsGenie be used for all Promotheus systems?  
So is only a 1:1 relationship possible or also a 1:n relationship?   

In my opinion a 1: n is possible. Unfortunately, the customer sees it differently.

If a 1: n relationship is possible, are there disadvantages?

Would you prefer a separate integration for each Prometheus?


Answers:
author: Nick H
body: Hi [@Ersin Eromay](/t5/user/viewprofilepage/user-id/1216409) ,

It would be possible to use the same API key for a Prometheus / Alert Manager setup, but realistically it might make sense to use a separate integration / API key for both.

Going this route would help more with troubleshooting purposes. You'd have a better idea which Alert Manager setup is triggering Opsgenie - vs. all that would be pointing to the same API key / integration.

Hope that makes sense, but let us know if you have any additional questions.

-Nick


Tags: cloud
Automatically create incident from Alert in opsgenie
Asked by serge calderara:

Dear all,

I have setup in opsgenie an Email integration in order to test the automatic creation of incident.

When an email came in, it properly create an alert, but what I try to find out is how to automatically create an Incident when an alert contains a specific string and how to map Alert field with incident fields.

My JSM is a Premium subscription, but i could not find the menu to configure Incident Rules ?

Thanks for help

regards


Answers:
author: Nick H
body: Hi [@serge calderara](/t5/user/viewprofilepage/user-id/3385932) ,

You'll want to use incident rules to automatically create incidents based off an alert's specific string. But I *believe* these are only included with JSM Enterprise.

<https://support.atlassian.com/opsgenie/docs/automatically-create-an-incident-via-incident-rules/>

Incident rules can be configured under the team receiving the alerts \>\> the specific Service \>\> Incident Rules tab:

![comminc`.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/142803i3366D4FC114ADB9D/image-size/large?v=v2&px=999 "comminc`.jpg")

comments: author: serge calderara
body: [@Nick H](/t5/user/viewprofilepage/user-id/2540930) ,

I find it out, it was hidden inside the service integration configuration under Rules Tab, was looking for a button Incident Rules

regards


author: Nick H
body: I apologize, and agree the wording from plan-to-plan (JSM \<\< \>\> OG) is a bit confusing. I'll try to have engineering clear this up.

JSM Premium maps to OG Standard. Our Incident Rule doc shows a warning at the top of the page mentioning Incident Rules are only included on the Enterprise plan. Which is what I was basing my *belief*off of:

![comminc2.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/142816i72F064237C2F51C2/image-size/large?v=v2&px=999 "comminc2.jpg")

But the JSM pricing page mentions automation of incidents is included with JSM Premium:

![comminc3.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/142818i12F177F02FCEB20C/image-size/large?v=v2&px=999 "comminc3.jpg")

So can you trying creating a service under a team, then add an incident rule? And please confirm whether or not you are able to add a rule successfully.

Thanks!


author: serge calderara
body: I can see the Incident Rules under my services, it was hidden in a tab...

Yes licence and Plan are really horrible to understand.

why not simply map OPSG plan to Jira plan, sometime simpler thing goes smoother and avoid customer frustration

regards


author: serge calderara
body: hello [@Nick H](/t5/user/viewprofilepage/user-id/2540930) , can you help on the 2 post below, seems you are the only one answering here, this opgenie community is not so responsive in my mind

<https://community.atlassian.com/t5/Opsgenie-questions/Alert-count-behavior-in-Opsgenie-not-clear/qaq-p/1730960>

<https://community.atlassian.com/t5/Opsgenie-questions/Incident-and-Responder-Alert-process-is-not-so-clear/qaq-p/1732128>

Thanks for help

regards
On-call schedules
Asked by Zaid Darras:

Hello,  

I need a way to show the other teams our on-call schedule  

Thanks,

Zaid Darras  
Systems Administrator


Answers:
author: Nick H
body: Hi [@Zaid Darras](/t5/user/viewprofilepage/user-id/3823180) ,

Any user should be able to navigate into the Who Is On-Call tab and review the schedules there - whether it's their own, or another team's schedule:

![schedcomm1.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/142215i896D2EF6006DF1B5/image-size/large?v=v2&px=999 "schedcomm1.jpg")

Were you looking for something else other than this??

comments: author: Zaid Darras
body: Hi [@Nick H](/t5/user/viewprofilepage/user-id/2540930) ,

<br />

They**not have access to Opsgenie** , just have access to Jira to know the user in the shift/ on-call schedule to contact him  

or a away to show them the on-call schedule?  

possible?


author: Samir
body: Hi [@Zaid Darras](/t5/user/viewprofilepage/user-id/3823180) ,

You can export Opsgenie on-call schedules as an .ics file, or you can subscribe to them via webcal link. So you could subscribe via Google Calendar, outlook ,etc. so that non-Opsgenie users can see the schedule details.

<https://support.atlassian.com/opsgenie/docs/view-your-on-call-schedule/#How-to-export-other-on-call-schedules>

Hope this helps!

Thanks,

Samir


author: Nick H
body: Within a Jira project's On-call tab, Jira users will only have visibility into the schedules of the teams they are also members of.

There isn't a way for them to see other schedules besides logging into Opsgenie \>\> navigating to the Who is on-call tab - which is only possible if they are Opsgenie users.

The only other option would be exporting the schedule(s), and adding it to your users' calendars:

![schedcomm2.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/142218i49C19B2658D3FFF2/image-size/large?v=v2&px=999 "schedcomm2.jpg")


author: Zaid Darras
body: [@Nick H](/t5/user/viewprofilepage/user-id/2540930)   

If I have user X wants to show the on call schedule, he need to have access to Opsgenie as member of this team. the other option we need to exporting the schedule to our users calendars  

just these the available options till now?

<br />

<br />


author: Nick H
body: Yes that's correct - these are the only two options currently.

User X would need to be an Opsgenie user, as well listed as a member of the team to view the schedules:

![schedcomm3.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/142226i7442A72D376E925E/image-size/large?v=v2&px=999 "schedcomm3.jpg")

Or exporting the schedule to your users calendars.


author: Zaid Darras
body: [@Nick H](/t5/user/viewprofilepage/user-id/2540930) Thanks a lot for your help!


Tags: cloud

on-call

schedule
Can Opsgenie Close Azure Monitoring Alerts
Asked by shaun99:

Hello,

We setup an Opsgenie integration with MS Azure Monitoring.

The Alert from MS Azure Monitoring to Opsgenie is working as per the setup through the docs.

[https://docs.microsoft.com/en-us/azure/service-health/service-health-alert-webhook-opsgenie#:\~:text=Navigate%20to%20the%20Integrations%20section,%2C%20Enabled%2C%20and%20Suppress%20Notifications](https://docs.microsoft.com/en-us/azure/service-health/service-health-alert-webhook-opsgenie#:~:text=Navigate%20to%20the%20Integrations%20section,%2C%20Enabled%2C%20and%20Suppress%20Notifications)

<https://docs.opsgenie.com/v1.0/docs/microsoft-azure-service-health-integration>

However we notice when we close the alert in Opsgenie the Azure Alert is still open.

When we close an alert in Opsgenie, is there a call back to Azure to close the Azure Alert ?  
if yes, anyone know which doc can help us setup this functionality.

thanks,


Answers:
author: Nick H
body: Hi [@shaun99](/t5/user/viewprofilepage/user-id/4370957) ,

The Azure Service Health integration does not have any outgoing flow - meaning requests made on the Opsgenie alert will not reflect in Azure.

At this time the integration can only ingest requests from Azure.

-Nick

comments: author: shaun99
body: hi Nick,

thanks for the info and feedback.

MS team mentioned in their forum they have an REST API that allows an external service to POST back to them changing the state of the Azure Alert to close.

API MS team provided

POST [https://management.azure.com/{scope}/providers/Microsoft.AlertsManagement/alerts/{alertId}/changestate?api-version=2019-03-01\&newState={newState](https://management.azure.com/{scope}/providers/Microsoft.AlertsManagement/alerts/{alertId}/changestate?api-version=2019-03-01&newState={newState)}

I notice in the Opsgenie Azure Integration section there is a configuration for close. please see attachment.

is there a way to configure the above API in the Opsgenie close section of the integration ? reason being in the integration guide, Azure post of the requirement parameters to Opsgenie.

thanks,![integration.JPG](https://community.atlassian.com/t5/image/serverpage/image-id/141815i774F0A502E9651F9/image-size/large?v=v2&px=999 "integration.JPG")


author: Nick H
body: Some of out integrations, like Jira, have built-in mappable outgoing actions. Meaning actions can be taken on the Opsgenie alert - such as close - and reflect on the Jira issue so change the status, add a comment, etc.

Unfortunately Azure does not have this prebuilt functionality. An alternative that *might*work is our webhook integration. This can be used to POST back to an endpoint when an action is taken on an Opsgenie alert:

<https://support.atlassian.com/opsgenie/docs/integrate-opsgenie-with-webhook/>

But I can't for certain say this will work since I don't think we've come across this with other customers.

Let us know if you have any additional questions, issues, etc.,


Tags: azure

cloud
Community question unanswered
Asked by software_compliance:

Can you tell me how I get a question I've asked in the community escalated? No answers on a simple question for months now.


Answers:
author: Nic Brough -Adaptavist-
body: You don't. There is no "escalation", the community gives answers when it can.

comments: author: software_compliance
body: OK that's fine, but how do I resolve Atlassian documentation broken links which is preventing me rolling out Bamboo properly if everyone just ignores my query?


author: Nic Brough -Adaptavist-
body: Documentation updates are usually requested via a support issue, if you raise it over at <https://support.atlassian.com/contact>


author: software_compliance
body: Hi Nic, I've been through this and it leads back to this community once I type the SEN number in.


author: Nic Brough -Adaptavist-
body: So you have only a $10 licence?


author: software_compliance
body: Not sure Nic, I've just installed what I've been given. Could be the customer is just trying it out, but I still want to make it run from a Windows service. Surely the type of purchase shouldn't affect the way you report genuine website faults.


author: Nic Brough -Adaptavist-
body: Atlassian do not support "starter" licences, I assume because every support call costs money to deal with and you'd burn that $10 (let alone the free ones) very quickly. It makes economic sense to do that, but does leave the low-use systems in a bit of a bind when it comes to support.

The community does what it can, because we're volunteers and don't care what you've paid. I've sent this over to Atlassian as one of the ones that falls into the "community support but we can't because it needs Atlassian" loop.


author: software_compliance
body: Thanks for this Nic. Are you likely to be kept informed by them or are they going to try to contact me directly?
What is good way to Clean Disk Space Except Global Expiry
Asked by KA:

We are using Bamboo and Build directory eating a lot of space, is there a way to clean up in bamboo.

Global Expiry does do cleaning for the Artifacts and Project Directory is there any ways to do clean up for Bamboo build directory.

We are using bamboo version 6.5


Answers:
author: Guillermo Rodil
body: Theres a way to clean up in bamboo. Check the Bamboo Version 6.5 FAQ in the web. Depends on your system.
Integrate Bamboo (Version 7.1.2) with SonarQube (Developer EditionVersion 8.4.2)
Asked by Naveen Rajan:

Hello there,

I am new to Bamboo. I need to integrate Bamboo with SonarQube. I was surprised that SonarQube plugins were not packaged by default. Currently, the machine with Bamboo does not have Net access \& I am unable to access the Marketplace.

Please advise me on my options:1)Any free plugins 2)I want to avoid the SonarQube CLI/Scripting integration approach

Thanks!

NR


Answers:
author: Charlie Misonne
body: Well, there is only 1 SonarQube plugin for Bamboo and it is not free: [https://marketplace.atlassian.com/apps/1212756/sonar-for-bamboo?hosting=server\&tab=overview](https://marketplace.atlassian.com/apps/1212756/sonar-for-bamboo?hosting=server&tab=overview)

I am using this one in java development. It's a good plugin but you achieve almost the same by just using the proper arguments in your build commands (maven, gradle, ...)

Are you programming in Java? I can show you an example of the plain maven parameters.

The advantage of this plugin is you do not have to think about those parameters yourself because you can just (un)check the options you want.  
It also provides a link to the SonarQube analysis on the build summary page after each build.

In short: normally you don't need a plugin to execute a sonarqube analysis via Bamboo. You can pass the parameters in your build command.


Tags: sonarqube
Get the Bamboo Notifications in slack
Asked by Krishna Bharadwaj:

Hi All,

Hope you are doing good !!!

My requirement is to get the notifications related to bamboo build and deploy jobs in the slack when the jobs are success/failed.

I was able to find some third party plugins for the same but would like to know if there are any plugins by bamboo/slack or any recommended plugins.

In case there are no plugins what would be the ideal solution.

Thanks,

Krishna Bharadwaj


Answers:
author: Jimmy Seddon
body: Hi [@Krishna Bharadwaj](/t5/user/viewprofilepage/user-id/4109277),

Welcome to the community!

I know it's one of the third party apps, but we have been using:   
[https://marketplace.atlassian.com/apps/1213289/slack-notifications-for-bamboo?hosting=server\&tab=overview](https://marketplace.atlassian.com/apps/1213289/slack-notifications-for-bamboo?hosting=server&tab=overview)

For a couple of years now and it works really well for us.

I hope that helps!

-Jimmy
MSBuild PreBuild event failing to copy file
Asked by Phil Carter:

We have a few projects in our VS 2019 Solution that take their config files from other projects and then perform various config transforms on them.

In the PreBuild event I have the following,

```
xcopy "$(SolutionDir)$(TargetName)\web.config" "$(ProjectDir)" /Y /F
```

When Bamboo runs the MSBuild command it fails with,

```
error MSB3073: The command "xcopy "..\Project1\web.config" "D:\bamboo\build-dir\50954242\WS-PROD2-COMPILERELEASE\SolutionFolder\Project2\" /Y /F" exited with code 4. 
```

If I copy the command from the error message and execute it at a command prompt it completes successfully.

Hoping someone has some suggestions on resolving this issue.

Cheers

Phil


Answers:
author: Phil Carter
body: Ok, after beating my head around sideways with this, I couldn't getting anything to work from within Bamboo. All the different permutations of "copy" commands worked when executed from the command prompt. They even worked when I ran MSBuild from the command prompt.

Ended up re-wiring this as a BeforeBuild Target in the project file.

```
<Target Name="BeforeBuild">
<ItemGroup>
<ConfigToBeCopied Include="$(SolutionDir)$(TargetName)\web.config" />
</ItemGroup>
<Copy SourceFiles="@(ConfigToBeCopied)" DestinationFolder="$(ProjectDir)" />
</Target>
```

With that setup and the PreBuild event removed everything built successfully within Bamboo.

Cheers

Phil

comments: author: Jimmy Seddon
body: Hey Phil,

I'm sorry I wasn't able to help you solve what you were trying to do, but I'm glad you found another way to get the results you were looking for.

-Jimmy


author: Jimmy Seddon
body: Hi [@Phil Carter](/t5/user/viewprofilepage/user-id/4029704),

Looking up what exit code 4 is, I think it's complaining about the path you are passing to the command.

When a Bamboo agent runs a build plan it puts everything into a working directory and runs command from the root of the working directory, unless you specify a sub-directory in the GUI build plan task editor.

I would make sure that that path you are trying to execute the command from is the same as the directory structure from within the agent working directory.

I hope that helps!

-Jimmy

comments: author: Phil Carter
body: Thanks for the reply Jimmy

When I run the copy from the command prompt, I'm running it from the Bamboo build directory and it works without any issues.


author: Jimmy Seddon
body: That's a really weird one. Looking at some of the solutions posted here:

<https://stackoverflow.com/questions/5626557/what-is-going-wrong-when-visual-studio-tells-me-xcopy-exited-with-code-4>

One of the solutions is talking about the dependency order where something is trying to write to the directory at the same time that you are trying to copy the files that could cause this type of issue.

I'm pulling at strings here but it might be something to check out?

I hope that helps!

-Jimmy


Tags: ms-build
Windows 10 Agent Environment Variables Problem
Asked by William Bergen:

I'm having some issues with environment variables not being properly set when executing a plan that runs on a Windows 10 agent. Specifically, when I remote into the agent and test the build scripts I've set up, the environment variables don't match the results of an echo when running my plan.

I'm using cmake and cl.exe to build our project. For the compilation step, I've configured a "script task" that runs with cmd.exe. At the beginning of the script, I initialize the command line build environment by calling vcvars64.bat. This initializes a number of environment variables that are necessary for the build to succeed (%PATH%, %LIB%, %LIBPATH%, %INCLUDE% to name a few). My issue is that the environment variables don't match the results of my remote session when I call vcvars64.bat from the script task (confirmed via echo). Does anyone have any ideas as to why I am seeing this inconsistency? I would prefer to not have to manually set these environment variables as the vcvars64.bat script is supposed to automatically set them.

NOTE: I'm running the bamboo remote agent as a service, and I've ensured that it is running as the "bamboo" user as opposed to the "system" user.


Answers:
author: Marcin Gardias
body: Interactive and non-interactive user sessions in Windows do not behave the same way when it comes to environment variables. You need to adjust your script accordingly.

comments: author: William Bergen
body: For now, I'm setting the environment variables in my task to match the environment variables for my interactive session. Would you happen to know if there's any way to have the non-interactive session behave similarly to the interactive session?
Accessing shared credentials API
Asked by Yahav Itzhak:

I'm a maintainer of a Bamboo plugin.

I want to expose to the users the shared credentials in the plugin's jobs. Users will define "Username and password" shared credentials in the global Bamboo configuration as usual and they will have an option to use in in the plugin's jobs.

How can I access defined shared credentials using [TaskContext](https://docs.atlassian.com/atlassian-bamboo/6.6.2/com/atlassian/bamboo/task/TaskContext.html) or some other API?

Thanks!


Answers:
author: Alexey Chystoprudov
body: For reference you can look at implementation details of Bamboo Docker task at <https://bitbucket.org/atlassian/bamboo-docker-plugin/src/master/>

General idea:

use com.atlassian.bamboo.credentials.CredentialsAccessor to list shared credentials of given type

Then keep its id at task config

When job is sent to agent you need to provide RuntimeTaskContext which translates shared credential id to username\\password which your task will use at runtime
Would a deployment release be created if the build plan failed?
Asked by Tan Yi Long:

Hi there!

I would like to know if a deployment release would be created if the build plan failed at any stage. It would also be great if you could point me to any documentation/resource that provides this information

Thank you! :)


Answers:
author: Charlie Misonne
body: When your deployment plan is configured to start after a build (via a trigger) it will only be initiated for successful builds.

See [Triggers for deployment environments](https://confluence.atlassian.com/bamboo/triggers-for-deployment-environments-342098622.html)
Bamboo bootstrap failed: Your Bamboo instance could not start because health check failed
Asked by Rick Morayniss:

I am trying to start Bamboo, and I get the following error:

"Bamboo bootstrap failed: Your Bamboo instance could not start because health check failed. Contact Atlassian Support at [https://support.atlassian.com](https://support.atlassian.com/)."

There is also no exception.

I had a 5.x version so I thought the issue might be I needed to upgrade, so I upgraded to 7.1, no difference.


Answers:
author: Gonchik Tsymzhitov
body: Hi!

Did you reinstalled from scratch ?

comments: author: Rick Morayniss
body: Yes I did, as a result, I **LOST** all of my previous work


author: Gonchik Tsymzhitov
body: so bad :(


Tags: server
My bamboo installation is still not working.
Asked by Efua Larbi:

I've set my JAVA_HOME, set bamboo home and changed the ports in the conf/server.xml to 8085 by uncommenting the connectors. Restarted bamboo in /bin and it's still not working. Please help with assistance as this is currently delaying our Project. Thank you.


Answers:
author: Charlie Misonne
body: What exactly is not working? Do you see an error or something useful in the logs?

Please be aware this is not Atlassian support. If you need to create a support ticket go to <https://support.atlassian.com/>