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

Use allure-raw-results/$taskName/allure-results so different tasks use different folders #77

Closed
wants to merge 2 commits into from

Conversation

vlsi
Copy link
Contributor

@vlsi vlsi commented Oct 7, 2021

Gradle best practice is to make sure different tasks output files to the different folders, so up-to-date and caching works better.

fixes #50

vlsi added 2 commits October 7, 2021 15:14
…e different folders

Gradle best practice is to make sure different tasks output files to the different folders,
so up-to-date and caching works better.

fixes #50
val rawResults = project.layout.buildDirectory.dir("allure-results").get().asFile
// Note: it is very important that results directory is named `allure-results`, so the folder is automatically
// detected by Allure Jenkins plugin.
val rawResults = project.layout.buildDirectory.dir("allure-raw-results/${task.name}/allure-results").get().asFile
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

An alternative option is allure-raw-results/${task.name}/build/allure-results so the ones who hard-code build/allure-results would find the results folder as well.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@KroArtem
Copy link

@vlsi , hello, do you think there are any chances merging this PR?

@vlsi
Copy link
Contributor Author

vlsi commented Jul 25, 2022

As far as I remember, Allure Jenkins plugin expects the results in a hard-coded folder, so if allure produces multiple folders with results, then Jenkins plugin won't work.

I guess I can add an option for "single vs separate folders", however, I wanted to revisit what Jenkins plugin does, and I had no time to do that yet.

@vlsi vlsi closed this by deleting the head repository Sep 17, 2022
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

Successfully merging this pull request may close these issues.

support resultsDir per test task
2 participants