How to classify build failures with jenkins?

I am looking for a solution that would classify assembly failures, for example:

  • developer (developer added bad code)
  • build system (error in the build system)
  • infrastructure problem (servers are not responding)

It would be great if this could be done automatically most of the time based on the console output, but we also need an option to build a certain status.

How can we get this behavior from jenkins?

+5
source share
3 answers

. , . , .

, Jenkins, . , . XML , Jenkins. .

Lightweight Jenkins plugin for manual failure categorization

, , . , . , , Build Failure Analyzer .

, . - , , Failure Analyzer , Jenkins Jenkins - Jenkins. XStream , XML.

+2

( , , , http://[jenkins_server]/job/[job_name]/[build_number]/editDescription " " ).

JI-CLI Jenkins ( set-build-description); Groovy Jenkins Java API - Run:: setDescription().

Groovy Groovy , Groovy PostBuild .

+1

, , : https://github.com/nacuteodor/SearchInJenkinsLogs. . , , , . , , .

You can use this tool to search for glitches in the logs of artifacts that you want to report and record asap, and you can force the task to send an email notification or not complete the task task assembly. In the future I will add some other features.

+1
source

All Articles