We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 03d4e84 commit b47424dCopy full SHA for b47424d
vars/mavenCiPipeline.groovy
@@ -63,7 +63,7 @@ def call(Closure closure) {
63
echo "Last Version: ${lastVersion}"
64
def versionPattern = Pattern.compile(Pattern.quote(versionTemplate).replaceAll('\\Q${revision}\\E', '\\\\E(?<revision>\\\\d+)\\\\Q').replaceAll('\\Q${sha1}\\E', '\\\\E[0-9a-fA-F]+\\\\Q'))
65
echo "Version Pattern: ${versionPattern}"
66
- def matcher = lastTag =~ versionPattern
+ def matcher = lastVersion =~ versionPattern
67
if (matcher.matches()) {
68
def lastRevision = matcher.group('revision') as Integer
69
echo "Version pattern matches; Last Revision: ${lastRevision}"
0 commit comments