How to build locally downloaded codebase thru Jenkins?

Umesh Thakur
Jan 3, 2023

--

Few days back I was looking into one build issue, as I was not supposed to make any change to the existing Jenkins job. For that I setup Jenkins on my local machine and configure everything but there was a problem with the permission in our remote codebase repo. due to that I was not able to clone the codebase directly in Jenkins, only after cloning the code to my machine, I was able to build it thru Jenkins. But there was a problem in pointing the locally cloned repo to Jenkins

Solution:

Simply copy the local path of the repo. and pass it as Repository URL and Select Credentials as -none- under Source Code Management tab as in below image.

Note: If there are some issues in the repository URL, Jenkins will show you an error like:

Error scenario

Hope this helps

--

--

Umesh Thakur
Umesh Thakur

Written by Umesh Thakur

Working as Application Developer, Adobe Marketing Cloud at IBM

No responses yet