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

[BUG]: Self-Hosted Ubuntu 22.04 fails to detect JAVA_HOME environment variables when using Temurin JDK. #4911

Open
1 of 4 tasks
sicil1ano opened this issue Jul 29, 2024 · 1 comment

Comments

@sicil1ano
Copy link

What happened?

I am using the exact same image used by Microsoft for their hosted agents to run a self-hosted Ubuntu 22.04 agent (https://learn.microsoft.com/en-us/azure/devops/pipelines/agents/hosted?view=azure-devops&tabs=yaml and https://github.com/actions/runner-images/blob/main/images/ubuntu/Ubuntu2204-Readme.md) and JAVA_HOME environment variables are not appearing in the System capabilities.

The environment variables are part of the PATH (if that exists in Linux):

adminuser@vmss-agents-1:~/azdevopsagent$ $JAVA_HOME_17_X64
-bash: /usr/lib/jvm/temurin-17-jdk-amd64: Is a directory
adminuser@vmss-agents-1:~/azdevopsagent$ $JAVA_HOME_11_X64
-bash: /usr/lib/jvm/temurin-11-jdk-amd64: Is a directory
adminuser@vmss-agents-1:~/azdevopsagent$ $JAVA_HOME
-bash: /usr/lib/jvm/temurin-11-jdk-amd64: Is a directory

The agent installs Temurin JDKs and I think the agent is not supporting those.

Please see this for details: https://github.com/actions/runner-images/blob/main/images/ubuntu/scripts/build/install-java-tools.sh

Versions

Azure DevOps 3.242.1 - Ubuntu 22.04

Environment type (Please select at least one enviroment where you face this issue)

  • Self-Hosted
  • Microsoft Hosted
  • VMSS Pool
  • Container

Azure DevOps Server type

dev.azure.com (formerly visualstudio.com)

Azure DevOps Server Version (if applicable)

No response

Operation system

No response

Version controll system

No response

Relevant log output

No response

@sicil1ano sicil1ano added the bug label Jul 29, 2024
@sicil1ano sicil1ano changed the title [BUG]: Self-Hosted Ubuntu 22.04 fails to detect JAVA_HOME environment variables. [BUG]: Self-Hosted Ubuntu 22.04 fails to detect JAVA_HOME environment variables when using Temurin JDK. Jul 29, 2024
@vmapetr vmapetr self-assigned this Aug 1, 2024
@kirill-ivlev
Copy link
Contributor

Hi @sicil1ano, thanks for reporting! We are working on more prioritized issues at the moment, but will get back to this one soon.

@vmapetr vmapetr removed their assignment Aug 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants