Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
steelhead31 committed Oct 9, 2024
1 parent 939e803 commit 0a039b1
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions linux/sfr.dev/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ def ModifiedJDKArray = []
def distro = ""
def arch = ""
def ReleaseVersion = ""
def Release = ""
def Version = ""
def Build = ""

/* Pipeline Declaration */

Expand Down Expand Up @@ -216,9 +219,9 @@ pipeline {
def versparser = (PVERS =~ versionPattern)

if (versparser.matches()) {
def Release = versparser[0][1].toInteger()
def Version = versparser[0][2] ? versparser[0][2] : null
def Build = versparser[0][3]
Release = versparser[0][1].toInteger()
Version = versparser[0][2] ? versparser[0][2] : null
Build = versparser[0][3]
} else {
error("Version string format is invalid: ${PVERS}")
}
Expand Down

0 comments on commit 0a039b1

Please sign in to comment.