How to set MSBuild to compile multiple times?
In our current product, we have multiple solution files of visual studio and multiple projects in them.
All of them are interlinked and interdependent.
So, the 1st project is dependent on files created by 3rd and 3rd on 4th and 4th on 1st , etc.
So, if we compile 1st project it will fail as the 3rd is not generated the binary files yet, and we continue to compile the 2nd and it also fails and then 3rd, the 3rd will be successful as the 1st and 2nd are partially compiled and the relevant files are available.So once all the projects are compiled, I will retry the failed projects and they will be successful.
So to automate all this part, I have written scripts in python and in that I am doing the retry 5 times and failing the build process if the 5 times limit is completed.
The complete build process I have written my own logic in python.
The requirement now is, We want to switch from this custom written code to existing automation tools like Jenkins, so that it will be well structured.But I didn't see the project compilation retry option in MSBuild.
Can anyone please suggest.
2 Comments
[ + ] Show comments
Answers (0)
Please log in to answer
Be the first to answer this question
I think there will be solution for this in the existing tools also.I don't think what is the necessity of changing the product architecture to integrate it with jenkins.
To remove the same chain of communocation here.I am giving the summary of conversation happened in FB for this question. - ur00361883 7 years ago