Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include build environment in Jenkins #141

Open
ghost opened this issue Jul 10, 2017 · 8 comments
Open

Include build environment in Jenkins #141

ghost opened this issue Jul 10, 2017 · 8 comments

Comments

@ghost
Copy link

ghost commented Jul 10, 2017

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

@vbragin
Copy link
Collaborator

vbragin commented Oct 10, 2017

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

@ghost
Copy link
Author

ghost commented Oct 10, 2017

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

@marvelfrozen
Copy link

marvelfrozen commented Nov 6, 2017

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
Copy link

kemuning commented Mar 9, 2018

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

@marvelfrozen
Copy link

@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
Copy link

usmichael commented Apr 18, 2018

@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
Copy link

marvelfrozen commented Apr 19, 2018

@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
Copy link

Hey @gavrilfb,

File content is as so:

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants