Skip to content

Commit

Permalink
Pin JDK to v11.0.24
Browse files Browse the repository at this point in the history
  • Loading branch information
chrimih committed Aug 16, 2024
1 parent fe69fcd commit fade7df
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
7 changes: 6 additions & 1 deletion jenkins/build.Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def heapSizeOpts = ""

pipeline {

agent { label 'slave-0' }
agent any

options {
gitlabBuilds(builds: ['build', 'test'])
Expand Down Expand Up @@ -83,8 +83,13 @@ pipeline {
updateGitlabCommitStatus name: 'Jenkins CI-Build', state: 'running'

script {
def jdk = tool name: 'java_11.0.24'
env.JAVA_HOME = "${jdk}"

def mvnHome = tool name: 'mavenlatest', type: 'maven'
mvn = "${mvnHome}/bin/mvn"

sh "$mvn -version"
}
}
}
Expand Down
7 changes: 6 additions & 1 deletion jenkins/merge-build.Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def heapSizeOpts = ""

pipeline {

agent { label 'slave-0' }
agent any

options {
gitlabBuilds(builds: ['build', 'test'])
Expand Down Expand Up @@ -83,8 +83,13 @@ pipeline {
updateGitlabCommitStatus name: 'Jenkins CI-Build', state: 'running'

script {
def jdk = tool name: 'java_11.0.24'
env.JAVA_HOME = "${jdk}"

def mvnHome = tool name: 'mavenlatest', type: 'maven'
mvn = "${mvnHome}/bin/mvn"

sh "$mvn -version"
}
}
}
Expand Down

0 comments on commit fade7df

Please sign in to comment.