Scanner command used when applicable (private details masked)
Languages of the repository: CLI scanner against YAML and PowerShell
Error observed (wrap logs/code around with triple quotes ``` for proper formatting)
##[error]09:28:09.791 ERROR Could not find the pullrequest with key '25031'
Steps to reproduce
Re-queue the pull request requirement
Potential workaround ?
Do not share screenshots of logs – share the text itself (bonus points for being well-formatted)!
I raised a PR to the same repository last week and did not experience this.
I have confirmed the repository exists in the correct location, and is in SonarQube etc.
The project is bound in SonarQube.
There is nothing different that I can tell between the last PR that ran as expected on Thursday (October 8th) and the one that failed which ran today (October 12th).
When manually run the pipeline for the same branch I do not receive the error.
We’ve had another instance where a PR pipeline is failing when triggered by PR but not when manually executed against the same branch.
The consistent thing is the failure on the SonarCloud Analyze task when the pipeline is PR triggered.
##[error]org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'org.sonarsource.scanner.api.internal.IsolatedClassloader@32ee6fee-org.sonar.scanner.qualitygate.QualityGateResult': Unsatisfied dependency expressed through constructor parameter 0: Error creating bean with name 'org.sonarsource.scanner.api.internal.IsolatedClassloader@32ee6fee-org.sonar.scanner.scan.ScanProperties': Unsatisfied dependency expressed through constructor parameter 0: Error creating bean with name 'ProjectConfiguration' defined in org.sonar.scanner.scan.ProjectConfigurationProvider: Unsatisfied dependency expressed through method 'provide' parameter 6: Error creating bean with name 'org.sonarsource.scanner.api.internal.IsolatedClassloader@32ee6fee-com.sonarsource.scanner.architecture.ArchitectureProjectConfigurationSource': Unsatisfied dependency expressed through constructor parameter 0: Error creating bean with name 'org.sonarsource.scanner.api.internal.IsolatedClassloader@32ee6fee-com.sonarsource.scanner.architecture.ArchitectureConfigLoader': Unsatisfied dependency expressed through constructor parameter 0: Error creating bean with name 'org.sonarsource.scanner.api.internal.IsolatedClassloader@32ee6fee-com.sonarsource.scanner.architecture.ArchitectureAnalysisContextAdapter': Unsatisfied dependency expressed through constructor parameter 0: Error creating bean with name 'Analysis' defined in org.sonar.scanner.analysis.AnalysisProvider: Unsatisfied dependency expressed through method 'provide' parameter 1: Error creating bean with name 'org.sonarsource.scanner.api.internal.IsolatedClassloader@32ee6fee-org.sonar.scanner.analysis.AnalysisCreator': Unsatisfied dependency expressed through constructor parameter 3: Error creating bean with name 'BranchConfiguration' defined in org.sonar.scanner.scan.branch.BranchConfigurationProvider: Failed to instantiate [org.sonar.scanner.scan.branch.BranchConfiguration]: Factory method 'provide' threw exception with message: Could not find the pullrequest with key '25014'
Update, I found the PAT was showing as invalid, so have tried to refresh it, but am receiving the following when updating, I know it is a valid PAT, configured as required