Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using jenv to set Java version on Jenkins Mac agent node #4278

Merged
merged 2 commits into from
Dec 12, 2023

Conversation

jordarlu
Copy link
Contributor

Description

Using jenv instead of Jenkins tool to set Java version on Mac agent nodes

Issues Resolved

part of #4272

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

@jordarlu
Copy link
Contributor Author

tesing a jenkins file with using input_manifest as 3.0.0/opensearch-3.0.0.yml on staging CI

[Pipeline] {
+ jenv local openjdk-21
[Pipeline] withEnv
[Pipeline] {
[Pipeline] withEnv
[Pipeline] {
[Pipeline] withDockerRegistry
[Pipeline] withDockerRegistry
[Pipeline] echo
get java_version
[Pipeline] sh
 > git rev-parse origin/main^{commit} # timeout=10
 > git config core.sparsecheckout # timeout=10
 > git checkout -f f603314c1481e6b72603313f523e2de20a830c90 # timeout=10
[Pipeline] {
[Pipeline] {
[Pipeline] isUnix
[Pipeline] withEnv
+ java -version
openjdk version "21.0.1" 2023-10-17 LTS
OpenJDK Runtime Environment Temurin-21.0.1+12 (build 21.0.1+12-LTS)
OpenJDK 64-Bit Server VM Temurin-21.0.1+12 (build 21.0.1+12-LTS, mixed mode)
[Pipeline] {

@jordarlu jordarlu self-assigned this Dec 12, 2023
Copy link

codecov bot commented Dec 12, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (b9116fd) 91.26% compared to head (25ccd39) 91.26%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #4278   +/-   ##
=======================================
  Coverage   91.26%   91.26%           
=======================================
  Files         189      189           
  Lines        6124     6124           
=======================================
  Hits         5589     5589           
  Misses        535      535           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@jordarlu jordarlu merged commit 9043e0f into opensearch-project:main Dec 12, 2023
13 checks passed
@jordarlu jordarlu deleted the jenv_mac branch December 12, 2023 20:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants