Application is a monolith/monorepo where we have both, backend .net and, frontend vue app.
On our Sonarcloud organisation we have both projects and they are set up as monorepo, however we are only getting frontend analysis out of this setup - without the frontend analysis - backend analysis works without any issues
C#, typescript, html, css
In our pull request pipeline yml we have following commands
That’s correct, each one of them independently works, but if both analysis are put into a single pipeline we only get the later - in this case frontend one.
In fact we have this in one pipeline, apologies I copied over the wrong thing.
Would this be possible do in a single pipeline as we would like to have our PR pipeline as mandatory quality gate which would do both analysis
The azure devops extensions still work as a sequence of tasks : Prepare, Analyze, and Publish (this one is optional)
Here also, you are building with 2 different build technologies, and I’m afraid, if you build your .NET code with the “manual” config mode, it won’t work.
So then what you’ll have to do is to :
Build your frontend code with the config mode “manual”, making sure your are following the sequence mentioned above (Prepare, build steps if relevant, analyze) → Everything will be pushed on your frontend project on SonarCloud
Then do the same for the backend code : Prepare (“msbuild” config mode), ** .NET build steps ** and analyze.