Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
vikas0105 committed Jan 2, 2025
1 parent 74ffb0a commit f10566e
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ pipeline {
agent any

environment {
JAVA_HOME = '/usr/lib/jvm/java-17-openjdk-amd64'
JAVA_HOME = '/usr/lib/jvm/java-17-openjdk-amd64' // Adjust if needed
}

stages {
Expand All @@ -15,9 +15,7 @@ pipeline {
stage('Set Up Java') {
steps {
script {
// Install Java 17 if not already installed
sh 'sudo apt update'
sh 'sudo apt install openjdk-17-jdk -y'
// Verify Java 17 is available
sh 'java -version'
}
}
Expand Down

0 comments on commit f10566e

Please sign in to comment.