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

Plugin 2.2 TeamCity 9.0.1: Incompatible runner: Allure Report #35

Closed teknogecko closed 8 years ago

teknogecko commented 8 years ago

Just installed Allure TeamCity plugin version 2.2 on TeamCity 9.0.1.

I see the plugin has unzipped in the TeamCity and Agent folders, but the Agents keep reporting "Incompatible runner: Allure Report". Even after several full restarts.

team-agent.log: [2015-11-19 12:38:54,428] INFO - rver.plugins.PluginManagerImpl - Loaded 57 plugins: [agentSystemInfo, allure-teamcity-plugin-agent, amazonEC2, ant, ant-net-tasks, antPlugin, assembly-info-patcher, clearcase-agent, commandLineRunner, coveragePlugin, crashDetector, cvsAgent, dotCover, dotnet-tools, dotnetPlugin, dotNetRunners, duplicatePlugin, environment-fetcher, fxcop, gant, gantPlugin, gradle-runner, idea, idea-runner, inspectionPlugin, ipr-runner, jacoco, java-dowser, jetbrains.git, jps, jps-old, junitPlugin, jvm-update, maven, maven3, maven3_1, maven3_2, mavenPlugin, mercurial, meta-runner, nuget-agent, NuGet.CommandLine.2.8.6.nupkg, NuGet.CommandLine.DEFAULT.nupkg, perfmon, perforce-agent, powershell-agent, rake-runner, remoteAccess, ssh-manager, stacktracesPlugin, svnAgent, swabra, SysinternalsHandle, testNGPlugin, tfs-agent, xcode-runner, xml-report-plugin]

As you can see the "allure-teamcity-plugin-agent" plugin seems to be loaded.

baev commented 8 years ago

@teknogecko hi! You also need to install allure-commandline. See step 2 from installation section http://wiki.qatools.ru/display/AL/Allure+TeamCity+Plugin

teknogecko commented 8 years ago

Right... missed that one... thanks! ;-)

teknogecko commented 8 years ago

Hi, I'm stuck again... I've managed to generate the trx file MSTest, then convert it to Xml with the MSTestAllureAdapter, but the report step generates this error:

Error: Could not find or load main class ru.yandex.qatools.allure.AllureMain.

[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

All folders seem to be ok.

baev commented 8 years ago

could you please show me the content of C:\TeamCity\buildAgent\tools\allure-commandline\lib folder?

teknogecko commented 8 years ago

Here you go:

airline.jar allure-commandline.jar cal10n-api.jar commons-exec.jar gson.jar guava.jar javax.inject.jar javax.servlet-api.jar jetty-http.jar jetty-io.jar jetty-server.jar jetty-util.jar jsr305.jar list.txt log4j.jar properties.jar retrofit.jar slf4j-api.jar slf4j-ext.jar slf4j-log4j12.jar

teknogecko commented 8 years ago

Found anything?

baev commented 8 years ago

@teknogecko sorry, I missed this one. Could you please specify your OS version? Win 10 latest all works fine

teknogecko commented 8 years ago

Windows Server 2012 R2 Standard

DimaDubyk commented 8 years ago

Possible reason may be old java version

teknogecko commented 8 years ago

Which version do you recommend?

On Fri, Jan 22, 2016 at 4:36 PM, DimaDubyk notifications@github.com wrote:

Possible reason may be old java version

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

baev commented 8 years ago

I suggest you to use Allure Commandline 1.4.20, all should be fine now. Required java version is 1.7 or later

DimaDubyk commented 8 years ago

For me solution was to update Teamcity agents from old version (older than 8.1.2) to latest 9.1.3. It was surprise for me that teamcity doesn't upgrade agents after upgrade TC server

teknogecko commented 8 years ago

I'm now at TC 9.1.4 with Java 1.8. Will give it a go next week. Busy with releases at work.

anuvratashu commented 8 years ago

I have TC 9.1.7 and Java 1.7. However, the error is still comming up Incompatible runner: Allure Report not sure how to add the allure reporting to the Teamcity.

if i remove the Allure Report then the build runs fine. image

DITLPANW commented 7 years ago

@baev, Hi, Can you please explain how to install the "allure-commandline" on agent ? 10x

baev commented 7 years ago

@DITLPANW please use our Gitter https://gitter.im/allure-framework/allure-core / StackOverflow tag allure for such questions