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 15dba13 commit a18a681
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions linux/sfr.dev/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -219,12 +219,13 @@ pipeline {
echo "Debug 02 - ${versparser}"

if (versparser.matches()) {
def Release = versparser[0][1].toInteger()
def Version = versparser[0][2] ?: null
def Build = versparser[0][3]
def Release = versparser[0][1]
// def Version = versparser[0][2] ?: null
def Version = (Release.contains('.')) ? Release.split('\\.')[1] : null
def Build = versparser[0][2]

echo "Release: ${Release}"
echo "Version: ${Version != null ? secondElement : 'null'}"
echo "Version: ${Version != null ? Version : 'null'}"
echo "Build: ${Build}"
} else {
error("Version string format is invalid: ${PVERS}")
Expand Down

0 comments on commit a18a681

Please sign in to comment.