GithubHelp home page GithubHelp logo

glowdb / dynatrace-plugin Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jenkinsci/dynatrace-plugin

0.0 3.0 0.0 3.37 MB

Plugin for Jenkins CI server that display data collected by the Dynatrace AppMon Test Automation features

Home Page: https://community.dynatrace.com/community/display/DL/Test+Automation+Plugin+for+Jenkins

Java 78.53% HTML 0.81% CSS 0.51% JavaScript 20.16%

dynatrace-plugin's Introduction

Dynatrace AppMon Jenkins Plugin

This plugin for Jenkins pulls Test Automation data from Dynatrace AppMon and displays it through charts and tables on the project and build level.

Release 2.1.0 adds support for Jenkins Pipelines. Configuration and usage examples are described here.

Table of Contents

The recommended way of installing the plugin is by the Update Center (plugin directory). Navigate to Manage Jenkins -> Manage Plugins page and switch to the Available tab. Search for the "Dynatrace" keyword and install the plugin.

This procedure is meant for developers who want to install locally built plugin version.

  • build the plugin from source using mvn package command
  • in Jenkins, go to Manage Jenkins -> Manage Plugins page
  • switch to the Advanced tab
  • upload the built plugin package from target/dynatrace-dashboard.hpi path in the Upload Plugin section
  • restart Jenkins when the installation is complete

If you are using Jenkins 2.5 or higher, you need to enable the use of environment variables - see Jenkins 2.5+ build step execution failed with java.lang.NullPointerException

The global settings for the plugin are located under Manage Jenkins -> Configure System -> Dynatrace Application Monitoring. The connection to the Dynatrace AppMon Server is configured in this section. The configured user needs to have the right credentials to be able to access the Test Automation REST API.

global settings

The advanced section enables you to set a delay before retrieving the test results from the server. Change this settings if you are not getting all the test results in Jenkins.

In the build configuration (<Project> -> Configure), first enable Use Dynatrace AppMon to monitor tests in the Build Environment tab and fill the required fields.

build environment

You can then choose one of two options to register Test Run:

  • Option 1, when:
    • you want an easy integration and don't want to adapt your build scripts too much
    • you are OK with defining the version in Jenkins to register the Test Run
  • Option 2, when:
    • you don't mind using an additional plug-in in your Ant/Maven scripts
    • you want to re-use the Ant/Maven version to register the Test Run

At the end of the build, add the Dynatrace AppMon post-build action to retrieve the test results. You can also decide if the test results will change the build status.

post build action

Passing Test Run id registered from Jenkins to Maven

Registering Test Run using Dynatrace Maven plugin

Passing Test Run id registered from Jenkins to Ant

Registering Test Run using Dynatrace Ant plugin

Passing Test Run id registered from Jenkins to NAnt

dynatrace-plugin's People

Contributors

chojna avatar dglugla avatar knecel avatar lugowskii avatar micchal avatar sonjachevre avatar wbachnik avatar wgottesheim avatar

Watchers

 avatar  avatar  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.