File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change 11@Library (' shared-libraries' ) _
22
3+ def getJava (){
4+ if (env. JAVA_VERSION == " JAVA17" ){
5+ return " /home/builder/java/jdk-17.0.2"
6+ }else if (env. JAVA_VERSION == " JAVA11" ){
7+ return " /home/builder/java/jdk-11.0.2"
8+ }else {
9+ return " /home/builder/java/openjdk-1.8.0-262"
10+ }
11+ }
12+
313def runtests (String type , String version ){
414 copyRPM type, version
515 setUpML ' $WORKSPACE/xdmp/src/Mark*.rpm'
@@ -58,9 +68,10 @@ pipeline{
5868 parameters{
5969 booleanParam(name : ' regressions' , defaultValue : false , description : ' indicator if build is for regressions' )
6070 string(name : ' Email' , defaultValue : ' ' ,description : ' Who should I say send the email to?' )
71+ string(name : ' JAVA_VERSION' , defaultValue : ' JAVA8' ,description : ' Who should I say send the email to?' )
6172 }
6273 environment{
63- JAVA_HOME_DIR = " /home/builder/java/openjdk-1.8.0-262 "
74+ JAVA_HOME_DIR = getJava()
6475 GRADLE_DIR = " .gradle"
6576 DMC_USER = credentials(' MLBUILD_USER' )
6677 DMC_PASSWORD = credentials(' MLBUILD_PASSWORD' )
You can’t perform that action at this time.
0 commit comments