Skip to content

Commit

Permalink
Fixes following linting/review
Browse files Browse the repository at this point in the history
  • Loading branch information
sxa committed Jun 28, 2023
1 parent 4e9e262 commit 7d4ce94
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions pipelines/build/common/build_base_file.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -773,8 +773,12 @@ class Builder implements Serializable {
// Translate jdk-AA+BB to jdk-AA-0-BB
// Translate jdk-AA.B.C+DD to jdk-AA-C-DD-ea-beta
// Note that jdk-AA-B-C-D+EE will become jdk-AA-C-D-EE-ea-beta
if ( firstDot==-1 ) publishName=publishName.substring(4,plusSign)+'.0.'+publishName.substring(plusSign+1)
else publishName=publishName.substring(4,firstDot)+publishName.substring(secondDot).replace("+","-")
if ( firstDot==-1 ) {
publishName=publishName.substring(4,plusSign)+'.0.'+publishName.substring(plusSign+1)

} else {
publishName=publishName.substring(4,firstDot)+publishName.substring(secondDot).replace("+","-")
}
publishName='ea_'+publishName.replaceAll("\\.","-")
}

Expand Down

0 comments on commit 7d4ce94

Please sign in to comment.