[JIRA] (JENKINS-60687) Extend the InfluxDB plugin to send metrics from Serenity reports to InfluxDB

20 views
Skip to first unread message

paul.ireland@bottomline.com (JIRA)

unread,
Jan 8, 2020, 4:09:02 AM1/8/20
to jenkinsc...@googlegroups.com
Paul Ireland created an issue
 
Jenkins / New Feature JENKINS-60687
Extend the InfluxDB plugin to send metrics from Serenity reports to InfluxDB
Issue Type: New Feature New Feature
Assignee: Aleksi Simell
Components: influxdb-plugin
Created: 2020-01-08 09:08
Priority: Minor Minor
Reporter: Paul Ireland

Please extend the InfluxDB plugin to send metrics from Serenity reports to InfluxDB. 

Example metrics:

  • Counts of passing/pending/ignored/skipped/failed/broken/compromised tests
  • Execution time / clock time / fastest test / slowest test / average execution tim
Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo

paul.ireland@bottomline.com (JIRA)

unread,
Jan 8, 2020, 1:34:03 PM1/8/20
to jenkinsc...@googlegroups.com
Paul Ireland updated an issue
Change By: Paul Ireland
Please extend the InfluxDB plugin to send metrics from Serenity reports to InfluxDB. 

Example metrics:
* Counts of passing/pending/ignored/skipped/failed/broken/compromised tests
* Execution time / clock time / fastest test / slowest test / average execution
tim time

If there is an existing way to send metrics from Serenity reports then please let me know!

aleksi.simell@eficode.com (JIRA)

unread,
Jan 9, 2020, 1:12:02 AM1/9/20
to jenkinsc...@googlegroups.com
Aleksi Simell commented on New Feature JENKINS-60687
 
Re: Extend the InfluxDB plugin to send metrics from Serenity reports to InfluxDB

You mean from https://plugins.jenkins.io/serenity?

Currently, you could write custom data to InfluxDB, but then you would need to do the data parsing yourself in your job. However, that might be a bit too troublesome to do in a pipeline, and most probably something the pipeline isn't intended to do anyway.

paul.ireland@bottomline.com (JIRA)

unread,
Jan 10, 2020, 5:26:02 AM1/10/20
to jenkinsc...@googlegroups.com

aleksi.simell@eficode.com (JIRA)

unread,
Jan 10, 2020, 7:45:02 AM1/10/20
to jenkinsc...@googlegroups.com

Make a fork from the plugin repository and create a new file for the generator. Pretty good guidelines can be found from other generators. You will most probably need the `buildAction` from the plugin and then it's just looking at the Serenity plugin code to get the correct data.

Finally, you will need to call the generator inside `InfluxDbPublicationService.java` to actually use the generator.

Additionally, unit tests for the generator would be nice I know the plugin lacks sufficient unit tests, but there should be some tests for other generators you can use as a base.

paul.ireland@bottomline.com (JIRA)

unread,
Jan 11, 2020, 10:12:03 AM1/11/20
to jenkinsc...@googlegroups.com

paul.ireland@bottomline.com (JIRA)

unread,
Jan 11, 2020, 10:12:04 AM1/11/20
to jenkinsc...@googlegroups.com
Paul Ireland edited a comment on New Feature JENKINS-60687
Thanks [~aleksisimell] , your advice was very useful  - I'm working on a Serenity generator now. 

paul.ireland@bottomline.com (JIRA)

unread,
Feb 4, 2020, 10:34:04 AM2/4/20
to jenkinsc...@googlegroups.com

aleksi.simell@eficode.com (JIRA)

unread,
Mar 3, 2020, 2:34:02 AM3/3/20
to jenkinsc...@googlegroups.com
Change By: Aleksi Simell
Status: Open Fixed but Unreleased
Resolution: Done
This message was sent by Atlassian Jira (v7.13.12#713012-sha1:6e07c38)
Atlassian logo

aleksi.simell@eficode.com (JIRA)

unread,
Mar 3, 2020, 2:34:03 AM3/3/20
to jenkinsc...@googlegroups.com

aleksi.simell@eficode.com (JIRA)

unread,
Mar 3, 2020, 2:34:04 AM3/3/20
to jenkinsc...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages