GithubHelp home page GithubHelp logo

opsgenie-orb's Introduction

Opsgenie Orb

Easily send CircleCI job results to create alert in Opsgenie. Opsgenie is a dispatcher for CircleCI build failures; determines the right people to notify based on on-call schedules– notifies via email, text messages (SMS), phone calls and iPhone & Android push notifications, and escalates alerts until the alert is acknowledged or closed. For more information, please visit Opsgenie doc Learn more about Orbs.

Usage

Example config:

version: 2.1

orbs:
  opsgenie: opsgenie/[email protected]

jobs:
  build:
    docker:
      - image: <docker image>
    - opsgenie/<command>

Commands

Notify

Send notification to opsgenie for CircleCI builds.

Parameter Type Default Description
endpoint env_var_name ${OPSGENIE_WEBHOOK} Use the CircleCI UI to add your token under the 'OPSGENIE_WEBHOOK' env var
on_failure boolean false Failure information of circleci build
on_success boolean true Success information of circleci build_

Example:

version: 2.1

orbs:
  opsgenie: opsgenie/[email protected]

jobs:
  build:
    docker:
      - image: <docker image>
    - opsgenie/notify

Dependencies / Requirements

Bash Shell

Due to the limitations of the sh shell, Bash is required. Bash is the default shell used on CircleCI and the Orb will be compatible with most images. Images such as Alpine that do not contain the Bash shell by default are incompatible and en error message will be logged. You may install the Bash shell through your package manager (example: apk add bash) in the Dockerfile for the image you are using.

cURL

cURL is used to post the Webhook data and must be installed in the container to function properly.

Help

Add CircleCI integration in Opsgenie

  1. Please create an Opsgenie account if you haven't done so already.
  2. Go to Opsgenie CircleCI Integration page.
  3. Copy the Url to use in CircleCI configuration. You should save this URL as Enviroment Variable Name. To save URL as Enviroment Varible, In the settings page for your project on CircleCI, click Environment Variables. From that page you can click the Add Variable button. Finally, enter URL that you copied from Opsgenie integration page, and OPSGENIE_WEBHOOK as the name.
  4. Click Save Integration.

For more information, please visit Opsgenie circleci documentation

opsgenie-orb's People

Contributors

emelkomurcu avatar kyletryon avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.