Skip to content
This repository has been archived by the owner on Jan 21, 2024. It is now read-only.

Commit

Permalink
Use find operator, instead of match operator
Browse files Browse the repository at this point in the history
  • Loading branch information
slide committed Apr 14, 2020
1 parent 9981588 commit 4a055e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ pipeline {
}

def tagName = "${env.TAG_NAME}"
if(tagName ==~ '\\d\\.\\d') {
if(tagName =~ /\d(\.\d)+(-\d+)?/) {
// we need to build and publish the tagged version
infra.withDockerCredentials {
powershell "& ./make.ps1 -PushVersions -VersionTag $tagName publish"
Expand Down

0 comments on commit 4a055e9

Please sign in to comment.