youngmon/atlassian-qna huggingface dataset:
Mass Notifications Alternative?
Asked by Edward Schmidt:

Hello everyone - we've recently begun deploying OpsGenie throughout our organization, and one feature that we're looking to implement is the ability to notify external users who are impacted by a particular issue.  

It looks like this functionality existed largely in the "Mass Notification" feature, which appears to have been deprecated for new customers starting Dec 2018. Is there been a viable replacement in OpsGenie? Or has anyone found a good way to manage this type of functionality in a different system that plays nice with OpsGenie? Thanks!


Answers:
author: Samir
body: Hi [@Edward Schmidt](/t5/user/viewprofilepage/user-id/1728600) - the intended alternative for mass notifications is to leverage our incident management feature in Opsgenie. Incident Management is available on our enterprise plan, and with this plan you can add unlimited stakeholders to your account. Stakeholders have the ability to receive notifications about incidents that occur on services that they are subscribed to. This can be used in place of mass notifications. So if you have a major issue or outage occurring, you can have an incident created in Opsgenie on the respective service, which will then send out notifications to all stakeholders involved in that service. More information can be found in our incident documentation. Below are some useful links:

<https://docs.opsgenie.com/docs/incident-response-orchestration-overview>

<https://docs.opsgenie.com/docs/services>

<https://docs.opsgenie.com/docs/incidents>

<https://docs.opsgenie.com/docs/stakeholder-guide>

comments: author: Edward Schmidt
body: Great, we'll take a look. Thanks [@Samir](/t5/user/viewprofilepage/user-id/2168284)!


author: Samir
body: No problem!
is there a way to send grafana snapshots to slack
Asked by vitalyb:

Hi,

We're evaluating opsgene.

Now we're sending grafana alerts directly to slack. Is there a way to send them tru opsgene but retain the snapshot that grafana generates in slack?

Basically the expected result is the same alert format as we get from grafana but with buttons (and alert management) from opsgene.

Thank you,

Vitaly


Answers:
author: Samir
body: Hi Vitaly,

With Opsgenie you can create a slack integration, so alerts can come from Grafana to Opsgenie, and then Opsgenie will send a message to slack, with actions available to take on the Opsgenie alert straight from Slack.

So it sounds like you may want to retain your Grafana -\> Slack integration, and also setup a Grafana integration with Opsgenie, and a Slack integration with Opsgenie. Does this help?

Let me know if you have anymore questions!

-Samir


Tags: grafana

integration

slack
Bamboo for Database DevOps
Asked by Manuel_Ramos:

Hi,

I am a new related new using bamboo as my CI tool.

We are working to use bamboo to help us to create plans to help us into our delivery process for DB changes.

We have our script in Bitbucket and now I am trying to create a plan to be trigger every time we have a commit/push,

The challenge here, how I can detect which files we modify or added, so I can test them and then perform the changes in our DB?

Can anyone help me? If you think I am not taking the right approach please let me know.

Thanks!


Answers:
author: Manuel_Ramos
body: .


Tags: database
commit and push to a Git repo during a build - prevent triggering another build
Asked by Voka:

I read <https://confluence.atlassian.com/bamkb/how-to-commit-and-push-to-a-git-repo-during-a-build-720641378.html>

and I'm currently pushing to Git repo during build.

However, my build plan triggers on Git repo code change.

Won't this mean I'll have a never ending cycle?

(Push to repo -\> plan triggers -\> plan pushes to Git -\> another plan triggers ...)


Answers:
author: Mehmet A _Bloompeak_
body: Hi [@Voka](/t5/user/viewprofilepage/user-id/3822690) ,

Bamboo can ignore commits by regular expression matched on the commit message. You can distinguish the commit done by bamboo with custom message and exclude the message string you entered.

![Screen Shot 2020-04-26 at 23.12.52.png](https://community.atlassian.com/t5/image/serverpage/image-id/92278iF650A75CA8129778/image-dimensions/588x117?v=v2 "Screen Shot 2020-04-26 at 23.12.52.png")![Screen Shot 2020-04-26 at 23.13.00.png](https://community.atlassian.com/t5/image/serverpage/image-id/92279i2B19F268C8757EDB/image-dimensions/409x339?v=v2 "Screen Shot 2020-04-26 at 23.13.00.png")
Bamboo receives 404 when calling BitBucket Cloud users API when creating/updating repository
Asked by Mike Rudat:

When creating/updating a linked repository or a plan specific repository that is referencing a BitBucket Cloud repository a 404 is returned when the BitBucket Cloud users or teams API is called.

```
2020-04-13 12:13:15,778 WARN [http-nio-8085-exec-18] [RESTCall] Response from GET https://api.bitbucket.org/2.0/users/mikerudat/ (404)

2020-04-13 12:13:15,778 ERROR [http-nio-8085-exec-18] [BitbucketApiServiceImpl] 

com.opensymphony.webwork.dispatcher.json.JSONException: JSONObject["uuid"] not found.

 at com.opensymphony.webwork.dispatcher.json.JSONObject.get(JSONObject.java:419)

 at com.opensymphony.webwork.dispatcher.json.JSONObject.getString(JSONObject.java:590)

 at com.atlassian.bamboo.plugins.bitbucket.impl.BitbucketApiServiceImpl.getUuidForUserOrTeam(BitbucketApiServiceImpl.java:319)

 at com.atlassian.bamboo.plugins.bitbucket.impl.BitbucketApiServiceImpl.getUuidForAnEmailOrUsername(BitbucketApiServiceImpl.java:218)

 at com.atlassian.bamboo.plugins.bitbucket.v2.configurator.BitbucketCloudServerConfigurator.validateUsername(BitbucketCloudServerConfigurator.java:456)

 at com.atlassian.bamboo.plugins.bitbucket.v2.configurator.BitbucketCloudServerConfigurator.validateUsernamePasswordCredentials(BitbucketCloudServerConfigurator.java:374)

 at com.atlassian.bamboo.plugins.bitbucket.v2.configurator.BitbucketCloudServerConfigurator.validate(BitbucketCloudServerConfigurator.java:271)

 at com.atlassian.bamboo.plugins.bitbucket.v2.configurator.BitbucketCloudServerConfigurator.validateForConnectionTesting(BitbucketCloudServerConfigurator.java:292)

 at com.atlassian.bamboo.configuration.repository.VcsConfigurationHelperImpl.validateVcsConfigurationForConnectionTesting(VcsConfigurationHelperImpl.java:125)
```

The username is being passed vs the UUID of the account for the user. It appears the API call passing the username has been inactivated due to GDPR and the UUID should now be used in Bamboo.

Issuing a curl command against the endpoint does succeed when passing the UUID

```
curl https://api.bitbucket.org/2.0/users/%7B114aa7e6-a24f-4b58-be59-7620706c07b2%7D
```

We are using Bamboo 7.0.2

Thank You,

Mike


Answers:
author: Dmytro Ivanko
body: Hi, the same bug is contained in version 6.10.3. Is it fixed in 6.10.5?

comments: author: Mike Rudat
body: No, as we found the bug in the latest version 7.0.2


author: overmap
body: same issue


author: Michiel Buevink
body: We are encountering the issue as well in version 6.9.1.


author: Daniele Gaffuri
body: Look at <https://jira.atlassian.com/browse/BAM-20900>, I've not yet tried the workaround


author: Mike Rudat
body: Awesome, the workaround was successful. I added

```
JVM_SUPPORT_RECOMMENDED_ARGS="-Dbamboo.bitbucket.cloud.use.workspace.api=true"
```

to bin/setenv.sh for our linux installation. Thank You!


author: Sreekanth Reddy Seelam
body: does the fix work on version 6.9.1?


author: Mike Rudat
body: I only tested with 7.0.2


author: mustafa.ak
body: Thank you very much Mike..

Worked for me..
Default Local Admin Password
Asked by Zachary Szczesniak:

During deployment I believe Bamboo creates a local admin account which the deplorer can use to configure additional settings though the web interface after the initial deployment.

The Username for this credential is "admin" is there a default password e.g.( admin, password, passphrase, atlassian, bamboo, etc.) kind of like a consumer router?


Answers:
author: Daniel Ebers
body: Hi Zachary,

when we installed Bamboo lately we were asked for a username and password ([according to Bamboo setup guide](https://confluence.atlassian.com/bamboo/running-the-setup-wizard-289276851.html)). There is no admin-default password (which would be a huge security flaw).

In case you forgot the admin password you would have to reset it.

Cheers,  
Daniel
Bamboo Not Connecting to JIRA User Database after SSL Cert Update
Asked by Zachary Szczesniak:

Hi All,

After updating the SSL cert for our JIRA server, we can no longer login to out Bamboo server.

Setup details:

1. We use the JIRA user directory to access Bamboo

2. Bamboo is configured as an application link in JIRA and status shows "connected"

3. Bamboo is added in the JIRA user server.

Additional Notes:

\* We also have a instance of Bitbucket running on the JIRA server which uses the JIRA user server to login and that is functioning correctly.


Answers:
author: Lasse Langhorn
body: Hi,

In Jira administration \> User management \> Jira user server.

Try adding the IP address of your Bamboo server to the IP addresses for the Application name for your Bamboo server.

If this does not work then try to use wildcard in the IP address. eg. 10.100.10.\* or 10.100.\*.\*.

It might work.

Regards

Lasse Langhorn
JAVA_HOME set to /usr/lib/jvm/default-java
Asked by john:

I've just spun up bamboo on an Ubuntu VM \& I'm taking my first steps with the product.

I'm trying to run a simple script which prints **groovy --version** and / or **echo $JAVA_HOME**

The echo statement is empty and **groovy --version** results in:

```
groovy: JAVA_HOME is not defined correctly, can not execute: /usr/lib/jvm/default-java/bin/java
```

When I run **${bamboo_capability_system_jdk_JDK}/java -version** it works.

When I run **echo $JAVA_HOME** on an SSH connection, I get **/usr/lib/jvm/java-8-openjdk-amd64/** \`. **java --version**also works in a terminal.

My **/etc/environment** file looks like this.

```
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/lib/jvm/java-8-openjdk-amd64/"
JAVA_HOME="/usr/lib/jvm/java-8-openjdk-amd64/"

```

I also have a global JDK set and can see that in the plan execution log:

```
bamboo_capability_system_jdk_JDK=/usr/lib/jvm/java-8-openjdk-amd64/
```

Why is Bamboo unable to see the JAVA_HOME setting?


Answers:
author: Lasse Langhorn
body: Hi,

I assume you are using the script task in Bamboo for your script: [Bamboo Script task](https://confluence.atlassian.com/bamboo0609/using-bamboo/jobs-and-tasks/configuring-tasks/configuring-a-builder-task/script)

It is possible to add environment variables in this script task but I do recommend that you use [Bamboo capabilities and executables](https://confluence.atlassian.com/bamboo/defining-a-new-executable-capability-289277164.html) and [Bamboo variables](https://confluence.atlassian.com/bamboo0609/using-bamboo/bamboo-variables) when you are defining your tasks. I will make sense to you very quickly. It is very flexible and dynamic.

Hope this will help you get further.

Regards

Lasse Langhorn
Running SQL script from GIT
Asked by Xavier:

Hello all,

I try to configure a Task to run SQL scripts (located in git repository).

I try with Powershell / sqlcmd, but not sure this is possible / manageable ?

Starting my test with

Invoke-Sqlcmd -Username xxx -Password yyy -InputFile "gitrepo/folder/script.sql" -ServerInstance "YYYY"

failed and return:

Failing task since return code of \[powershell -NonInteractive -ExecutionPolicy bypass -Command /bin/sh /opt/bamboo-agent-home/temp/xxx.ps1\] was -1 while expected 0

Moreover, my needs would to execute only updated scripts.  
Is there a way to do that ?

THanks in advance.

regards,


Answers:
author: Xavier
body: changing operating systems on plan task solved the issue


Tags: sql
Action only from a specific branch?
Asked by Benedikt Steindorf:

Is it possible to bind a stage on a specific branch?

for example i want that tests run all the time for every branch, but when we merge it into the testing branch in bitbucket, we want it automatically deployed to our test server.


Answers:
author: Marcin Gardias
body: It's possible with Bamboo 7 + Bitbucket Server, using Bamboo Specs.

comments: author: Benedikt Steindorf
body: Thanks, so it's not possible with Bitbucket Cloud?  

Can you explain it a bit more how i need to set this up?
How can I manage PEM keys and other kind of files as variables for my pipelines in bamboo?
Asked by Maik:

We want to store PEM keys and other kind of files as global variables in bamboo so we can access to them in our pipelines.

We would like to know the best practices or the best way to achieve this, since the global variables in bamboo are just for storing plain text and I can't seem to find other solution than just pasting the key or the certificates in the variable.

I have already done this in jenkins with secret files variables ([example](https://support.cloudbees.com/hc/en-us/articles/203802500-Injecting-Secrets-into-Jenkins-Build-Jobs "secret files in jenkins")), i don't know if there's an equivalent in bamboo right now.

Any tips or recommendations? Thanks in advance :)


Answers:
author: Jack Nolddor [Sweet Bananas]
body: Hi Maik, secret files variables seems to be pretty closed to read variables from a file using a 'key=value' format described on [**Configuring a variables task**](https://confluence.atlassian.com/bamboo/configuring-a-variables-task-687213475.html) page.

Does this help you in any way?

Regards

comments: author: Maik
body: Hello Jack. It is certainly a nice feature, I didn't knew about this. This can help me with text variables like credentials. But I also need a way to store files (.PEM for example) as Variables :( I will keep looking for a solution.

Thank you for your time! Regards
How to configure Build expiry with YAML Specs
Asked by Peter Wurzinger:

As the title says, we are desperately looking for a way to configure the retention policy for a build through YAML Specs.

The build itself works fine, but we cannot fine any information on how to configure the build expiry. [Docs](https://docs.atlassian.com/bamboo-specs-docs/6.9.0/specs.html?yaml#miscellaneous-plugins) in this regard is extremely sparse:

"Miscellaneous plugins are used for various additional functionalities for plans and jobs like Build expiry \[...\] You can configure these plugins from the?Other tab in the web interface." - which you cannot, if you are using Specs. The documentation is simply wrong.  
"Some miscellaneous plugins work only on the job level while other work only on the plan level. When you choose a plugin, make sure you're configuring it on the right level.  
In case a plugin doesn't have a dedicated builder, you can use AllOtherPluginsConfiguration to provide configuration for such plugins as a workaround. Refer to plugin documentation to obtain a list of valid keys. Note that keys imported with AllOtherPluginsConfiguration are not validated."

The only example provided is:

    Build binaries:  ...  other:    clean-working-dir: true

The corresponding Java-Specs (for which the docs contain an example for build expiry...) would suggest the following structure:

```
AllOtherPluginsConfiguration:
? configuration:
??? custom:
????? buildExpiryConfig:
??????? duration: 1
??????? period: days
```

That only leads to:

```
Bamboo YAML import failed: Document structure is incorrect: Found following unused properties: plan / AllOtherPluginsConfiguration
```

or

```
Bamboo YAML import failed: Document structure is incorrect: Found following unused properties: AllOtherPluginsConfiguration
```


Answers:
author: Thomas Haines
body: I don't think it's possible yet. The hint is when you set build expiry, then export as yaml, the diff is this comment:

```
other:

....

# Some plugin configurations are not supported by YAML Specs
```


author: Paul Carey
body: would be great to get an answer to this one


author: jvelapol
body: Welp, looks like if you're running 8.1.x, then you're in good shape. This is a new feature on Bamboo 8.1.x, though, as it doesn't exist on 8.0.x. It's even called out (sort of) in the release notes:
> **Improved feature parity between Java and YAML Bamboo Specs**
>
> We've added more features to the plan and deployments configuration with YAML Specs: other plugins, trigger repositories and trigger conditions, artifact handlers and plan dependencies.

Which is encouraging. In fact, looking at the [latest YAML specs docs](https://docs.atlassian.com/bamboo-specs-docs/8.1.2/specs.html?yaml#miscellaneous-plugins), looks like the following is a "thing":

    version: 2
    #...
    other:
      concurrent-build-plugin: 5
      all-other-apps:
        custom:
        artifactHandlers:
          useCustomArtifactHandlers: false
        buildExpiryConfig:
          duration: 5
          enabled: true
          expiryTypeResult: true
          maximumBuildsToKeep: 1
          period: days


Tags: build

expiry

yaml
Bamboo Spec Deployment Project. Add new environment without replacing existing environment
Asked by Kalvinder Kumar:

Hi,

Thanks for looking at this post. I am working on a use case where i have various build/deployment plans and many environments already created manually from the front end and i want to use Bamboo spec to dynamicaly add a new environment to all the deployment plans in the system. I am able to create a deployment plan using existing plan key etc but in the case of exisiting deployment plans if i just put the new Environment object in environments() method it deletes the existing environments. I can add all the existing environment object along with the new Environment object in environments() on Deployment Object but i believe it just replaces and recreates the existing environments which i dont want as i am not sure it retains the history for existing ones. Idealy i dont want to touch existing environments at all as PROD is one of them. Any Help would be great.

Thanks,

K Sat


Answers:
author: Marcin Gardias
body: Hi,

As long as environment in Bamboo and in Specs match, the existing environment will not be removed, only updated, with all the history retained.

You can use 'View as Java Specs' option in deployment configuration to get the code for all existing environments. Just copy-paste it.


Tags: spec
How to add descriptions to tasks in Bamboo using the YAML spec?
Asked by Andrew George:

For tasks in my Bamboo YAML Spec (version 2), I am trying to add descriptions. Something akin to:

```
tasks:
- script: echo hello world
  description: This task says hello!
```

There is no mention of the word description in the YAML reference. Is what I'm trying to do even possible?


Answers:
author: Haopeng Huang
body: I could see that java spec is able to specify 'description' but not yaml.

Bamboo team we need this feature please!
Can you run a job if the previous has failed?
Asked by Valcan Vasile:

Hello,   
I have some UI tests that I want to split into sets.   
Can I in bamboo run a job if the previous one has failed? I know you can do it in VSO but here I don't know, i am new to Bamboo.


Answers:
author: Marcin Gardias
body: Yes, you can, if the stage is marked as 'final'.
Import a list of services from a CSV file.
Asked by Ian Ball:

I want to import a long list of services into JSM with a CSV file. I see instructions for importing Issues, but I want to import Services with Name, Service Type, Tier, Service Owners, Change Approvers, etc.


Answers:
author: Brant Schroeder
body: [@Ian Ball](/t5/user/viewprofilepage/user-id/5509451) Welcome to the Atlassian community

I am assuming that when you say services you want to create different request types within the service desk that individuals can then submit a ticket (issue) for support. In cloud there is not a way to do this via the API so their is no way to import or create them other than in the JSM project one by one. This is why Jira offers so many different templates. You should select one that matches closely to what you want to do and then make adjustments after the JSM project is created.

comments: author: Ian Ball
body: ![Capture.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/332135i022CAF9983C614C4/image-size/large?v=v2&px=999 "Capture.PNG")


Tags: cloud

jira-service-management

jira-service-management-cloud

not-applicable
Mass deleting Assets
Asked by Dave Stillwell:

We have an Asset Table that has 45K+ items of which over 50% are not needed. Is there a way to delete these records without do it one-by-one or is deleting all the records and rebuilding the table with the valid Assets. I was hoping there was a way to upload a file with a list of the records we need removed.


Answers:
author: Benjamin
body: Hi [@Dave Stillwell](/t5/user/viewprofilepage/user-id/5286822) ,

You may want to review this knowledge base article to achieve your goals.

<https://confluence.atlassian.com/jirakb/how-to-bulk-delete-insight-objects-efficiently-1077780749.html>

comments: author: Dave Stillwell
body: I have already viewed the referenced Confluence page. The CSV process deletes all objects. I did not really look at the other processes since it looks like you would need some sort value to filter for the records you want to delete (which we currently do not have). I will look a little more at the alternate options listed in the document.


Tags: data-center

jira-service-management

jira-service-management-data-center
Automation for Custom Field, Fetching Asset Objects
Asked by Sidharth S:

I've integrated a custom field called 'Employee's Asset' to connect hardware assets within our system. This field has been added to the 'Request' issue type in our service management setup.

Currently, agents manually select assets from a dropdown in this field. However, I am requesting automation where, upon a customer request, 'Employee's Asset' automatically fetches assigned hardware from the Assets schema, providing agents with immediate visibility into the request details.


Answers:
author: Lisa Forstberg
body: Hi!

So reporter asks for a new computer and the agent wants to see all already existing hardwares linked to that person? Is the computer already assigned to the person out of date? etc

Yep this is possible with automations.

The prerequisites is that the hardware in your object schema has some sort of reference to its owner. Is there an attribute in there called f ex "owner"?

I think this article might be helpful <https://confluence.atlassian.com/jirakb/how-to-auto-populate-the-assets-object-field-based-on-the-reporter-field-of-the-ticket-using-automation-1116298907.html>


Tags: asset-management

automation

cloud

cloud-automation

custom-field

jira-service-management

jira-service-management-cloud

request-type