I want to check out a specific folder (as per below, e.g.: 10.0-RC-3) from a GIT repo in jenkins pipeline.
I have below structure in GIT repo : https://gitlab.xxx.org/Titan/Testing/Test-project/
10.0-RC-1
10.0-RC-2
10.0-RC-3
I tried with below code, but that didn't work
stage(checkout specific folder){
scm:[
userRemoteConfigs:[
[
credintialsId: 'MySecretId',
url: 'https://gitlab.xxx.org/Titan/Testing/Test-project.git'
name: env.gitlabTargetNamespace
]
]
]
sh "git archive --remote='https://gitlab.xxx.org/Titan/Testing/Test-project/' 'master' '10.0-RC-3'
}
i getting error as "fatal:operation not supported by protocol".