Thank you. I think by build pipeline , you mean my yml?
YML:
“sonarqube-check:
image:
name: sonarsource/sonar-scanner-cli:latest
entrypoint: [”"]
variables:
SONAR_USER_HOME: “{CI_PROJECT_DIR}/.sonar" # Defines the location of the analysis task cache
GIT_DEPTH: "0" # Tells git to fetch all the branches of the project, required by the analysis task
cache:
key: "{CI_JOB_NAME}”
paths:
- .sonar/cache
script:
- sonar-scanner
allow_failure: true
only:
- merge_requests
- master
- develop"
Log lines of Job:
" Running with gitlab-runner 13.8.0 (775dd39d)
-/jobs/50367#L2) on docker qD8JT9NU
/jobs/50367#L3)Preparing the “shell” executor
00:00
-/jobs/50367#L4)Using Shell executor…
/-/jobs/50367#L6)Preparing environment
00:01
-/jobs/50367#L7)Running on DOCKER…
/jobs/50367#L9)Getting source from Git repository
00:04
/jobs/50367#L10)Fetching changes…
-/jobs/50367#L11)Reinitialized existing Git repository in C:/GitLab-Runner/builds/lawdepot/lawdepot/SA-sonarqube-yml-changes/0/.git/
-/jobs/50367#L12)Checking out ab65b50d as refs/merge-requests/5916/head…
-/jobs/50367#L13)git-lfs/2.7.2 (GitHub; windows amd64; go 1.12.2; git 08a08ae0)
-/jobs/50367#L14)Skipping Git submodules setup
-/jobs/50367#L15)Restoring cache
00:00
-/jobs/50367#L16)Version: 13.8.0
-/jobs/50367#L17)Git revision: 775dd39d
-/jobs/50367#L18)Git branch: 13-8-stable
/jobs/50367#L19)GO version: go1.13.8
-/jobs/50367#L20)Built: 2021-01-20T13:32:55+0000
-/jobs/50367#L21)OS/Arch: windows/amd64
-/jobs/50367#L22)Checking cache for sonarqube-check…
-/jobs/50367#L23)Runtime platform arch=amd64 os=windows pid=4420 revision=775dd39d version=13.8.0
-/jobs/50367#L24)No URL provided, cache will not be downloaded from shared cache server. Instead a local version of cache will be extracted.
-/jobs/50367#L25)Successfully extracted cache
-/jobs/50367#L26)Executing “step_script” stage of the job script
00:01
-/jobs/50367#L27)$ sonar-scanner
-/jobs/50367#L28)sonar-scanner : The term ‘sonar-scanner’ is not recognized as the name of a cmdlet, function,
-/jobs/50367#L29)script file, or operable program. Check the spelling of the name, or if a path was included,
-/jobs/50367#L30)verify that the path is correct and try again.
-/jobs/50367#L31)At C:\Users\GitLabRunner-dev\AppData\Local\Temp\build_script610507701\script.ps1:303 char:1
-/jobs/50367#L32)+ sonar-scanner
-/jobs/50367#L33)+ ~~~~~~~~~~~~~
/jobs/50367#L34) + CategoryInfo : ObjectNotFound: (sonar-scanner:String) , CommandNotFoundException
/jobs/50367#L35) + FullyQualifiedErrorId : CommandNotFoundException
(gitlab1.l…t/-/jobs/50367#L36)
(gitlab1…/-/jobs/50367#L37)ERROR: Job failed: exit status 1"
I really appreciate you taking a look, please let me know if I misunderstood or missed something.