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.4 Teamcity 9.1.7 : Incompatible runner: Allure Report #42

Closed anuvratashu closed 7 years ago

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

ViaMay commented 8 years ago

don't work too! I have TC 9.1.7 and Java 1.8.

valmaev commented 8 years ago

I encountered same issue with TeamCity 10.0:

For each subfolder in tools TeamCity will create configuration parameter on each build agent with following name: teamcity.tool.subfolder.

Allure TeamCity plugin uses teamcity.tool.allure-commandline parameter to determine compatible runners but since subfolder name is invalid it shows incompatible runner error.

I'm not sure who should fix this behavior (Allure or TeamCity) but you can apply one of the following quick fixes:

  1. on each build agent rename folder buildagent/tools/generic.allure-commandline to buildagent/tools/allure-commandline and restart them or
  2. on each build agent in buildagent.properties file add teamcity.tool.allure-commandline=<absolute path to allure-commandline> and restart them
    • for example: teamcity.tool.allure-commandline=/opt/buildagent/tools/generic.allure-commandline
baev commented 8 years ago

Hi! Sorry for the delay. I'll take a look

ViaMay commented 8 years ago

I did step 2, and dont have problem. Thank

baev commented 8 years ago

I can confirm that since TC10 uploaded tools have name with generic.prefix.

You can also upload your own tool as a .zip archive: the structure of the tool plugin is described on the Plugins Packaging page. TeamCity will use the name of the zip file as the tool name on all agents. The zip file will be automatically unpacked on the agents to the directory with the same name. Docs

@nskvortsov @ekoshkin Hi! Is this works like expected? How am I supposed to deal with this?

ghost commented 8 years ago

@baev it is a regression in TeamCity 10, I've created an issue for it https://youtrack.jetbrains.com/issue/TW-46452

baev commented 8 years ago

Thanks

arjaysalvadora commented 8 years ago

@valmaev quick fixes does not worked in my end with TeamCity v10.0. may i know the allure-teamcity-plugin and allure-commandline you used?

baev commented 8 years ago

@anuvratashu it doesn't matter which version of Allure you are using. Make sure you have an agent with allure-commandline tool installed (Agents -> Select agent -> Agent Parameters -> Configuration Parameters contains teamcity.tool.allure-commandline parameter with the right path to Allure commandline)

valmaev commented 8 years ago

TeamCity 10.0.1 released and TW-46452 should be fixed.