Skip to content

Commit

Permalink
fix version regex (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
tt-marcel committed Feb 21, 2024
1 parent a5b7ca8 commit af9a912
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/e2e/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ pipeline {
script {
pyprojectContent = readFile 'pyproject.toml'
// This pattern matches versions like "1.0", "1.1.0", "1.1.0-beta", etc.
pattern = ~'version\\s*=\\s*"(\\d+(\\.\\d+)*(-\\w+)?"'
pattern = ~'version\\s*=\\s*"(\\d+(\\.\\d+){1,2}(-\\w+)?)"'
matcher = pattern.matcher(pyprojectContent)
if (matcher.find()) {
env.PRODUCT_VERSION = matcher.group(1)
Expand Down

0 comments on commit af9a912

Please sign in to comment.