ci: jdk base line 21
This commit is contained in:
parent
a55c01c9c8
commit
a4c0e57821
|
@ -17,11 +17,11 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Set up JDK 17
|
||||
- name: Set up JDK 21
|
||||
uses: actions/setup-java@v3
|
||||
with:
|
||||
distribution: 'temurin'
|
||||
java-version: 17
|
||||
distribution: 'zulu'
|
||||
java-version: 21
|
||||
- name: Build with Maven
|
||||
run: mvn -B package --file pom.xml
|
||||
- name: Upload coverage reports to Codecov
|
||||
|
|
|
@ -12,7 +12,7 @@ pipeline {
|
|||
environment {
|
||||
IMAGE_PREFIX = 'registry.cn-qingdao.aliyuncs.com/metersphere'
|
||||
IMAGE_NAME = 'metersphere'
|
||||
JAVA_HOME = '/opt/jdk-17'
|
||||
JAVA_HOME = '/opt/jdk-21'
|
||||
}
|
||||
stages {
|
||||
stage('Preparation') {
|
||||
|
@ -42,7 +42,7 @@ pipeline {
|
|||
steps {
|
||||
configFileProvider([configFile(fileId: 'metersphere-maven', targetLocation: 'settings.xml')]) {
|
||||
sh '''#!/bin/bash -xe
|
||||
export JAVA_HOME=/opt/jdk-17
|
||||
export JAVA_HOME=/opt/jdk-21
|
||||
export CLASSPATH=$JAVA_HOME/lib:$CLASSPATH
|
||||
export PATH=$JAVA_HOME/bin:/opt/apache-maven-3.8.3/bin:$PATH
|
||||
java -version
|
||||
|
@ -57,7 +57,7 @@ pipeline {
|
|||
steps {
|
||||
configFileProvider([configFile(fileId: 'metersphere-maven', targetLocation: 'settings.xml')]) {
|
||||
sh '''#!/bin/bash -xe
|
||||
export JAVA_HOME=/opt/jdk-17
|
||||
export JAVA_HOME=/opt/jdk-21
|
||||
export CLASSPATH=$JAVA_HOME/lib:$CLASSPATH
|
||||
export PATH=$JAVA_HOME/bin:/opt/apache-maven-3.8.3/bin:$PATH
|
||||
java -version
|
||||
|
|
Loading…
Reference in New Issue