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

Plugin getting not recognized when running inside a container #901

Open
kirubakaran25 opened this issue Apr 19, 2024 · 1 comment
Open
Labels
bug Something isn't working

Comments

@kirubakaran25
Copy link

Describe the bug
when executing sonar scan normally with Jenkins pipeline, BRANCH configuration is getting detected but when I run the same scanner inside a container like node:18 for nodejs dependency it won't detect the plugin. Am i missing something? any help would be greatly appreciated

To Reproduce
Steps to reproduce the behavior:

  1. Run a docker container and mount the required scanner and java dependencies
  2. run a sonar scan
  3. you can see in the logs no "Auto detected BRANCH configuration" is coming

Expected behavior
should be able to use the plugin inside a container

Screenshots
If applicable, add screenshots to help explain your problem.

Software Versions

  • SonarQube Version: 9.9 LTS
  • Plugin Version: 1.14.0
  • SonarScanner: 5.0.1.3006
  • Java: 17.0.2

Additional context
Add any other context about the problem here.

@kirubakaran25 kirubakaran25 added the bug Something isn't working label Apr 19, 2024
@xC0dex
Copy link

xC0dex commented May 6, 2024

Have you set the environment variables in the container? https://github.com/mc1arke/sonarqube-community-branch-plugin?tab=readme-ov-file#docker

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants