I am working on an automated deployment POC for SharePoint projects. We are using jenkin jobs to download the source code from GIT repository and BUILD it where SharePoint is not installed and copy the WSPS to target SharePoint server for initiating deployment process using .ps1 files.
MSBuild is failing saying SharePoint related dlls are not available, which is expected. What is going to be the best way to supply the dlls? Or any better approach for this whole process?
The workaround what I'm thinking of at the moment is, I would adjust the jenkins job to download the source code from GIT to target SharePoint server directly and then build there rather than trying to build somewhere where SP is not installed and then move WSP to target SP Server. Please suggest.
Thanks is advance...