From f885ca29787072ed1c5d481f99e9caffc0f2daf1 Mon Sep 17 00:00:00 2001 From: Jim Nicholson Date: Thu, 1 Feb 2024 14:40:30 -0800 Subject: [PATCH] Try adding extensions --- vars/checkoutStep.groovy | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vars/checkoutStep.groovy b/vars/checkoutStep.groovy index e991991..2a74c40 100644 --- a/vars/checkoutStep.groovy +++ b/vars/checkoutStep.groovy @@ -6,7 +6,8 @@ String call(Map config = [:]) { ] Map runConfig = defaults + config - checkout scm + checkout scmGit(extensions: [submodule(recursiveSubmodules: true, reference: ''), + cloneOption(noTags: false, reference: '', shallow: false)]) gitTag = sh( script: "git describe --tags --always --dirty=${runConfig.dirtyFlag}",