Issue in Jenkins set up for sub-folder of a GitLab project

Hi All,
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 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 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 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,