New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Possibility to cloning the full repository #221
Comments
You can modify the git clone via adding a trait / behavior |
Thank you for the answer. I already verified at all behaviors. Non of them solved the problem. |
We see the same problem with SonarQube and Bitbucket Jenkins Plugin. No trait or behavior I tried solved it. |
If you add the advanced git clone? |
Advanced checkout behaviours provides only a timeout setting Which setting do you refer to? |
This is not really something we can solve here, it should be solved in the |
I'm not sure, if it is a git-plugin issue. When I use the normal "Multibranch Pipeline" plugin, everything works. I can see now a difference between the git fetch used by the "Bitbucket Team/Project" and the "Multibranch** Pipeline" plugin. Output from "Multibranch Pipeline"
Output from "Bitbucket Team/Project"
In the git fetch of the "Bitbucket Team/Project" plugin, the "+refs/heads/:refs/remotes/origin/" is too specific. Because of that, I added the behavior "Specify ref specs" with the value "+refs/heads/:refs/remotes/@{remote}/". |
So there is a behavior to add ref specs 😓 |
Jenkins version: 2.164.2
Plugin version: 2.44
Bitbucket cloud
Bitbucket server and version: 6.2.0
Description
When I use the bitbucket-branch-source plugin with the sonarqube branch analysis, the information about the changed lines is missing. Sonarqube shows the following warning: " [WARNING] Could not find ref: master in refs/heads or refs/remotes/origin"
In this comment (https://community.sonarsource.com/t/code-coverage-on-branches-does-not-break-quality-gate/9042/30), a member of sonarqube guess, that not the whole repository is cloned, only a single branch. This would explain, why the information of the changed lines is missing.
Is this true? If yes, would it possible to add a option to clone the whole repository?
Tanks in advance!
The text was updated successfully, but these errors were encountered: