I am looking for a way where i can fetch source code from sub folder which is under a GitLab project as part of Jenkins setup .
I have a repository https://gitlab.com/surendra1344/git-test.git under this i have a folder named “Maven-test” . Here i need to fetch the source code which is inside “Maven-test” folder. So in Jenkins i am giving https://gitlab.com/surendra1344/git-test and its fetching the maven-test folder in to Jenkins workspace while building the project and later while deploying its failing because its not able to find the pom.xml which is under “maven-test” folder . When i am providing https://gitlab.com/surendra1344/git-test/maven-test Jenkins unable to connect to that repo .
Can any one please help in how to fetch source code which is under a sub-folder of GitLab project
Thanks in advance,