Commit 753272e2 authored by Robert Knight's avatar Robert Knight

Fix error reporting if version number cannot be bumped

The call to `new IllegalArgumentException` fails inside the sandbox that
the Jenkinsfile script runs in. Use `error` instead per
https://stackoverflow.com/questions/42718785/
parent c896ec41
......@@ -171,7 +171,7 @@ node {
String bumpMinorVersion(String version) {
def parts = version.tokenize('.')
if (parts.size() != 3) {
throw new IllegalArgumentException("${version} is not a valid MAJOR.MINOR.PATCH version")
error "${version} is not a valid MAJOR.MINOR.PATCH version"
}
def newMinorVersion = parts[1].toInteger() + 1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment