I want to clone my repo by either branch or tag in jenkins declarative pipeline.
Currently I have to use the following for tags:
checkout scm: [$class: