GithubHelp home page GithubHelp logo

gradle-teamcity-log-errors-plugin's Introduction

JetBrains team project

Gradle TeamCity Log Errors Plugin

If your web application includes a suite of acceptance tests, they start an instance of the app and perform external checks using Selenium WebDriver or REST API.

But sometimes backend components of the tested application raise unhandled exceptions, which produce no errors in the UI, and cannot be caught this way. Even if all tests are green, the app still has hidden issues, which should be addressed.

This plugin helps detecting such problems. It provides the reportLogErrors task, which starts after the tests, scans log files for error messages or stacktraces, and reports them to TeamCity as build problems.

If any errors are found, the build is marked as failed. The Build Results page and e-mail notifications show a clear explanation what went wrong:

Build problem

Features

  • Stacktraces: all Java stacktraces are reported, from INFO or WARN messages.
  • Error history: if the same error is reported in multiple builds, even with different timestamps, all occurrences are linked together: assigned investigations and muted problems are preserved.

Usage

buildscript {
    repositories {
        mavenCentral()
        maven { url 'http://repository.jetbrains.com/all' }
    }
    dependencies {
        classpath 'org.jetbrains.teamcity.gradle:log-errors:1.+'
    }
}

apply plugin: 'org.jetbrains.teamcity.log-errors'

reportLogErrors {
    pattern ( /\[.+?\] \s*(\S+) - \s*\S+ - (.*)/ )
    file 'service1.log'
    file 'service2.log'
}
  • pattern: regex string, must contain two saving groups:
    • message level (INFO/WARN/ERROR),
    • a text.
  • file: a log filename.

gradle-teamcity-log-errors-plugin's People

Contributors

mkuzmin avatar julia-alexandrova avatar

Watchers

James Cloos 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.