Skip to content

Commit

Permalink
Merge pull request #28 from gurunrao/jdk11-build
Browse files Browse the repository at this point in the history
jdk11 build
  • Loading branch information
gurunrao authored Sep 28, 2021
2 parents c1081c7 + 1f713c0 commit f8e91fe
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
4 changes: 2 additions & 2 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ spec:
description: 'URL required for downloading GlassFish Full/Web profile bundle' )
choice(name: 'PROFILE', choices: 'FULL\nWEB',
description: 'Profile to be used for running CTS either web/full' )
choice(name: 'JDK', choices: 'JDK8\nJDK11',
description: 'Java SE Version to be used for running TCK either JDK8/JDK11' )
choice(name: 'JDK', choices: 'JDK11',
description: 'Java SE Version to be used for running TCK either JDK11' )
string(name: 'TCK_BUNDLE_FILE_NAME',
defaultValue: '',
description: 'Name of bundle file to be appended to the base url' )
Expand Down
6 changes: 4 additions & 2 deletions docker/build_cditck.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash -xe
#
# Copyright (c) 2018, 2020 Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2018, 2021 Oracle and/or its affiliates. All rights reserved.
#
# This program and the accompanying materials are made available under the
# terms of the Eclipse Public License v. 2.0, which is available at
Expand All @@ -15,10 +15,12 @@
# SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0

echo "ANT_HOME=$ANT_HOME"
echo "export JAVA_HOME=$JAVA_HOME"
echo "export JAVA_HOME=$JDK11_HOME"
echo "export MAVEN_HOME=$MAVEN_HOME"
echo "export PATH=$PATH"

export JAVA_HOME=$JDK11_HOME

cd $WORKSPACE

mkdir -p ${WORKSPACE}/bundles
Expand Down
9 changes: 4 additions & 5 deletions docker/run_cditck.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash -xe
#
# Copyright (c) 2018, 2020 Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2018, 2021 Oracle and/or its affiliates. All rights reserved.
#
# This program and the accompanying materials are made available under the
# terms of the Eclipse Public License v. 2.0, which is available at
Expand All @@ -16,6 +16,8 @@

VER=3.0.0

export JAVA_HOME=$JDK11_HOME

if ls ${WORKSPACE}/bundles/*cdi-tck*.zip 1> /dev/null 2>&1; then
unzip -o ${WORKSPACE}/bundles/*cdi-tck*.zip -d ${WORKSPACE}
else
Expand Down Expand Up @@ -107,10 +109,7 @@ mvn --global-settings "${TS_HOME}/settings.xml" org.apache.maven.plugins:maven-i
which ant
ant -version

if [[ "$JDK" == "JDK11" || "$JDK" == "jdk11" ]];then
export JAVA_HOME=${JDK11_HOME}
export PATH=$JAVA_HOME/bin:$PATH
fi
export PATH=$JAVA_HOME/bin:$PATH

which java
java -version
Expand Down

0 comments on commit f8e91fe

Please sign in to comment.