Skip to content
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

Automatic base branch detection #1541

Closed
gregory-paidis-sonarsource opened this issue Mar 27, 2023 · 1 comment · Fixed by #1543
Closed

Automatic base branch detection #1541

gregory-paidis-sonarsource opened this issue Mar 27, 2023 · 1 comment · Fixed by #1543

Comments

@gregory-paidis-sonarsource
Copy link
Contributor

The base branch parameter should be automatically detected in PR Context, in order to enable Incremental PR Analysis.

The following CI Providers need to be supported, according to this MMF:

  • Jenkins
  • Github Actions
  • GitLab CI
  • BitBucket Pipelines
@gregory-paidis-sonarsource
Copy link
Contributor Author

Tested it with Github Actions:

12:47:31.788  Incremental PR analysis: Automatically detected base branch 'master' from CI Provider 'GitHub Actions'.
12:47:31.788  Fetching properties for project 'AutomaticDetectionGithubActions:master'...
12:47:31.945  Downloading from https://sonarcloud.io/api/settings/values?component=AutomaticDetectionGithubActions:master...
12:47:31.945  No settings for project AutomaticDetectionGithubActions:master. Getting global settings...
12:47:32.102  Downloading from https://sonarcloud.io/api/settings/values...
12:47:32.102  Downloading cache. Project key: AutomaticDetectionGithubActions, branch: master.
12:47:33.744  Incremental PR analysis: 2 files out of 3 are unchanged.
12:47:33.79  Pre-processing succeeded.

Full logs can be found here

@gregory-paidis-sonarsource gregory-paidis-sonarsource changed the title Automatic base branch detection in various CI Providers Automatic base branch detection Mar 29, 2023
@costin-zaharia-sonarsource costin-zaharia-sonarsource moved this from Review in progress to In progress in S4NET Kanban Mar 29, 2023
@github-actions github-actions bot moved this from In progress to Review in progress in S4NET Kanban Mar 30, 2023
@github-actions github-actions bot moved this from Review in progress to In progress in S4NET Kanban Mar 30, 2023
@github-actions github-actions bot moved this from In progress to Review in progress in S4NET Kanban Mar 30, 2023
S4NET Kanban automation moved this from Review in progress to Done Mar 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
S4NET Kanban
  
Done
Development

Successfully merging a pull request may close this issue.

2 participants