Skip to content

Commit 0cc3c77

Browse files
committed
Use trim() instead of strip() because Jenkins doesn't like it now.
1 parent e1a77bc commit 0cc3c77

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

JenkinsJobs/Releng/publishToMaven.jenkinsfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,6 @@ def installLatestEclipse(){
276276
def install(String toolType, String url) {
277277
dir("${WORKSPACE}/tools/${toolType}") {
278278
sh "curl -L ${url} | tar -xzf -"
279-
return "${pwd()}/" + sh(script: 'ls', returnStdout: true).strip()
279+
return "${pwd()}/" + sh(script: 'ls', returnStdout: true).trim()
280280
}
281281
}

JenkinsJobs/SmokeTests/StartSmokeTests.jenkinsfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,6 @@ def installJDK(String version, String os, String arch, String releaseType='ga')
158158
}
159159
dir ("${WORKSPACE}/java") {
160160
sh "curl -L https://api.adoptium.net/v3/binary/latest/${version}/${releaseType}/${os}/${arch}/jdk/hotspot/normal/eclipse | tar -xzf -"
161-
return "${pwd()}/" + sh(script: 'ls', returnStdout: true).strip()
161+
return "${pwd()}/" + sh(script: 'ls', returnStdout: true).trim()
162162
}
163163
}

0 commit comments

Comments
 (0)