Reputation: 1695
I'm trying to add SonarQube into a CI pipeline on Azure DevOps.
My project is .Net Core 2.2 application. The error is related to Agent JDK. I don't know how can I specify the JDK of Microsoft Hosted Agent.
All the tutorials of SonarQube and .NET core pipelines are the same, but none mentioned anything about this issue.
Here's a snapshot about how my pipeline looks like:
Here's the error that's always happening with me. Shouldn't Microsoft Hosted Agent know what capabilities
to use by its own?
Anyone have an idea about how we can solve this error?
Upvotes: 1
Views: 321
Reputation: 1695
The problem was in the JDK used in Micorosft Hosted Machine, for some reason the JDK used was not the supposed one. The solution was following these steps:
zip
file to Azure blob storagezip
file as resourceHere's how my pipeline looks like right now:
Upvotes: 1