R1 is the main project, it has a jenkinsfile and R2 is needed for one of a stage. I configured pipeline (within Jenkins) to checkout both repos. I don’t see the R2 code in the agent machine even though Console Output shows it checked out the code. Also, I want to checkout R2 code in a separate directory. Thanks.
From your question . I am not sure you are using a manifest to clone your repo or you configure your pipeline to git clone the repo separately
"Also, I want to checkout R2 code in a separate directory "
Best way to do that is by manifests
Did you try to debug by checking the list of file and the current working directory when jenkins state that it checked out the code
Within Jenkins pipeline configuration I added 2 repository. Can you provide an example for manifest.
You can refer to this post about manifest
Within Jenkins pipeline configuration I added 2 repository.
Could you share out your pipeline script
I did via the Jenkinsfile. Thanks.