Tried using
checkout scm: [$class: 'GitSCM',
userRemoteConfigs: [[url: '${repoURL}']],
branches: [[name: 'refs/tags/${tag-version}']]],poll: false
This fails with an Authentication error. Is there any way other than using
withCredentials
to checkout tag in a Jenkinsfile