Must-share information (formatted with Markdown):
- which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension) 10.6
- how is SonarQube deployed: zip, Docker, Helm Helm
- what are you trying to achieve Scanning the code using the sonar scanner
Can some through some insight on this ? why i am facing the error
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Injecting SonarQube environment variables using the configuration: SonarQube
[Pipeline] {
[Pipeline] sh
- sonar-scanner -Dsonar.pullrequest.key=1483 -Dsonar.pullrequest.branch=PRICE1-7805 -Dsonar.pullrequest.base=develop
ERROR: Error during SonarScanner execution
ERROR: No branch exists in Sonarqube with the name develop
ERROR:
ERROR: Re-run SonarScanner using the -X switch to enable full debug logging.
[Pipeline] }
WARN: Unable to locate ‘report-task.txt’ in the workspace. Did the SonarScanner succeed?
[Pipeline] // withSonarQubeEnv
[Pipeline] sh - tail -n 20 sonar-scanner.log
INFO: Load/download plugins
INFO: Load/download plugins (done) | time=636ms
INFO: Process project properties
INFO: Process project properties (done) | time=1307ms
INFO: Execute project builders
INFO: Execute project builders (done) | time=2ms
INFO: Project key: com.tvh.microservices:ms-pricing-engine
INFO: Base dir: /home/jenkins/agent/workspace/ricing_ms-pricing-engine_MR-1483
INFO: Working dir: /home/jenkins/agent/workspace/ricing_ms-pricing-engine_MR-1483/.scannerwork
INFO: Load project settings for component key: ‘com.tvh.microservices:ms-pricing-engine’
INFO: Load project settings for component key: ‘com.tvh.microservices:ms-pricing-engine’ (done) | time=33ms
INFO: Load project branches
INFO: Load project branches (done) | time=1361ms
INFO: Load branch configuration
INFO: ------------------------------------------------------------------------
INFO: EXECUTION FAILURE
INFO: ------------------------------------------------------------------------
INFO: Total time: 39.684s
INFO: Final Memory: 13M/54M
INFO: ------------------------------------------------------------------------
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Release)
Stage “Release” skipped due to earlier failure(s)
[Pipeline] getContext
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Image build and push)
Stage “Image build and push” skipped due to earlier failure(s)
[Pipeline] getContext
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Deployment trigger dev)
Stage “Deployment trigger dev” skipped due to earlier failure(s)
[Pipeline] getContext
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Generate deploy links)
Stage “Generate deploy links” skipped due to earlier failure(s)
[Pipeline] getContext
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
[Pipeline] // timeout
[Pipeline] }
[Pipeline] // withEnv
[Pipeline] }
[Pipeline] // node
[Pipeline] End of Pipeline
ERROR: script returned exit code 2
[GitLab Pipeline Status] Notifying merge request build status: FAILED CI/pricing/ms-pricing-engine/MR-1483 #20: There was a failure building this commit.
09:44:38 [GitLab Pipeline Status] Notified
09:44:38 Finished: FAILURE