qa-guru / allure-notifications

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

Argument build.launch.name is not provided #150

Closed cristopher0820 closed 1 year ago

cristopher0820 commented 1 year ago

Im trying to run locally the jar file in order to test, using the following command (tested with 4.2.1 & 2.2.1 versions): java -jar allure-notifications-4.2.1.jar "-Dchat.id=#nova-automation-reports" "-Dbot.token=xoxb-asdsdadsadas" "-Dproject.name=TEST" "-Dbuild.launch.name=Some release 2.0" "-Dbuild.env=https://prod.your.site" "-Dbuild.report.link=https://test.com" "-Dlang=en" "-Denable.chart=true" "-Dallure.report.folder=./allure-results/"

And I got this error in console:

Exception in thread "main" com.github.guru.qa.allure.notifications.exceptions.ArgumentNotProvidedException: Argument build.launch.name is not provided. at com.github.guru.qa.allure.notifications.utils.BuildInfoHelper.lambda$buildLaunchName$0(BuildInfoHelper.java:14) at java.base/java.util.Optional.orElseThrow(Optional.java:403) at com.github.guru.qa.allure.notifications.utils.BuildInfoHelper.buildLaunchName(BuildInfoHelper.java:13) at com.github.guru.qa.allure.notifications.utils.Journal.buildInfo(Journal.java:18) at com.github.guru.qa.allure.notifications.Application.main(Application.java:14) -Dchat.id=#nova-automation-reports -Dbot.token=xoxb-asdasdsadasd -Dproject.name=TEST -Dbuild.launch.name=Some release 2.0 -Dbuild.env=https://prod.your.site -Dbuild.report.link=https://test.com -Dlang=en -Denable.chart=true -Dallure.report.folder=./allure-results/

Im running this on a windows machine with java -version 17.0.5