In my Jenkinsfile, I have below, which seems to clone the latest version that triggered the Jenkins build. However, it did not fetch any tags.
Is there a way to customize checkout scm to fetch all git tags?
stage('Checkout') {
steps {
checkout scm
}
}