-
Notifications
You must be signed in to change notification settings - Fork 29
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
Allure TeamCity plugin locks file #80
Comments
Temporary workaround - killing processes with swabra. |
Hi |
Process it locked by TeamCity agent itself. So swabra will interrupt build in this case. |
Hi, |
Hi, i have the same problem.
Somebody can tell me workaround this problem? p.s. on TeamCity Allure plugin 2.6 all worked all right |
I found workaround this problem that not require killing TC agent.
You can create your custom TC metaranner https://teamcity.your-domain.com/admin/editProject.html?projectId=_Root&tab=metaRunner the following content:
And then uses it into your custom TC configurations after Allure Report build step. |
I am having exactly same issue.. following |
We are also hitting this issue big time, and honestly, having a metarunner for this is so hacky it is not even fun. Sub. |
+1 on this |
1 similar comment
+1 on this |
have the same problem |
I got the same problem with windows agents. Java process on agent still use |
@Silencegod you can kill java process not manually but as @konstest provided above (his powershell code works properly). It helped me (thanks @konstest a lot).
Here you just need to replace |
@alex-dylda, killing process is invalid solution. Holding process is Teamcity Agent. If you kill it then build will be stopped too. Also killing processes because developers are unable to close resources isn't a good practice. |
If you read carefully you could see that agent process will not be killed only java handles that locking the file will be killed, so it would not interrupt agent work.
This a temporary workaround while the bug with locking folder will not be fixed (maybe it will never be fixed). It's a pitty but I don't know how to fix the bug, so this fix helps me now. |
@alex-dylda, yes, agree. I'm still not sure that handle killing is safe (because there aren't proofs that handle isn't really needed). However you are right, this operation doesn't touch TC Agent. |
@imanushin, I agree that this can be unsafe, but I use it for couples of weeks and for a while no problems. Once fix will be implemented I will remove this step with a great pleasure) |
|
@alex-dylda But, it will be work only if you start this task in agents with system user, otherwise, even if you admin, UAC control process, and you can't kill it. |
Please review PR. I added try-with-resources statement for Files.list. It's need for close stream. |
I'm submitting a ...
What is the current behavior?
Allure TeamCity plugin step locks files in the
my-application/allure-results
folder. So next build could not checkout git folder, because directory is usedIf the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem
always checkout on agent
.Allure Report
Allure report
even if some of the previous steps failed
my-application/allure-results/
my-application/allure-report/
What is the expected behavior?
TeamCity builds can be executed on the same agent without agent restart.
What is the motivation / use case for changing the behavior?
This behavior prevents
Allure Report
runner type usage, because agent has to be restarted after firstAllure Report
usage.Please tell us about your environment:
Other information
The text was updated successfully, but these errors were encountered: