youngmon/atlassian-qna huggingface dataset:
What Opsgenie integration suit Eventbridge input transformer
Asked by LtReborn:

Hi,

I would like to know what Opsgenie integration can be used with Eventbridge input transformer. Currently using incoming SNS integration, when the alert is triggered, nothing found in the Opsgenie description. I am a beginner of the integration, please let me know what else should I configure to make the alert message showed or should I change the integration?

Thank you


Answers:
author: Talar Pavlovic
body: Hi there,

Thanks for writing into Community, I'm Talar from the Atlassian Opsgenie support team, happy to help!

Opsgenie has quite a few unique integrations with Amazon/AWS products - it's always a great idea to double-check if it has one for the specific product you're integrating with.

And with EventBridge... you're in luck! Please take a look at for more information and setup steps: <https://support.atlassian.com/opsgenie/docs/integrate-opsgenie-with-amazon-eventbridge/>

I'd recommend removing the other integration you have, and using the specific "Amazon EventBridge" integration instead!

Kind regards,  
Talar
Team rules for notification type based on priority
Asked by Jeremy Harkins:

Is there a way to have a rule applied to a team where we can define what kind of notification occurs based on its priority?

For example, if we get a P3 alarm I don't want notification to go above an email (i.e. alert on phone app, SMS and/or phone call). Is this possible?


Answers:
author: John M
body: Hi [@Jeremy Harkins](/t5/user/viewprofilepage/user-id/2085316) ,

Users can specify the type of notifications they'll receive, based on alert attributes, by adding filters to their [notification rules](https://support.atlassian.com/opsgenie/docs/create-and-manage-notification-preferences/#Notification-Rules). Here is an example of a notification rule that will only send email alerts to users for P3 and below priority alerts:

![2023-09-18_21-27-13.png](https://community.atlassian.com/t5/image/serverpage/image-id/281367iFA344F0DC953944D/image-size/large?v=v2&px=999 "2023-09-18_21-27-13.png")

And here is an example of a notification rule that will send app, SMS and voice notifications only for P2 and P1 alerts:

![2023-09-18_21-28-50.png](https://community.atlassian.com/t5/image/serverpage/image-id/281368i4BF3D20BEC9623E6/image-size/large?v=v2&px=999 "2023-09-18_21-28-50.png")

While both of these options are configured on the user level, there is an option for [Enterprise accounts](https://www.atlassian.com/software/opsgenie/pricing) to set up role-based notifications using [central notification templates](https://support.atlassian.com/opsgenie/docs/create-a-central-notification-template/). In this setup, all users with a particular role will be assigned the preconfigured notification rules that align with their user role:

![2023-09-18_21-29-35.png](https://community.atlassian.com/t5/image/serverpage/image-id/281369i888D0795F72A1680/image-size/large?v=v2&px=999 "2023-09-18_21-29-35.png")
Cloudwatch Integration and SNS Question
Asked by Keith Cortesini:

If I have multiple Opsgenie teams, is it possible to integrate each one of them with seperate sns topics or are we restricted to a single sns topic?

Scenario: Cloudwatch alarms 1, 2, and 3 send to sns topic maintenance. Cloudwatch alarms 4, 5, and 6 send to sns topic management. If making the jump to Opsgenie, I'd like to create two OpsGenie teams, one to integrate with new sns topic Opsgenie_management and another to integrate with new sns topic Opsgenie_maintenance using the unique endpoint HTTPS subscriptions provided by OpsGenie. This seems like it would be much easier than creating a slew of routing rules for each team to receive notifications.

To sum things up, I want each opsgenie team to only receive cloudwatch alerts appropriate for their group.

Would this be possible? I'm currently trying out the Essentials tier trial.


Answers:
author: Talar Pavlovic
body: Hi there Keith,

Thanks for writing into Community, I'm Talar from the Atlassian Opsgenie support team, happy to help!

You most certainly can, yes!

I would recommend upgrading to the Standard trial to make full use of our bidirectional integration with AWS Cloudwatch though - to do this, click on your initials in the top-right corner, choose "Change trial plan" and check at least 1 of the boxes from the "Standard" functionality list then follow the rest of the prompts...

![Screenshot 2023-09-15 at 2.24.21 pm.png](https://community.atlassian.com/t5/image/serverpage/image-id/280791i1842073A7FB1EDAC/image-dimensions/155x202?v=v2 "Screenshot 2023-09-15 at 2.24.21 pm.png")![Screenshot 2023-09-15 at 2.26.20 pm.png](https://community.atlassian.com/t5/image/serverpage/image-id/280794i508969868142AEF0/image-dimensions/208x174?v=v2 "Screenshot 2023-09-15 at 2.26.20 pm.png")![Screenshot 2023-09-15 at 2.25.45 pm.png](https://community.atlassian.com/t5/image/serverpage/image-id/280793i8732009854B412C9/image-dimensions/223x184?v=v2 "Screenshot 2023-09-15 at 2.25.45 pm.png")

Essentially, this integration will work essentially how you described above. The broad steps are:

1. Create an SNS topic
2. Add the HTTPS subscription link from the integration as your endpoint
3. Create your alarms and add the notification actions to the SNS topic of your choice

Take a look here at our support documentation for more info and steps: <https://support.atlassian.com/opsgenie/docs/integrate-opsgenie-with-amazon-cloudwatch/>

You can add multiple of these integrations in your instance, all within 1 team, or in separates teams to suit your needs.

Hope this helps!

Regards,  
Talar


Tags: aws

cloud
Licence restricting to 10 plans
Asked by Jeff Bassington:

Hi,

We've recently upgraded and now getting an error message:

```
Could not create plan, plan limit has been reached.  You currently have 10 plans and your license allows only 10 plans
```

We only have 7 main plans and plan branches, but can't find any mention on the license restricting us to 10 plans - jobs but not plans.

If click on upgrade it states unlimited jobs - no mention on plans, and we have less than 10 jobs.

We've tried deleting plans but still same error.

Any help appreciated.

Regards,

Jeff


Answers:
author: Brant Schroeder
body: [@Jeff Bassington](/t5/user/viewprofilepage/user-id/636459) Sounds like bamboo is still recognizing the old licensing. I would submit a support issue to Atlassian and see if they have something you can run to fix it. <https://support.atlassian.com/contact/>

I would suggest checking the license and making sure it is your upgraded license.


Tags: server
Bamboo spec scan checks out entire repository causing out of disk space problem.
Asked by Sohini Sengupta:

We have Bamboo 8.2.5, our code repository is SVN version 1.10.2. We are trying to convert existing build plans to Bamboo specs. Some repositories we have grown huge over time with trunk, multiple branches and tags. Bamboo spec config created at the root level of the repository is trying to checkout the entire repository during config update of Bamboo spec. As a result Bamboo server is running out of disk space. Is there a way to confine this scan to trunk only?


Answers:
author: Eduardo Alvarenga
body: Hello [@Sohini Sengupta](/t5/user/viewprofilepage/user-id/5164188)

Bamboo will follow the SVN repository's configuration when checking it out, specifically if you set the Repository root URL outside on levels above the trunk.

If you want a specific trunk to be scanned by the Specs scan you will have to:

1. Modify the repository's root URL and point it to the specific trunk***or***
2. Create a new repository pointing the root URL to the trunk you want and enable Specs only on that repository. Then disable Specs on the repository with the large dataset

Cheers,

Eduardo Alvarenga  
Atlassian Support APAC

**--please don't forget to Accept the answer if the reply is helpful--**
How to pass a variable containing single backtick
Asked by Valiantsin Lutchanka:

Hello, I have to pass as a variable a password containing one single backtick (\`) in the middle. By passing it as a variable in my Bamboo plan and making export PASS=${bamboo.password} to utilize it in the job I face an error ''Syntax error: EOF in backquote substitution'' which comes from this backtick. I can not escape it because it is a password, and I don't know how to bypass this problem. Any help is appreciated.


Answers:
author: Valiantsin Lutchanka
body: Found the solution thanks to [@Daniel Santos](/t5/user/viewprofilepage/user-id/502125)

**How to avoid this?**

Use a different variable formating.

We have two ways to mention a variable:

1.

   ```
   ${bamboo.<variableName>}
   ```

   Evaluated before the build
2.

   ```
   $bamboo_<variableName>
   ```

   Available only when the bash script is run

comments: author: Eduardo Alvarenga
body: Hello [@Valiantsin Lutchanka](/t5/user/viewprofilepage/user-id/5082071)

Welcome to **Atlassian Community**!

The ***${variable}***format is an imposition of the shell and Bamboo should follow it to be allowed to use special characters.

This is also documented here:

* [Using variables in Bash](https://confluence.atlassian.com/bamboo/bamboo-variables-289277087.html#Bamboovariables-Usingvariablesinbash)

Thank you,

Eduardo Alvarenga  
Atlassian Support APAC

**--please don't forget to Accept the answer if the reply is helpful--**
Connecting Bamboo Server (local hosted) to a migrated BitBucket Cloud
Asked by Chris Mann:

Has anyone got any instructions on how to get this working?

We had a local bitbucket server with local bamboo connected to repositories.

However, we have migrated the bitbucket server to bitbucket cloud and are now struggling to get bamboo local to connect to the bitbucket cloud.

No accounts that allow us to pull git repo's seem to work in the bamboo environment.

Is there a special setting somewhere which is needed to give permission or does Bamboo just not connect at all? Or maybe there is a special account setup that I need for Bamboo to be allowed to connect?

Thanks for any help!


Answers:
author: Chris Mann
body: After several hours, it suddenly started working - accepted the app password for the account!

Maybe.... there is just a time delay when connecting to the cloud environment for these things...


Tags: bitbucket-cloud

server
How to prevent custom revision on bamboo
Asked by Elifcan ?akmak:

Hello,

I would like to prevent custom revision on Bamboo. I know that it's not really possible in the interface. So I was thinking about a solution like failing the build whenever it's a custom revision. But when I try to use *bamboo.planRepository.\<position\>.branchName*variable even though it's a custom revision with a different branch, I still see the default branch in the build plan from the repository setting.

So is there a way to prevent custom revisions? Or at least fail the build if it's a custom revision with a message?

Thanks in advance,

Best,

Elifcan


Answers:
author: Eduardo Alvarenga
body: Hello [@Elifcan ?akmak](/t5/user/viewprofilepage/user-id/5000880)

When running a Build with customized revisions via **Run** \>\> **Run Customized** \>\> **Revision** , Bamboo adds a "***customRevision*** " variable to the build, or "*${bamboo_customRevision}"* when used by a shell script.

You can add a Script task as the first task of a Plan and check if the variable exists and cancel the build accordingly.

You can also combine it with checking the "*planRepository.branch"* variable to look for non-Default Plan branches.

Kind regards,

Eduardo Alvarenga  
Atlassian Support APAC

**--please don't forget to Accept the answer if the reply is helpful--**
Bamboo integration with old Bitbucket
Asked by NPapanicolaou:

Hello!  

We want to upgrade our Bamboo Server to Bamboo DC.

Of course we wanted to have latest version (9.2) but it seems the integration with our version Bitbucket Server cannot work as our Bitbucket is too old (5.14)

We have planned to upgrade Bitbucket in a near future, so for now we thought that we could upgrade Bamboo to 8.2 because it seems to not mention that it will still work with our current version of Bitbucket.  

I couldn't find a clear Atlassian application matrix compatibilities with Bamboo DC 8.2.  

Can someone confirm that Bamboo DC 8.2 is compatible with Bitbucket 5.14?  

Thank you


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

Bitbucket 5.14 had its end-of-support date on 11 Sept 2020. Bamboo 7.1.2 was released on 01 Sept 2020 meaning that was the last release of Bamboo that had official compatibility with Bitbucket 5.14.

There is no way to guarantee any compatibility between both versions as we do not test release integration between product versions that had reached their end of life. It is very likely that Bitbucket 5.14 will work up to the latest Bamboo 8.2.x release. On the other hand, Bamboo 9.0.1 officially states Bitbucket earlier than 7.5 will not be supported.

We recommend you try that integration but at the same time have a backup plan to upgrade Bitbucket as an alternative solution.

Thank you,

Eduardo Alvarenga  
Atlassian Support APAC

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

comments: author: NPapanicolaou
body: Alright. Thank you for your answer.


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

Another question on this, even if we upgrade the Bitbucket Server version to the latest, the bamboo integration would still work if I'm not mistaken..  

I have seen this page : <https://confluence.atlassian.com/bitbucketserver/supported-platforms-776640981.html>  

If this isn't the case, I would need to upgrade both at the same time?  

Thank you


author: Eduardo Alvarenga
body: Hello [@NPapanicolaou](/t5/user/viewprofilepage/user-id/5161719),

Recent Bitbucket releases require at least Bamboo 5.6 or 7.0 an later to support it as an [integrated CI/CD](https://confluence.atlassian.com/bitbucketserver/integrated-ci-cd-1032257989.html). So **yes**, you will have to upgrade both products.

Eduardo Alvarenga  
Atlassian Support APAC

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


author: NPapanicolaou
body: Thank you again for the answer [@Eduardo Alvarenga](/t5/user/viewprofilepage/user-id/4365410) .
Bamboo stops executing a plan if one stage fails
Asked by Archie Sangole:

I have 4 stages in the bamboo plan.

Stage-1: checks out and downloads the binaries

Stage-2: has 2 jobs that run tests in parallel on 2 devices

Stage-3: has 2 jobs that also runs tests in parallel on 2 devices

Stage-4: collect all the results and publish them

If stage-2 fails because a device went down due to which tests were not executed - the bamboo job stops and does not go to stage-3.

How can I get around this?


Answers:
author: Charlie Misonne
body: Stages are meant to run only if the previous stage was successful.

If you do need to run a stage whatever the outcome of the other stages is you need to use a **final stage** . This has been described on [Using stages in a plan](https://confluence.atlassian.com/bamboo/using-stages-in-a-plan-289276862.html) too.

comments: author: Archie Sangole
body: In my case, stage-4 is the final stage where it collects all the results from stages 2 and 3. Stage-3 does not execute because stage-2 failed. I cannot combine stages-2 and 3 because I only have 2 devices. Stage-2 runs frontend tests on the 2 devices and stage-3 runs backend tests on the same 2 devices.

If I were to merge them then there is the risk of running frontend and backend tests on the same device in parallel - which will not work.

Any suggestions on how I can effectively reduce test run-time?


author: Charlie Misonne
body: ```
If stage-2 fails because a device went down due to which tests were not executed 
```

Can you make sure the device does not go down? If only 3 out of 4 test jobs were executed you will have to rerun them anyway I think?  
> Any suggestions on how I can effectively reduce test run-time?

I'm afraid this this exceed my knowledge. It will also depend on the type of tests and technology you are using.


author: Archie Sangole
body: Thank you for the suggestions Charlie. I am currently working on a solution to detect and power-up any of the device(s) that go down. In that way, we can power-up the device that went down and then re-run the plan.
Can I use JDK 17 on bamboo?
Asked by sta-szek:

Hi, it is not quite clear for me what this page exactly states: <https://confluence.atlassian.com/bamboo0802/supported-platforms-1103432705.html>

\> JVM implementations other than HotSpot are not supported, and JDKs from other vendors have not been tested.

Does it mean that Azul Zulu will throw exception UnsupportedJDK and build will fail or rather the docs says that it was not tested and we can still give a try and hopefuly (as JDK is backward compatible, mostly :) ) we should get no errors?

Asking the same question the other way around: is bamboo blocking other vedors by purpose?

\> You only need to run the agent and server using a supported JDK. Agents can build software with any JDK version.

<br />

What does it mean in my scenario, where i want to run JDK 17 on my builds. Is it conflicting? meaning i cannot use JDK 17 because bamboo does not support? or i can still use JDK 17? We are using bamboo elastic agent, configured by terraform scripts.

Does it mean that we have to have one of supported JDK set as JAVA_HOME on bamboo agent? or it means we can install JDK 17, set JAVA_HOME to 17, but we still need to have JDK 11 on agent? if so, how to configure it?


Answers:
author: Eduardo Alvarenga
body: Hello [@sta-szek](/t5/user/viewprofilepage/user-id/1191672)

The Bamboo application requires JDK 8 and 11 to work. Running Bamboo over JDK 17 is not tested and will produce unexpected events.

But, Bamboo can run any JDK version you want on their Builds, including JDK 17, 21, etc. For that, you need to [configure a new JDK capability](https://confluence.atlassian.com/bamboo/defining-a-new-jdk-capability-289277157.html) and use it on your builds.

You are also free to use a Script Task, load a new JAVA_HOME and run "java" manually.

Thank you,

Eduardo Alvarenga  
Atlassian Support APAC

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

comments: author: sta-szek
body: thanks [@Eduardo Alvarenga](/t5/user/viewprofilepage/user-id/4365410)

do you know when JDK 17 will be supported and we can configure it on agents?


author: Eduardo Alvarenga
body: Hello [@sta-szek](/t5/user/viewprofilepage/user-id/1191672),

Java 17 support as a running component is still being discussed internally and is likely to be included in a future Bamboo release (10 or later).

Cheers,

Eduardo Alvarenga  
Atlassian Support APAC

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


Tags: java
Is there a way to configure the server to send out a msg if a jar is not available for the build?
Asked by Steven Keck:

Obviously, you could just let the build fail and then the developer can look at those error messages and determine what jar is not available in Nexus But what if you want to preempt that. Say scan the pom and discover it is looking for a jar you don't want in your Nexus instance. Thus allowing you to send a message via that agent to the code owner indicating they need to upgrade, remove, whatever that jar from their project.

I know you can probably add a step to the agents to do this first, but what if you have 1,500 agents running? Is there an easier way to do this without requiring each agent to add it to their pipeline?


Answers:
author: Eduardo Alvarenga
body: Hello [@Steven Keck](/t5/user/viewprofilepage/user-id/5158703),

Welcome to **Atlassian Community!**

Troubleshooting the build is up to each development team's discretion. Bamboo can't preempt or make decisions based on particular build constraints.

In Bamboo, you can add a [notification](https://confluence.atlassian.com/bamboo/notifications-289276969.html) to each Plan that will notify the recipients about specific events, including failed builds. The notification templates [can be customised](https://confluence.atlassian.com/bamboo/modifying-notification-templates-289276982.html).

Thank you,

Eduardo Alvarenga  
Atlassian Support APAC

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

comments: author: Steven Keck
body: Which template would your commend I modify to guarantee that the plan's owners are notified if the build failed because of a jar not in the repo?
Schedule a build with Rest API
Asked by Elifcan ?akmak:

Hello all,

Is there a way to schedule a Bamboo build using Rest API? (Or other ways besides the interface schedule)

What I need is to start a build at a certain time and a certain day provided by me.

Thanks in advance,

Elifcan


Answers:
author: Eduardo Alvarenga
body: Hello [@Elifcan ?akmak](/t5/user/viewprofilepage/user-id/5000880)

There is no REST API endpoint that would allow you to book a build as the action queue action is immediate.

You can configure a [Cron-Based Scheduled trigger](https://confluence.atlassian.com/bamboo/cron-based-scheduling-289276907.html) using the UI, Java Specs or YAML Specs.

* [Bamboo YAML Specs](https://confluence.atlassian.com/bamboo/bamboo-yaml-specs-938844479.html)
* [Bamboo Java Specs](https://confluence.atlassian.com/bamboo/bamboo-java-specs-941616821.html)
* [Enabling repository-stored Bamboo Specs](https://confluence.atlassian.com/bamboo/enabling-repository-stored-bamboo-specs-938641941.html)

By using YAML Specs, the whole Plan configuration will have to be managed by YAML over Repository Stored Specs (RSS), including the Triggers. If using Java Specs, you can opt to use RSS just like YAML Specs or simply push the changes on demand to your plan using Maven.

Cheers,

Eduardo Alvarenga  
Atlassian Support APAC

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

comments: author: Elifcan ?akmak
body: Hi [@Eduardo Alvarenga](/t5/user/viewprofilepage/user-id/4365410)

Thanks for your answer. Can you give me an example of how I can use the queue action of Rest API with an environment variable?

I want to run a customized build with overriding a variable with Rest API. It says in the documentation "Additional variables could be passed to this method either as form encoded POST payload or query parameters" But I don't see an example in the documentation.

Thanks in advance,

Elifcan


author: Eduardo Alvarenga
body: Hello [@Elifcan ?akmak](/t5/user/viewprofilepage/user-id/5000880)

**Try this:**

* \<Bamboo_URL\>/rest/api/latest/queue/{projectKey}-{buildKey}?bamboo.variable.myVariable=valueForMyVariable

**It is documented on this page:**

* <https://developer.atlassian.com/server/bamboo/rest/api-group-api/#api-api-latest-queue-projectkey-buildkey-post>

> Additional variables could be passed to this method either as form encoded POST payload or query parameters. PLEASE note: Query parameters are more important - override those stored in form payload. Variables defined in Bamboo as global variables or plan variables MUST be prefixed with bamboo.variable ie. `bamboo.variable.myVariable=valueForMyVariable`. When global or plan variables would be passed to this method, will override default values for variables.

Kind regards,

Eduardo Alvarenga  
Atlassian Support APAC

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