Sunday, 18 March 2018

VisualStudio db keep open

This can be useful for Jenkins:

cd "c:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE"
cmd /c "set BUILD_ID=DoNotKill && start mspdbsrv -start -spawn -shutdowntime 2147483647"

When there are running several simultaneously Visual Studio build help to avoid failed builds.
The reason when there is a running job, which finished the Jenkins will close all started process. But VS has a shared process mspdbsrv which can be used by another VS build process. In this case the second one will be a broken build.

There are another hidden environment variable that also useful:

_MSPDBSRV_ENDPOINT_ = this set up single instance for every targets. With this you can avoid oom on Jenkins build.

No comments:

Post a Comment