Are there any examples of how to setup the scanner in gitlab CI/CD? I found the following ressource but it does not share the whole picture: GitLab Integration | SonarQube Docs
Without building the image in between the scanner has nothing to analyze. So how is the best practice for it?
I guess it could look something like this:
- init scanner
- build dotnet
- publish dotnet
- analyse (build cache)
Does anyone has a working example? In my case I’m building a docker image in my pipeline defined via Dockerfile. That makes it a little bit more complicated but that I can figure out if I have an example of a simple setup.