-
Notifications
You must be signed in to change notification settings - Fork 231
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Requesting help in using the new Classifications programatically #118
Comments
I don't have plan for this, you can prepare PR so I will of course merge it |
Hi, Also, please guide me on how I should test the changes before I send the PR as I have not worked on Jenkins plugins before. Problem - Classification is throwing a NotSerializableExceptionI get a net.masterthought.jenkins.CucumberReportPublisher$Classification NotSerializableException error when using the Cucumber-reports plugin via Jenkins file. Potential Solution
Steps to reproduce the problem are mentioned below.
|
I haven't got problem with serialization. |
Hi, I have just submitted a PR for this issue (#137). Kindly review the same. Here is what my Jenkins file looks like (to dynamically add classifications to the report via the cucumber-reports-plugin:
The implementation for method getClassificationsFromFile is as shown below:
|
Support for using the new Classifications programatically Issue #118
Hi,
Thanks you for the new support to add Classifications in the jenkins plugin for cucumber-reports.
I have a small question - I use Jenkins file approach to configure my job. In this job, I have a stage to publish cucumber reports as shown below
As shown above, I need to pass the classifications to the report at runtime - by reading a json file. The contents of this file is dynamic - i.e. each test run may have different information populated in this file during the test execution.
The json file format can be tweaked in any way to make it easier for setting the classifications correctly.
I am stuck at how convert the json in the format needed below at runtime -
Example json:
Can you please help? Thanks.
The text was updated successfully, but these errors were encountered: