Good morning, dear
When trying to run the task on azure devops I am facing the following problem “##[error]No agent found in pool Default01 which satisfies the specified demands: java, Agent.Version -gtVersion 2.181.2”.
- I’m using a Windows Server 2019 self-hosted agent, and I have the Java environment variable “JAVA_HOME_17_X64” .
- I’m using Azure Devops Server, and I’m using Sonarqube 5.15.0 extension
- I’m using version 9.9 of sonarqube.
Below I presente my pipeline configuration
trigger:
- master
pool:
name: Default01
variables:
solution: ‘**/*.sln’
buildPlatform: ‘Any CPU’
buildConfiguration: ‘Release’
steps:
-
task: SonarQubePrepare@5
inputs:
SonarQube: ‘Service SonarQube’
scannerMode: ‘CLI’
configMode: ‘file’ -
task: PowerShell@2
displayName: ‘Restore packages and build solution’
inputs:
targetType: ‘inline’
script: |
yarn --verbose
failOnStderr: false -
task: SonarQubeAnalyze@5
inputs:
jdkversion: ‘JAVA_HOME_17_X64’