I have a weird issue when executing an ADO release using my self-hosted agents (running in a Ubuntu VM). These agents are configured as a service as well. When I ran the release, they return this error:
##[error]Unhandled: Failed to find the specified JDK version. Please ensure the specified JDK version is installed on the agent and the environment variable 'JAVA_HOME_11_X64' exists and is set to the location of a corresponding JDK or use the Java Tool Installer task to install the desired JDK.
I've checked the value of Java variable, and it's configured ok.
What is weird in this situation is that if I execute the agent manually, and not as a service, the deployment works correctly...
Any idea about what could be wrong here?
Regards! [1]: https://i.stack.imgur.com/DwV2e.jpg