add JDK 14 test
diff --git a/Jenkinsfile.sample b/Jenkinsfile.sample
index 344d654..cb0ae76 100644
--- a/Jenkinsfile.sample
+++ b/Jenkinsfile.sample
@@ -20,6 +20,8 @@
try {
node('ubuntu') {
+ def JAVA_JDK_14=tool name: 'JDK 14 (latest)', type: 'hudson.model.JDK'
+ echo "Testing with Java $JAVA_JDK_14"
def JAVA_JDK_13=tool name: 'JDK 13 (latest)', type: 'hudson.model.JDK'
echo "Testing with Java $JAVA_JDK_13"
def JAVA_JDK_12=tool name: 'JDK 12 (latest)', type: 'hudson.model.JDK'
@@ -40,6 +42,13 @@
echo "Testing with Maven $MAVEN_2_LATEST"
def ANT_LATEST=tool name: 'Ant (latest)', type: 'hudson.tasks.Ant$AntInstallation'
echo "Testing with Ant $ANT_LATEST"
+
+ stage('JAVA 14 (Latest) on Ubuntu'){
+ withEnv(["Path+JDK=$JAVA_JDK_14/bin","JAVA_HOME=$JAVA_JDK_14"]) {
+ sh "java -version"
+ sh "javac -version"
+ }
+ } //end stage JAVA 14
stage('JAVA 13 (Latest) on Ubuntu'){
withEnv(["Path+JDK=$JAVA_JDK_13/bin","JAVA_HOME=$JAVA_JDK_13"]) {