youngmon/atlassian-qna huggingface dataset:
/genie whoisoncall - why is the ordering non-deterministic (or missing rotation labels)
Asked by Kevin Durdle:

Recently ran into an unexpected source of confusion with the opsgenie slackbot. Specifically, querying whoisoncall returns the participants in a non-deterministic order, and without the rotation label.

Our setup is fairly simple. We have a single organization, with a single oncall schedule, that includes two rotations (Primary, Secondary).

I see the following via slack, where engineer-1 is primary, and engineer-2 is secondary. This is good.

```
/genie whoisoncall
Only visible to you #(me)
Oncall Schedules:
my_organization_schedule Participants: engineer-1, engineer-2
```

However, a peer of mine has observed the following

```
/genie whoisoncall
Only visible to you #(peer)
Oncall Schedules:
my_organization_schedule Participants: engineer-2, engineer-1
```

This feels incorrect - either they should be ordered based on rotation ordering, OR, the name of the rotation should be included as follows:

```
Oncall Schedules:
my_organization_schedule Participants: Secondary: engineer-2, Primary: engineer-1
```

Question: Has anyone else observed this behavior, or found a solution?


Answers:
author: Justin Sitarz
body: Hi!

Addresing Kevin's question:

In the scope of Opsgenie's schedules, there isn't exactly a concept of order to the rotations - each rotation within a schedule is considered to be on-call, so any user or entity on-call at a particular time for each rotation is also on-call within each schedule.

When routing a normal alert to that schedule, if there are multiple entities on-call on different rotations, each will receive a notification in the same way.

To address Logan's question:

If a phone call is routed to a schedule with multiple on-call participants, though, it will select randomly who is dialed (which is why I generally don't recommend configuring call routing this way).

If you're wanting a true primary, secondary, backup, etc. hierarchy in your on-call flow, it's recommended to set up each as its own schedule, instead, so that you can route to each in turn via an escalation policy. Then, you will also get more useful information in the /whoisoncall command in Slack - it would then return your full primary, secondary, etc. on-call schedules.

Let me know if that helps to answer your questions - thanks!

Justin


author: Logan Broitman
body: Hi Kevin,

Experiencing a similar issue with a schedule with 2 rotations and a phone integration, OpsGenie appears to be picking randomly between the 2 rotations in the schedule to call first.  

We thought it may have been alphabetical, but ruled that out by editing one of the users names.  

Wondering the same, if anyone else has a solution


Tags: cloud

slack
Incident Management Getting Started Guide File
Asked by Eric Byrd:

Looking for the white paper [located here](https://www.atlassian.com/whitepapers/incident-management-guide) as that link just presents a page with an infinite spinner. Thanks!


Answers:
author: Samir
body: Hi [@Eric Byrd](/t5/user/viewprofilepage/user-id/3345780) !

I just opened that link, and it brought me to the page where you can enter your information to receive the guide.

![2021-04-07_11-45-22.png](https://community.atlassian.com/t5/image/serverpage/image-id/137815iB272CB8B52B79993/image-size/large?v=v2&px=999 "2021-04-07_11-45-22.png")

Screen Recording: <https://www.screencast.com/t/lZD4f1Qsiq>

Is that not working the same way for you? Could you try another browser or try an incognito window?

Thanks,

Samir

comments: author: Eric Byrd
body: Thanks Samir - I will check my ad blocker settings and try again!


author: Samir
body: Sounds good, you're welcome [@Eric Byrd](/t5/user/viewprofilepage/user-id/3345780) !


author: Eric Byrd
body: Samir -

It works in Chrome Incognito. However, with ad-blockers disabled and in FireFox private window, nothing but spinner:  
![2021-04-07_9-49-15.png](https://community.atlassian.com/t5/image/serverpage/image-id/137821iDC07D6DE44158CB8/image-size/large?v=v2&px=999 "2021-04-07_9-49-15.png")

Same with Edge InPrivate:  
![2021-04-07_9-49-21.png](https://community.atlassian.com/t5/image/serverpage/image-id/137822i0BFAEF940B6971E0/image-size/large?v=v2&px=999 "2021-04-07_9-49-21.png")

E.


author: Samir
body: Ah I'm seeing the same behavior with Firefox in a private window, but it's working on Firefox in a regular window which is strange.

I will report this internally, thanks for bringing it to our attention!


Tags: cloud
I am getting below error when using most of the API's with my team
Asked by PRANAY SARAIWALA:

" Team API Keys are not authorized to perform this action"  

![Screenshot 2021-04-04 at 5.20.44 PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/137323iD97EA6D9CDDC67BD/image-size/large?v=v2&px=999 "Screenshot 2021-04-04 at 5.20.44 PM.png")


Answers:
author: PRANAY SARAIWALA
body: Got the answer.  

We have to generate an API key on account level to call the API Endpoints that are not team specific.


author: Nick H
body: Hi [@PRANAY SARAIWALA](/t5/user/viewprofilepage/user-id/4334159) ,

Like that response says, a team's API integration / key is not authorized to perform the GET Account Info API request.

Instead you will need to use a global API integration's key - meaning the integration is NOT assigned to a team. Or an API key from under the API key management tab.


Tags: cloud
Permission Denied integrating with MS Teams
Asked by Darren lutchner:

I am following the instructions of

[Integrate Opsgenie with Microsoft Teams V2](https://support.atlassian.com/opsgenie/docs/integrate-opsgenie-with-microsoft-teams-v2/) {#toc-hId--1268552888}
------------------------------------------------------------------------------------------------------------------------------------------------------------

When I click on step 1 - Go to [++Opsgenie's Microsoft Teams Integration++](https://app.opsgenie.com/settings/integration/add/MSTeamsV2/ "https://app.opsgenie.com/settings/integration/add/MSTeamsV2/") page.

I get the following:

![Screenshot 2021-04-04 113025.jpg](/t5/image/serverpage/image-id/137306iB46AE2400A63AB2F/image-size/large?v=v2&px=999 "Screenshot 2021-04-04 113025.jpg")

How do I fix.

thanks.


Answers:
author: Nick H
body: Hi [@Darren lutchner](/t5/user/viewprofilepage/user-id/4333501) ,

That error is most likely either a plan restriction, or role restriction.

That doc's link redirects to the global Integration List tab - specifically to a MS Teams integration. Free and Essentials plans do not have access to this tab, while Standard and Enterprise plans do. So the integration will need to be added under a team's Integrations tab.

Similarly, account Users by default do not have access to the tab either. Same resolution as above though - the integration will need to be added under a team's Integrations tab that you are a member of. If you do not see an Add Integration button there, then your role is restricted.

Hope this helps! Let us know if you have any additional questions, issues, etc.


Tags: ms-teams
Bamboo not adding new user, no errors
Asked by Jamie Holland:

I fill in all the information to add a new bamboo user and it saves, no errors. But does not actually created the user.

I checked and read only user created is not turned on.

Anyone have any idea what's going on with this?


Answers:
author: Daniel Ebers
body: Hi Jamie,

welcome to the Atlasian Community!

I understood you are adding an user to Bamboo but it is actually not created, is that correct? I am a bit unsure about the statement of "read only user created".

I assume you used this guide to create the user:  
<https://confluence.atlassian.com/bamboo/creating-new-user-account-952624897.html>

In case you have external user management like LDAP or Crowd in place creating a user works different.

Assuming it is a local Bamboo user you are trying to create - are there any error messages in log file probably that could point out why the user creation is failing? Are there, for example, any special characters in the user name?

In case you want to provide a few more details somebody from community might be more likely to catch up on this problem.

Cheers,  
Daniel
"Latest Bamboo Spec throws exception"
Asked by thirumurugan.karunakaran:

Hi,

I updated the version of Bamboo Spec from 6.9.1 to 7.1.1 in my pom.xml since our Bamboo server was updated to 7.1.1

After that we started getting the following exception thrown in the server when we try to create a Bamboo plan using the API:

java.lang.NoSuchMethodError: "java.lang.RuntimeException: java.lang.NoSuchMethodError: org.yaml.snakeyaml.LoaderOptions.setMaxAliasesForCollections(I)V\\r\\n\\tat com.atlassian.bamboo.specs.util.IsolatedYamlizator.execute(IsolatedYamlizator.java:24)\\r\\n\\tat com.atlassian.bamboo.specs.util.BambooSpecSerializer.dump(BambooSpecSerializer.java:19)\\r\\n\\tat com.atlassian.bamboo.specs.util.BambooServer.publish(BambooServer.java:73)

Kindly help. Looks like this is a issue with the latest Bamboo Spec version.


Answers:
author: dbu
body: Hi,

i have a very similar error when deploying Bamboo specs using "mvn -P publish-specs":

```
Execution default-cli of goal com.atlassian.bamboo:bamboo-specs-runner:7.2.2:run failed: 
java.lang.reflect.InvocationTargetException: java.lang.NoSuchMethodError: org.yaml.snakeyaml.DumperOptions.setDefaultFlowStyle(Lorg/yaml/snakeyaml/DumperOptions$FlowStyle;)V -> [Help 1]
```

I have no SnakeYAML dependencies in my pom.xml. It seems to be a problem with the latest Bamboo spec version.

comments: author: Alexey Chystoprudov
body: [@dbu](/t5/user/viewprofilepage/user-id/671077) what's bamboo-specs version at your pom.xml

Do you see any snakeyaml dependency when run

```
mvn dependency:tree 
or
mvn help:effective-pom
```


author: dbu
body: Bamboo specs version is: 7.2.2

Dependency tree shows: org.yaml:snakeyaml:jar:1.27:compile

I have to correct my previous post: I am using "atlas-mvn -P pusblish-specs" instead of "mvn -P pusblish-specs".

I found out that the problem occurs only with Atlassian plugin SDK 8.2.6. If I use mvn instead of atlas-mvn or downgrade the SDK to 8.2.2 the deployment works fine.


author: Alexey Chystoprudov
body: If you have any dependencies to SnakeYAML at pom.xml, update them to use version 1.26

comments: author: thirumurugan.karunakaran
body: This helped fix the issue. Thanks Alexey.


author: Alexey Chystoprudov
body: Glad to hear. Can you tell why you need SnakeYAML at dependencies?
Branch plan only updates spec configuration instead of running the actual plan
Asked by Ilkka Veima:

Hi,

I had a working plan to create a branch plan whenever a pull-request was opened on Bitbucket. Bamboo would create a branch plan for the pull-request and run the plan.  
The plan is created using Bamboo java-specs.

After a commit to change another plan, Bamboo still creates a new branch plan whenever a pull-request is opened, but instead of running the plan, Bamboo just runs an update for the plan configuration "Specs configuration updated".

I have tried to delete and recreate the plans by scanning the bamboo specs again, but the same behaviour persists. I have also made additional changes for the plan that defines the branch plan configuration as well as other bamboo plans, but when a pull-request plan is created it still runs a specs configuration update instead of the specified build jobs and the shows the same commit as the source of the bamboo specs changes.

It seems to me that the plan that defines the branching configuration is somehow out of sync with the bamboo specs even after deleting and recreating all the plans.

Has anyone faced anything similar?

![kuva.png](/t5/image/serverpage/image-id/110660i88A53342AC134DC8/image-size/large?v=v2&px=999 "kuva.png")


Answers:
author: Ilkka Veima
body: Managed to work around the problem by re-creating the pull-request plans by hand using the Bamboo UI and deleting the misbehaving plans and related java-specs.  

I will try re-creating the plans from java-specs with different plan keys later. Hopefully that will resolve the issue.


Tags: branch

plan

pull-request

spec
using docker-compose in bamboo
Asked by arahman5:

Hi,

I need to run multiple docker containers at the same time and need to mount volumes to one of the containers and docker-compose.yml files are the best way to manage this. However, I am not sure how can I run docker-compose files in Bamboo as its not a capability. I am using Bamboo version 7.

Since docker is a capability I have tried using a docker-compose image in a Docker container in my Bamboo plan. I have two tasks in my Job so first one checks out the source code and the second task runs a shell script containing the command "docker-compose up". When bamboo downloads the docker-compose image and then runs the shell script it keeps running into an error message saying "*Couldn't connect to Docker daemon at http+docker://localhost - is it running?"*

Does anyone have any idea on how to solve this issue?


Answers:
author: Will
body: Please make sure your plan agent container has been mount below volume:

**Host** \| **Container**

/var/run/docker.sock \| /var/run/docker.sock


Tags: docker
bamboo does not work
Asked by Deric Choi (???):

My bamboo runs on Linux.

After rebooting the system, I ran Bamboo and I can't access the web page.

Even looking at the log files I can't figure out what's wrong, so I need help.

I put the log file on the following link : [logfile](https://www.dropbox.com/s/aclpym2lsfq4ie7/logs.zip?dl=0)


Answers:
author: Jimmy Seddon
body: Hi [@Deric Choi (???)](/t5/user/viewprofilepage/user-id/2485107) ,

I took a look at your log file and the thing that stood out to me was the "Invalid version number" line.

Doing a quick search this KB article that was just posted might be of interest to you:

<https://confluence.atlassian.com/bamkb/bamboo-fails-to-configure-embedded-database-in-environments-with-java-update-version-higher-than-255-1018269728.html>

I hope that helps!

-Jimmy

comments: author: Deric Choi (???)
body: Thanks to this, the bamboo server works fine.
How to specify JUnit Parser that particular test is expected to be failed.
Asked by Mykola Liubchak:

I need to be sure that all test cases are passed and don't have false positive. So I would like to add the always failing test and in JUnit Parser I would like to specify that this test cases will alway failed, otherwise I can not rely on another test cases.


Answers:
author: Richard White _TechTime_
body: Hi Mykola,

There are a couple of ways you could approach this. It depends on why the test case is failing and whether it causes your build task to fail (ie the process returns non zero exit code)

Some options:

[Quarantine the test](https://confluence.atlassian.com/bamboo/quarantining-failing-tests-289276886.html) - This enables bamboo build to pass, assuming your build completes without error. This must be enabled globally in bamboo settings.

[Add @Ignore annotation to your code](https://github.com/junit-team/junit4/wiki/Ignoring-tests) This is useful if the test is causing the build to fail itself (ie not as a result of the bamboo test parsing, but in the actual build task)

In both cases these tests will appear under skipped / ignored tests section in bamboo test results tab.

![Screen Shot 2020-09-18 at 8.32.50 AM.png](https://community.atlassian.com/t5/image/serverpage/image-id/110815i053B84798DE7EF4C/image-size/large?v=v2&px=999 "Screen Shot 2020-09-18 at 8.32.50 AM.png")
Newly created Task Type not displayed
Asked by Seetharam:

Hi All,

I am creating a plugin to create new task type. This is just a basic task which logs Hello World in the Build Logger. I have created the class by implementing the TaskType interface and added the necessary \<tastype\> tags in atlassian-plugins. xml as well. But i cant see my newly created task in Bamboo.

atlassian-plugin.xml :

\<atlassian-plugin key="${atlassian.plugin.key}" name="${project.name}" plugins-version="2"\>  
\<plugin-info\>  
\<description\>${project.description}\</description\>  
\<version\>${project.version}\</version\>  
\<vendor name="${project.organization.name}" url="${project.organization.url}" /\>  
\<param name="plugin-icon"\>images/pluginIcon.png\</param\>  
\<param name="plugin-logo"\>images/pluginLogo.png\</param\>  
\</plugin-info\>  

\<!-- add our i18n resource --\>  
\<resource type="i18n" name="i18n" location="secondPlugin"/\>  

\<!-- add our web resources --\>  
\<web-resource key="secondPlugin-resources" name="secondPlugin Web Resources"\>  
\<dependency\>com.atlassian.auiplugin:ajs\</dependency\>  

\<resource type="download" name="secondPlugin.css" location="/css/secondPlugin.css"/\>  
\<resource type="download" name="secondPlugin.js" location="/js/secondPlugin.js"/\>  
\<resource type="download" name="images/" location="/images"/\>

\<context\>secondPlugin\</context\>  
\</web-resource\>  

\<taskType key="task.newTask" name="My First New Task" class="com.atlassian.tutorial.secondPlugin.MyFirstTask"\>  
\<description\>A task that prints 'Hello, World!'\</description\>  
\</taskType\>  

<br />

\</atlassian-plugin\>

MyFirstTask.java

```
package com.atlassian.tutorial.secondPlugin;import com.atlassian.bamboo.build.logger.BuildLogger;import com.atlassian.bamboo.task.TaskContext;import com.atlassian.bamboo.task.TaskException;import com.atlassian.bamboo.task.TaskResult;import com.atlassian.bamboo.task.TaskResultBuilder;import com.atlassian.bamboo.task.TaskType;public class MyFirstTask implements TaskType{    @Override    public TaskResult execute(final TaskContext taskContext) throws TaskException    {        final BuildLogger buildLogger = taskContext.getBuildLogger();        buildLogger.addBuildLogEntry("Hello, World!");        return TaskResultBuilder.newBuilder(taskContext).success().build();    }}
```


Answers:
author: Richard White _TechTime_
body: Hi Seetharam,

You might have more luck finding help in:

[Atlassian Developer Community - Bamboo](https://community.developer.atlassian.com/c/bamboo-development)

Your plugin looks more or less correct to me, so might be worth investigating if your plugin is enabled correctly in Manage Apps?
Configuring elastic agent capabilities with rest API
Asked by Ravi:

Is there any REST API endpoint to manage elastic agent capabilities?

Basically, I'm looking for a way to clone an elastic image configuration via rest API, I can see the API endpoint to retrieve the elastic image configuration. but it doesn't return associated image capabilities.

### /elasticConfiguration/{configurationId} {#toc-hId-1174857173}


Answers:
author: Ravi
body: ### Found end point for agent capability but still no luck with image configuration {#toc-hId-1174857850}

### /agent/{agentId}/capability?includeShared {#toc-hId--632596613}


Tags: api

elastic
Lost admin user access and admin permissions on Bamboo
Asked by Neeharika:

We have moved our Bamboo server to a different network and restarted the application. After the restart, all internal databse users (like admin, service accounts) lost access and not able to login. We had LDAP connectivity for this application for sign-on and ldap users are able to login, however there is no admin access even to the users who are supposed to have admin permissions. Can you please help here in regaining the access for internal users (admin) and restoring admin permissions?

We have already tried recovering admin password as mentioned in <https://confluence.atlassian.com/bamboo/lockout-recovery-process-952624910.html>, however we couldn't login using the recovery credentials as well. We see "Invalid user/password" error on login screen. We are running on Bamboo v5.7.2

We verified "admin" user is present in "users" table in the bamboo database. There are no errors in the catalina.out log.

Any help here is very much appreciated.


Answers:
author: Maik
body: Hello Neeharika,

Looks like that recovery process method is not available in your current bamboo version (5.7.2).

Maybe this Restoring procces I found on Bamboo 5.0 could work?  

<http://product-downloads.atlassian.com/software/bamboo/downloads/documentation/BAMBOO-5-1-20130911.pdf>

Check the page 579 :) hope it helps

comments: author: Neeharika
body: Thank you very much for responding [@Maik](/t5/user/viewprofilepage/user-id/1812884), we found this doc <https://community.atlassian.com/t5/Bamboo-questions/How-to-reset-Bamboo-Admin-password-also-set-bamboo-internal/qaq-p/86925> that has the exact same steps that you mentioned and were able to regain admin access (admin/admin). Thanks again for posting this complete guide. :)

However, all internal users (service accounts) needed a password reset to be able to login again. Can you help us understand what could have happened that caused this?

Thanks,

Neeharika


Tags: administration

recovery
Any recommended Bamboo training?
Asked by Chris Miller:

Hi, I'm new to Bamboo. Does anyone have any recommendation for how to get trained up on this product. I've seen a few videos on youtube, however I was looking for something that is deeper dive.

thanks


Answers:
author: Kat Warner
body: Hi [@Chris Miller](/t5/user/viewprofilepage/user-id/4061354)

These links may be helpful for you:

* [Integrating-bamboo-with-jira-applications](https://confluence.atlassian.com/bamboo/integrating-bamboo-with-jira-applications-289276945.html)
* [Integrating-jira-with-bamboo](https://confluence.atlassian.com/jira064/integrating-jira-with-bamboo-720412770.html)
* [Linking-jira-application-issues-to-a-build](https://confluence.atlassian.com/bamboo/linking-jira-application-issues-to-a-build-289276957.html)

It looks like something is in the works as the following was posted earlier this year:
>
> [Are there any plans to create training/certifications for the CI/CD tools (Bamboo, Bitbucket)?](https://community.atlassian.com/t5/Training-Certification-questions/Are-there-any-plans-to-create-training-certifications-for-the-CI/qaq-p/1401111) {#toc-hId--1323183036}
> ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
> [Jason Templeman](https://community.atlassian.com/t5/user/viewprofilepage/user-id/2649265)[Jun 09, 2020](https://community.atlassian.com/t5/Training-Certification-questions/Are-there-any-plans-to-create-training-certifications-for-the-CI/qaq-p/1401111)
>
> [Gary Barg](https://community.atlassian.com/t5/user/viewprofilepage/user-id/456346) ATLASSIAN TEAM [Jun 10, 2020](https://community.atlassian.com/t5/Training-Certification-questions/Re-Are-there-any-plans-to-create-training-certifications/qaq-p/1402399/comment-id/480#M480)
>
> This is on our backlog and we'll get to it in the next 6 months. Stay tuned. There is likely to be some self-paced training as well as instructor-led training.


author: Jimmy Seddon
body: Hi [@Chris Miller](/t5/user/viewprofilepage/user-id/4061354)!

Welcome to the Community!

I 100% agree with you, Bamboo has always felt a little light on the Atlassian provided guidance. I was going to recommend a course form the Atlassian University that provided an overview of integrating Jira, BitBucket \& Bamboo together. It was a great course for beginners but it don't look like it's offered anymore :(

[@Ben Thoma](/t5/user/viewprofilepage/user-id/3125307) [@Kat Warner](/t5/user/viewprofilepage/user-id/1210828) would either of you have any recommendations for Bamboo training?