Docker-compose error after upgrading to Sonarqube 9.6

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
    Developer Edition Version 9.6 (build 59041)
    SonarScanner for MSBuild 5.7.2

  • what are you trying to achieve
    Since upgrade to 9.6 we see an error during analysis

##[error]ERROR: Failed to parse file [docker-compose.override.yml] at line 64: The : indicator must be at most 1024 chars after the start of an implicit block mapping key

The offending code is in an override file where we add a network and portmapping

  backend-db:
   networks:
     # Enable local access
     - external
   ports:
      # Enable local access through port 5432
      - 5432:5432
  • what have you tried so far to achieve this
    Not much because I don’t know what I can do, besides googling on the error.
    Any tips are welcome.

It turned out to be a comment way above this code that was out of place.
Not sure why we started seeing this after upgrading to 9.6 though

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.