Unable to analyse pull requests for branches that contain slashes (release/, feature/ etc)

I’ve created a pipeline that analyses builds which works perfectly, however I’m unable to see pull request analysis for pull requests. This only appears to be a problem when using an organised branching structure.

For example, creating a pull request of feature/123-some_feature into release/vnext. I can see the full analysis perfectly fine, when viewing the pull request I can see there’s a warning telling with the following content - “Could not find ref ‘vnext’ in refs/heads, refs/remotes/upstream or refs/remotes/origin. You may see unexpected issues and changes. Please make sure to fetch this ref before pull request analysis.”

The analysis task outputs the following:

sonar.pullrequest.base=release/vnext
sonar.pullrequest.branch=some_feature
sonar.pullrequest.provider=vsts

12:50:28.006 INFO: Pull request 1234 for merge into vnext from some_feature

12:50:28.270 WARN: Could not find ref: vnext in refs/heads, refs/remotes/upstream or refs/remotes/origin

I’m unsure if I’m missing some configuration or if there’s a genuine problem. It’s quite common for people to use git-flow like branching structures. release/ hotfix/ etc.

Hello there,

A fix has been deployed, can you check on your side and tell us if it’s ok ?

Thanks.
Mickaël

Hello,

Thanks for the update, do I need to do anything special on my end or do I need to just re-run my analysis ?

Thanks,

Harry

Just re-running the analysis should be fine.

Mickaël

Thanks a lot, this is working perfectly.

This issue can now be closed,

Harry

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.