No Pull Requests analyzed for github monorepo

Template for a good new topic, formatted with Markdown:

  • ALM used (GitHub)

  • CI system used (other)

  • Scanner command used when applicable (private details masked)

  • Languages of the repository

  • Steps to reproduce
    We have added a new project which is part of monorepo and we are using CI method to analyze the code. We can see the analysis in branches but not in PR. we have this sonar-project.properties with the following content:

sonar.projectKey=newton-frontend-projects
sonar.projectName=newton-frontend-projects
sonar.organization=SOMEORG
sonar.sources=.
sonar.inclusions=apps/**/*.ts, libs/**/*.ts
sonar.exclusions=**/*-e2e/**/*, **/*.spec.ts, **/i18n/**/*, libs/pastanaga-angular/**/*, libs/angular-traversal/**/*
sonar.tests=.
sonar.test.inclusions=**/*.spec.ts
sonar.test.exclusions=libs/pastanaga-angular/**/*, libs/angular-traversal/**/*, **/__mocks__/**/*, apps/atlas-demo/**/*
sonar.coverage.exclusions=apps/atlas-demo/**/*
sonar.testExecutionReportPaths=reports/sonar-report.combined.xml
sonar.javascript.lcov.reportPaths=coverage/[combined.lcov.info](http://combined.lcov.info/)
  • Potential workaround

What CI are you using?

We use github and jenkins.

Hey there.

You’ll need to explicitly configure your Jenkins pipeline to set sonar.pullrequest.* analysis parameters when a pull request build is running. This is not done automatically like in other CIs (GitHub Actions, for example)

You might be able to take inspiration from another user in this community