Skip to content

Commit 788ba23

Browse files
committed
Fix Jenkinsfile to not ust strip but trim
1 parent a255fd1 commit 788ba23

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Jenkinsfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def getNativeJdkUrl(String os, String arch) { // To update the used JDK version
7171
}
7272

7373
def getLatestGitTag() {
74-
return sh(script: 'git describe --abbrev=0 --tags --match v[0-9][0-9][0-9][0-9]*', returnStdout: true).strip()
74+
return sh(script: 'git describe --abbrev=0 --tags --match v[0-9][0-9][0-9][0-9]*', returnStdout: true).trim()
7575
}
7676

7777
def getSWTVersions() { // must be called from the repository root
@@ -159,7 +159,7 @@ pipeline {
159159
def sources = sourceFoldersProps.collectEntries{ k, src -> [ k, src.split(',').collect{ f -> '\'' + f + '\''}.join(' ') ] }
160160
for(ws in allWS) {
161161
def diff = sh(script: "git diff HEAD ${swtTag} ${sources.src_common} ${sources['src_' + ws]}", returnStdout: true)
162-
if (!diff.strip().isEmpty()) {
162+
if (!diff.trim().isEmpty()) {
163163
NATIVES_CHANGED += ws
164164
}
165165
}

0 commit comments

Comments
 (0)