mirror of
https://github.com/sigmasternchen/xtext-core
synced 2025-03-15 08:18:55 +00:00
[eclipse/xtext#1812] Change display name computation
Synched file with implementation from xtext-eclipse Signed-off-by: Karsten Thoms <karsten.thoms@karakun.com>
This commit is contained in:
parent
752afe3711
commit
58d33491fd
1 changed files with 5 additions and 3 deletions
8
Jenkinsfile
vendored
8
Jenkinsfile
vendored
|
@ -40,7 +40,7 @@ pipeline {
|
|||
checkout scm
|
||||
|
||||
script {
|
||||
currentBuild.displayName = String.format("#%s(%s)", BUILD_NUMBER, javaVersion(JDK_VERSION))
|
||||
currentBuild.displayName = String.format("#%s(JDK%s)", BUILD_NUMBER, javaVersion())
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -112,6 +112,8 @@ pipeline {
|
|||
}
|
||||
}
|
||||
|
||||
def javaVersion(String version) {
|
||||
return version.replaceAll(".*-(jdk\\d+).*", "\$1")
|
||||
/** return the Java version as Integer (8, 11, ...) */
|
||||
def javaVersion() {
|
||||
return Integer.parseInt(params.JDK_VERSION.replaceAll(".*-jdk(\\d+).*", "\$1"))
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue