Skip to content

Commit

Permalink
feat: add Java 17 for Jenkins
Browse files Browse the repository at this point in the history
Related #3686
  • Loading branch information
UlisesGascon committed Sep 2, 2024
1 parent dfb4ae4 commit f313981
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 6 deletions.
16 changes: 12 additions & 4 deletions orka/templates/macos-13-arm-test.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -64,21 +64,29 @@ build {
"/opt/homebrew/bin/brew doctor || true"
]
}
// Install dependencies using Homebrew.
// Install dependencies for build and test.
provisioner "shell" {
inline = [
"echo 'Installing packages using Homebrew...'",
"eval \"$(/opt/homebrew/bin/brew shellenv)\"",
"/opt/homebrew/bin/brew install git automake bash libtool cmake python ccache"
]
}

// Install Java 17 for Jenkins.
provisioner "shell" {
inline = [
"echo 'Installing JRE...'",
"eval \"$(/opt/homebrew/bin/brew shellenv)\"",
"/opt/homebrew/bin/brew install --cask temurin@17",
]
}
// Print the version of the installed packages.
provisioner "shell" {
inline = [
"echo 'Printing the version of the installed packages...'",
"eval \"$(/usr/local/bin/brew shellenv)\"",
"/opt/homebrew/bin/brew list --versions"
"eval \"$(/opt/homebrew/bin/brew shellenv)\"",
"/opt/homebrew/bin/brew list --versions",
"java -version"
]
}
}
13 changes: 11 additions & 2 deletions orka/templates/macos-13-intel-test.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -63,20 +63,29 @@ build {
"/usr/local/bin/brew doctor || true"
]
}
// Install dependencies using Homebrew.
// Install dependencies for build and test.
provisioner "shell" {
inline = [
"echo 'Installing packages using Homebrew...'",
"eval \"$(/usr/local/bin/brew shellenv)\"",
"/usr/local/bin/brew install git automake bash libtool cmake python ccache"
]
}
// Install Java 17 for Jenkins.
provisioner "shell" {
inline = [
"echo 'Installing JRE...'",
"eval \"$(/usr/local/bin/brew shellenv)\"",
"/usr/local/bin/brew install --cask temurin@17",
]
}
// Print the version of the installed packages.
provisioner "shell" {
inline = [
"echo 'Printing the version of the installed packages...'",
"eval \"$(/usr/local/bin/brew shellenv)\"",
"/usr/local/bin/brew list --versions"
"/usr/local/bin/brew list --versions",
"java -version"
]
}
}

0 comments on commit f313981

Please sign in to comment.