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

Azure DevOps hosted build “java” demanded capability not present #3402

Closed
Shahyads opened this issue May 14, 2021 · 4 comments
Closed

Azure DevOps hosted build “java” demanded capability not present #3402

Shahyads opened this issue May 14, 2021 · 4 comments
Assignees

Comments

@Shahyads
Copy link

Shahyads commented May 14, 2021

SonarQube scanner “Run Code Analysis” task demands "java" capability.
On one of our agent host machines, the java capability has gone, since we switched to OpenJDK.
It is working on another server with exactly the same conditions
I don't know how an agent detect java but all java related environment variables are still defined on the agent.
Details are here
We are using Azure DevOps Server 2020
Agent version is 2.177.1 on Windows Server 2012 R2
I will try the latest agent version but i don't see any related topic in the release notes.

@anatolybolshakov
Copy link
Contributor

Hi @Shahyads agent checks following registry keys during capability scanning for this capability:
"Software\JavaSoft\Java Runtime Environment\1.6"
"Software\JavaSoft\Java Runtime Environment\1.7"
"Software\JavaSoft\Java Runtime Environment\1.8"

As a temporary workaround - you can specify custom user capability to provide proper path.
There is a PR already in progress to solve this issue - #3381

@Shahyads
Copy link
Author

Shahyads commented May 14, 2021

Hi @anatolybolshakov,
thank you for your prompt response.
actually I restarted the agents on the second server now both have the same issue.

@EzzhevNikita
Copy link
Contributor

@Shahyads Fix for this issue has been released and available in the latest agent version. I am closing this item currently. Feel free to reopen it in case it still actual for you.

@ofgirichardsonb
Copy link

not fixed, see #3624

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