Add support for Allure 3#423
Conversation
|
This PR is very appreciated! thank you @caseyjhol |
|
@skuznetsov-al I resolved build issues. |
|
Hi @caseyjhol, thank you for supporting Allure 3 with the latest Jenkins Allure plugin. I noticed there is a new option in Manage Jenkins -> Tools -> Allure 3 (from PATH) installations Previously, I used "Allure Commandline installations" option and selected Maven Central, but now it says "legacy". I can see the Version but now as a text field, previously it was a dropdown populated with Allure Commandline version list from Maven. There is no documentation on how to setup this in Allure Jenkins official page: https://allurereport.org/docs/integrations-jenkins/ Cheers. |
|
@dsufriawan Seems like an oversight on my part; I could've sworn I added some external documentation. For Allure 3, you need 'allure' installed ( |
|
Hi @caseyjhol, I just tried pipeline syntax guideline, we need to mention the allureVersion as well if using script pipeline If not, it will always fallback to Allure 2 (even though npm install -g allure already done). It may worth documenting this part as well Thank you |
Add Allure 3 Support
This PR adds support for Allure 3 alongside the existing Allure 2 support. Resolves #413.
Key Changes
allureto be pre-installed vianpm install -g allureawesome/subdirectory structureFiles Changed
Allure3Installation.javaAllureInstallation.javaReportBuilder.javagetAllure3Arguments()for Allure 3 CLI syntaxAllureReportPublisher.javaallureVersionfield and version-aware installation handlingAllureReportPublisherDescriptor.javaFilePathUtils.javaconfig.jellyconfig.propertiesMessages.propertiesUsage
For Allure 2 (default):
For Allure 3:
npm install -g allureallurecommand is available in PATHTesting done
Allure3ConfigTest.javato verify:createAllure3Publisher()test helper inTestUtils.javaSubmitter checklist