-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Description
hi @rainersigwald following information will be helpful for you, please ping me anytime if you need further clarification.
- What kind of project(s) do you have? :
I will tell here all the background information with all the tools we using. We having a private repository in GIT calls "TownSuite/WebPortals" it is a Web Site based on ASP.NET framework and mainly C#,Java Script languages . We have several Multiple c# projects and I will explain you the exact build process later.
The GIT source code build, Test & deployment process we initiated by using our Jenkins CI server. So we have Jenkins master server connecting with Jenkins windows slave node. So Jenikins downloading "TownSuite/WebPortals" Source-Code on to that windows Slave node when start the Build process via Jenkins. Inside that Jenkins windows slave node we have installed Docker Desktop for the purpose of run Windows docker containers on top of that Windows slave node. So that downloaded Source-code we can mount inside the docker container.
- Which Docker image are you using? :
We using a Windows based Docker image. Actually we having powershell scripts (buildrelease-ng-docker.ps1 & buildrelease-ng.ps1) running within our Jenkins file for build and test our WebProjects. So first we run buildrelease-ng-docker.ps1 as below for run the docker container.

Here I highlighted in yellow the docker build image.
- How are you building it in the Docker container?
So as you can see in above image first we running the docker image and we running out build script ".\buildrelease-ng.ps1" at the same time inside the docker container. So all our build tool (MSBuild) and Build command we specifiy inside that buildrelease-ng.ps1 script. I will show an image of inside the buildrelease-ng.ps1 script as below.

So here I Highlighted only a one of the build commands for build one Web.Sln project. Here MSBuild tool we already have installed inside the docker container in following path. $MSBUILD="C:\BuildTools\MSBuild\15.0\Bin\MSBuild.exe".
- What is the exact error you're seeing, including the file that is locked?
Below is the exact I'm getting on my Jenkins Log Output when Building inside docker container by using the MSBuild tool.

This is only one error these kins of errors happening several times on the log when copying several different dll files.
- If possible, please include binary logs ?
I don't know how to get binary logs. Is it the logs for MsBuild ?
Originally posted by @AmilaDevops in #4743 (comment)