jenkinsci / allure-plugin

Allure Jenkins Plugin
https://plugins.jenkins.io/allure-jenkins-plugin/
Other
84 stars 63 forks source link

Include build environment in Jenkins #141

Open ghost opened 7 years ago

ghost commented 7 years ago

In allure2 it is not implemented although it was present in allure1. It would be good to have it back.

vbragin commented 6 years ago

@da-yaroslav-orel Please explain the problem more detailed.

ghost commented 6 years ago

@vbragin In Allure2 'include build environment' checkbox doesn't work. So when report is generated 'Environment' section on landing page is empty. image

marvelfrozen commented 6 years ago

Any updates on this issue? I assume there's some technical problem implementing this feature on allure2. Meanwhile, any workaround that we can use for now?

Edit: I try putting environment.properties in /allure-results and it shows up in the report. It's good enough for now I guess.

kemuning commented 6 years ago

@gavrilfb how did you copy your environment.properties into /allure-result ? Is it via Jenkins or in you specify in your pom.xml ?

marvelfrozen commented 6 years ago

@kemuning There are several ways to do that. If you are using Jenkins, you could just put a pre-build step calling copy command. Or you could just create some codes to generate the files in your source code.

usmichael commented 6 years ago

@gavrilfb How did you managed it to work? I'm using allure v2.6 and I'm forcing the environment.properties into allure-results in a shell step before running the post-build allure action, but data is not appearing in the report. When inspecting the allure-results workspace the file is there indeed and with my content but searching for it in the allure-report the widgets/environment.json is empty.

marvelfrozen commented 6 years ago

@usmichael what is your environment.properties file structure? i use standard .ini format key = value

also, the properties will show unordered in the reports. if you found any ways to make it ordered please share it.

usmichael commented 6 years ago

Hey @gavrilfb,

File content is as so:

my.properties.browser=SAFARI
my.properties.url=http://yandex.ru