I am loooking for a way to copy the scm
variable to modify it in a custom checkout
function
how can I do this, without modifying the global scm
variable?
def scmCopy = scm.makeCopy() // somehow copy this??
scmCopy.getExtensions().remove([$class: 'GitLFSPull'])
checkout(scmCopy)