From 63e8c3a34827c32fbcc48493588efa58046577ab Mon Sep 17 00:00:00 2001 From: Joseph Manley Date: Fri, 20 Dec 2019 15:12:39 -0500 Subject: [PATCH] Avoid double `get_version` --- vars/runAutoSemver.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vars/runAutoSemver.groovy b/vars/runAutoSemver.groovy index 45618ab..43d364f 100644 --- a/vars/runAutoSemver.groovy +++ b/vars/runAutoSemver.groovy @@ -38,7 +38,7 @@ def call(dockerImage = "rightbrainnetworks/auto-semver:latest") { env.SEMVER_NEW_VERSION = sh(script: "grep -Po '${regex}' .bumpversion.cfg", returnStdout: true).trim() env.SEMVER_RESOLVED_VERSION = getVersion('-d') - env.VERSION = getVersion('-d') + env.VERSION = env.SEMVER_RESOLVED_VERSION } } \ No newline at end of file