Hi all,
I’m having a problem in our pipeline setup, where we need to use multiple jobs to switch between a self-hosted agent (for SonarQube) and a Microsoft-hosted agent.
Here’s our pipeline structure:
Jobs:
-job* SonarQubePrepare (Self-hosted agent for SonarQube)
-job* BuildAndAnalyze (Microsoft-hosted agent)
-job* SonarQubeAnalysis (Self-hosted agent for SonarQube)
-job* PublishArtifacts (Microsoft-hosted agent)
We’re seeing the following error during the SonarQubeAnalyze step:
##[error]Variables are missing. Please make sure that you are running the Prepare task before running the Analyze task.
I’m using SonarQube on-premises. Any help is appreciated.
thank you.
Make sure you are not mixing tasks from different major versions. If you are using a multistage pipeline, make sure the tasks are in the same stage.