qa-guru / allure-notifications

jar, that draws piechart from results and sends it with link to build to messenger
Apache License 2.0
477 stars 77 forks source link

Run allure-notifications in Jenkins failed #123

Closed vasili439 closed 2 years ago

vasili439 commented 2 years ago

Hi! When I try to run allure-notifications in jenkins like:

java -DconfigFile=./allure-notifications.json -Dchat.id=#gateway-allure-reports -Dbot.token=.... -Dproject.name=gateway-123 -Dbuild.launch.name=Some release 2.0 -Dbuild.env=https://prod.your.site/ -Dbuild.report.link=https://jenkins....../190/ -Dlang=en -Denable.chart=true -Dallure.report.folder=allure-report -jar allure-notifications-4.2.1.jar

it fails with:

13:32:14  2022-08-09 10:32:14 INFO  JSON:22 - Parsing *.json file by path /widgets/summary.json
13:32:14  2022-08-09 10:32:14 ERROR Application:32 - Unable to find config file by path /widgets/summary.json

but why it wants to open /widgets/summary.json in root folder while I've specifed -Dallure.report.folder=allure-report ?

vasili439 commented 2 years ago

sorry. my bad. but path in the config has more priority than path in -Dallure.report.folder=