Skip to content

Commit

Permalink
Update build job for JDK 11
Browse files Browse the repository at this point in the history
Signed-off-by: Maxim Nesen <maxim.nesen@oracle.com>
  • Loading branch information
senivam authored and lukasj committed Feb 11, 2021
1 parent db4f348 commit c81f6fa
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
5 changes: 5 additions & 0 deletions Jenkinsfile
Expand Up @@ -64,6 +64,11 @@ spec:
steps {
container('mail-ci') {
sh """
wget 'https://download.java.net/openjdk/jdk11/ri/openjdk-11+28_linux-x64_bin.tar.gz' -O openjdk-11.tar.gz
tar -xzf openjdk-11.tar.gz
cd jdk-11
export JAVA_HOME=`pwd`
cd ..
bash -x ${WORKSPACE}/docker/build_jakartamail.sh
"""
archiveArtifacts artifacts: 'mail/target/*.jar'
Expand Down
10 changes: 2 additions & 8 deletions docker/build_jakartamail.sh
@@ -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 @@ -14,11 +14,5 @@
#
# SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0

mvnq() {
# filter out progress reports (-B) and download details
mvn -B "$@" | grep -v '^\[INFO\] Download'
}


# Build
mvnq -Pstaging clean install
mvn -B -V -Pstaging clean install

0 comments on commit c81f6fa

Please sign in to comment.