In the log you will find the following lines:
Unable to start the daemon process.
Error: The process '...' failed with exit code 1`
This problem might be caused by incorrect configuration of the daemon.
For example, an unrecognized jvm option used.
Please refer...
Process command line: ...
Please read the following process output to find out more:
Unrecognized option: --illegal-access=permit
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
The decisive part:
Unrecognized option: --illegal-access=permit
Please check your pipeline, environment (variables) and project if the parameter is set there.
E.g. by DEFAULT_JVM_OPTS.
Please check your Java version. Is the same JVM version used in the local and Azure build? In Java 8 this parameter did not exist yet. It was introduced with Java 9.
For more information about --illegal-access
click here.