allure-framework / allure-teamcity

Teamcity CI plugin allowing to generate Allure Report as build artifact
https://qameta.io/allure-report
Apache License 2.0
37 stars 29 forks source link

Could not find or load main class ru.yandex.qatools.allure.AllureMain #36

Closed baev closed 8 years ago

baev commented 8 years ago

OS: Windows Server 2012 R2 Standard

[16:28:39]Step 7/7: Generate Report (Allure Report)
[16:28:39][Step 7/7] Starting: C:\TeamCity\jre\bin\java.exe -Dallure.config=C:\TeamCity\buildAgent\temp\buildTmp\allure-config8054267216528330979\allure.properties -Dallure.home=C:\TeamCity\buildAgent\tools\allure-commandline -classpath C:\TeamCity\buildAgent\tools\allure-commandline\lib/*;C:\TeamCity\buildAgent\tools\allure-commandline\conf ru.yandex.qatools.allure.CommandLine -v generate C:\TeamCity\buildAgent\work\b61432085ed25452\results --output C:\TeamCity\buildAgent\temp\buildTmp\allure-report2432461476451923049
[16:28:39][Step 7/7] in directory: C:\TeamCity\buildAgent\work\b61432085ed25452
[16:28:39][Step 7/7] Error: Could not find or load main class ru.yandex.qatools.allure.AllureMain
[16:28:39][Step 7/7] [0;31mERROR: [mCommand aborted due to exception org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1).
[16:28:39][Step 7/7] Process exited with code 1
[16:28:40][Step 7/7] Step Generate Report (Allure Report) failed
baev commented 8 years ago

@teknogecko is the problem still relevant?

baev commented 8 years ago

Seems like problem in allure-commandline. So could you please simply run the commandline in such environment?

teknogecko commented 8 years ago

Yes. I will have a look at it next week.

teknogecko commented 8 years ago

Same result.

C:\TeamCity\jre\bin\java.exe -Dallure.config=C:\TeamCity\buildAgent\temp\buildTmp\allure-config8054267216528330979\allure.properties -Dallure.home=C:\TeamCity\buildAgent\tools\allure-commandline -classpath C:\TeamCity\buildAgent\tools\allure-commandline\lib/*;C:\TeamCity\buildAgent\tools\allure-commandline\conf ru.yandex.qatools.allure.CommandLine -v generate C:\TeamCity\buildAgent\work\b61432085ed25452\results
Error: Could not find or load main class ru.yandex.qatools.allure.AllureMain
←[0;31mERROR: ←[mCommand aborted due to exception org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1).

Help shows up when I don't supply parameters...

C:\TeamCity\jre\bin\java.exe -Dallure.home=C:\TeamCity\buildAgent\tools\allure-commandline -classpath C:\TeamCity\buildAgent\tools\allure-commandline\lib/*;C:\TeamCity\buildAgent\tools\allure-commandline\conf ru.yandex.qatools.allure.CommandLine
usage: allure [(-q | --quiet)] [(-v | --verbose)] <command> [<args>]

The most commonly used allure commands are:
    generate   Generate report
    help       Display help information
    report     Report commands
    version    Display version

See 'allure help <command>' for more information on a specific command.
baev commented 8 years ago

@teknogecko found the problem, hotfix 1.4.20 is coming soon. See https://github.com/allure-framework/allure-core/issues/725

baev commented 8 years ago

@teknogecko if you want you can try the snapshot right now allure-commandline.zip

teknogecko commented 8 years ago

Hi Dmitry,

I just got back from vacation. Happy new year!

Will have a look at it right away!

Best regards, Bas

On Thu, 24 Dec 2015 at 16:02 Dmitry Baev notifications@github.com wrote:

@teknogecko https://github.com/teknogecko if you want you can try the snapshot right now allure-commandline.zip https://github.com/allure-framework/allure-teamcity-plugin/files/71776/allure-commandline-1.5.0-SNAPSHOT-standalone.zip

— Reply to this email directly or view it on GitHub https://github.com/allure-framework/allure-teamcity-plugin/issues/36#issuecomment-167121322 .

vania-pooh commented 8 years ago

@teknogecko btw, now it's our turn to be on vacation till next week. :)

baev commented 8 years ago

@teknogecko any updates?

teknogecko commented 8 years ago

Very busy with a release... next week.

On Tue, 12 Jan 2016 at 16:17 Dmitry Baev notifications@github.com wrote:

@teknogecko https://github.com/teknogecko any updates?

— Reply to this email directly or view it on GitHub https://github.com/allure-framework/allure-teamcity-plugin/issues/36#issuecomment-170944058 .

baev commented 8 years ago

ok, I got it)

baev commented 8 years ago

all should be fine for now

Iryna- commented 8 years ago

Hi guys,

I'm still getting this problem on Mac - http://stackoverflow.com/questions/36814163/allure-for-jenkins-on-osx-getting-error-could-not-find-or-load-main-class-ru

baev commented 8 years ago

@Iryna- Hi!

I guess you are talking about Allure Jenkins Plugin, not a TeamCity one. Could you please create an issue here https://github.com/jenkinsci/allure-plugin/issues

Iryna- commented 8 years ago

Thanks @baev . Raised https://github.com/jenkinsci/allure-plugin/issues/52