forked from github-mirror/CoreProtect
Update Jenkinsfile
This commit is contained in:
1 parent
db2b126fe5
commit
0d9805779d
1 file changed
+8
-2
Vendored
+8
-2
@@ -15,12 +15,18 @@ pipeline {
|
|||||||
stage('Install JDK 25') {
|
stage('Install JDK 25') {
|
||||||
steps {
|
steps {
|
||||||
sh '''
|
sh '''
|
||||||
if ! java -version 2>&1 | grep -q "25"; then
|
if [ ! -d "/opt/jdk25/bin" ]; then
|
||||||
curl -sL "https://api.adoptium.net/v3/binary/latest/25/ga/linux/x64/jdk/hotspot/normal/eclipse" \
|
echo "Installing JDK 25..."
|
||||||
|
curl -L "https://api.adoptium.net/v3/binary/latest/25/ga/linux/x64/jdk/hotspot/normal/eclipse" \
|
||||||
-o /tmp/jdk25.tar.gz
|
-o /tmp/jdk25.tar.gz
|
||||||
|
|
||||||
|
rm -rf /opt/jdk25
|
||||||
mkdir -p /opt/jdk25
|
mkdir -p /opt/jdk25
|
||||||
|
|
||||||
tar -xzf /tmp/jdk25.tar.gz -C /opt/jdk25 --strip-components=1
|
tar -xzf /tmp/jdk25.tar.gz -C /opt/jdk25 --strip-components=1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
ls -la /opt/jdk25/bin
|
||||||
'''
|
'''
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user