MXBuild stuck after BUILD SUCCEEDED

0
Hi, I'm working to integrate MXBuild for on-prem Mendix app into our CI/CD pipelines. I'm using Gitlab runner on Windows machine using mxbuild 10.12.5.45892. I'm able to script everything and execute it, and the mda file will be created correctly. The problem is that the mxbuild executable cannot ends correctly, so the CI/CD pipeline remains stuck after showing "BUILD SUCCEEDED" in the logs. Gitlab CICD runner uses poweshell, so I tried to replicate the same issue by running mxbuild tool directly on the build machine using powershell scripts: same problem. What I discovered is that actually the mxbuild.exe disappears from Task Manager, but a java.exe process remains open, and if I killed that one then the powershell script will resume.   Do you know if this is a bug or a misconfiguraiton? Thanks Matteo
asked
2 answers
0

Hello Matteo!

 

This may happen because a process called Watchman is locking the java.exe process. This also occurs with the NBUI, where the bundle is finished, but the UI still considers that the process is running.

 

Solution (in my case, this may vary): 

Add another step in your GitLab pipeline to run a PowerShell script that kills the watchman process:

 

# Kill the watchman process
Get-Process | Where-Object { $_.Name -eq "watchman" } | Select-Object -First 1 | Stop-Process

 

 

answered
0

Hello,

 

I am having the same issue as you but for mxbuild version 9.24.31.53726.

Same issue where the OpenJDK platform binary is still running.

 

Have you still got this issue?

 

Thanks 

answered