Sign inSign up

overops/concourse-resource

By overops

•Updated about 6 years ago

OverOps Concourse plugin

Image
0

100K+

overops/concourse-resource repository overview

⁠Concourse Overops Resource

⁠Quick Set Up

Assuming there is already an instance of Concourse up, the next step is to attach the OverOps Resource to your existing pipeline. Configure the example overops-resource.yml and then run fly -t OO-example set-pipeline -c pipeline.yml -p oo-test to add it into your Build. Please replace the OO-example with your own names and make sure the configuration is the correct yml file.

⁠Configuration example

example file name: overops-resource.yml

resource_types:
  - name: overops-resource
    type: docker-image
    source:
      repository: overops/concourse-resource
      tag: latest

resources:
  - name: overops-report
    type: overops-resource
    source:
      overops_url: https://api.overops.com
      overops_sid: S111111
      overops_api_key: ((overops_api_key))
      application_name: App1
      mark_unstable: true
      new_events: true
      resurfaced_errors: true
      debug: true

jobs:
  - name: demo
    serial: true
    plan:
      - task: make-a-version-file
        config:
          platform: linux
          image_resource:
            type: registry-image
            source: { repository: busybox }
          run:
            path: sh
            args:
              - -exc
              - date +%s > ./files/deployment_name
          outputs:
            - name: files
      - put: overops-report
        inputs:
          - files
        params:
          deployment_file: ./files/deployment_name
          debug: false

⁠Configuration parameters

The Application Name and the Deployment Name can be provided staticly or dynamically. In most cases the Deployment name is dynamic, in which case you can provide this at build time using the deployment_file parameter. The same behavior can be used for the Application Name using the application_file parameter. Below describes the behavior for the static and dynamic parameters.

application_name and application_file parameters can be used in combination or individually. If a application_file is provided it will overwrite application_name.

deployment_name and deployment_file parameters can be used in combination or individually. If a deployment_file is provided it will overwrite deployment_name.

All of the following parameters can be provided globally in the Resource source section as well as can be overwritten on per step basis in the params section of put step.

ParameterRequiredDefault ValueDescription
overops_urltrue---The OverOps API Endpoint(Saas: https://api.overops.com⁠)
overops_app_urlfalse---The OverOps Endpoint to be used with the link options (Saas: https://app.overops.com⁠)
overops_sidtrue---The OverOps environment identifier (e.g S4567) to inspect data for this build
overops_api_keytrue---API Key for interaction with OverOps API
application_namefalse---Use this parameter if the application name will be static. Application Name⁠ as specified in OverOps
application_filefalse---Use this parameter if the application name will be read from a file (dynamic). This parameter will overwrite the application_name parameter if defined. Application Name⁠ as specified in OverOps
deployment_namefalse---Use this parameter if the deployement_name will be static. Deployment Name⁠ as specified in OverOps
deployment_filefalse---Use this parameter if the deployement_name will be read from a file (dynamic). This parameter will overwrite the deployment_name parameter if defined. Deployment Name⁠ as specified in OverOps
regex_filterfalseA way to filter out specific event types from affecting the outcome of the OverOps Reliability report.
mark_unstablefalsefalseIf set to true the build will be failed if any of the above gates are met
linkfalsefalseIf set to true a link to the Quality Report will be generated and displayed instead of the Quality Report itself. The parameter overops_app_url needs to be set for the link to be generated correctly. Also this option, if set to true, voids the mark_unstable option. This link can be used if it is desired to not fail the build and you do not want to wait for the Quality Report to be generated.
print_top_issuesfalse5Prints the top X events (as provided by this parameter) with the highest volume of errors detected within the active time window, This is useful when used in conjunction with Max Error Volume to identify the errors which caused a build to fail
new_eventsfalsefalseIf any new errors is detected, the build will be marked as failed
resurfaced_errorsfalsefalseIf any resurfaced errors is detected, the build will be marked as failed
max_error_volumefalse0Set the max total error volume allowed. If exceeded the build will be marked as failed
max_unique_errorsfalse0Set the max total error volume allowed. If exceeded the build will be marked as failed
critical_exception_typesfalseA comma delimited list of exception types that are deemed as severe regardless of their volume.
- If any events of any exceptions listed have a count greater than zero, the build will be marked as unstable. Blank to skip this test.
(For example: NullPointerException,IndexOutOfBoundsException)
show_events_for_passed_gatesfalsefalseDisplay events for the quality gates even if the the gates passed.
pass_build_on_exceptionfalsefalseDetermines if the build should pass if there are exception/exceptions.
debugfalsefalseFor advanced debugging purposes only

The ARC Links inside of the UI display after a build with the OverOps resource are not clickable they must be copy and pasted to be used.

⁠Behavior

⁠check

no-op

⁠out

Generates the report based on OverOps events, if mark_unstable is set to true then it fails the build, until reported issues are fixed.

⁠in

no-op

Tag summary

Content type

Image

Digest

Size

89.2 MB

Last updated

about 6 years ago

docker pull overops/concourse-resource