I have a SonarQubeAnalyze@4 task in 2 different Azure DevOps build pipeline yaml files: one for Windows and Python, another for Linux and C++. In both cases the builds succeed but:
- The automated notification [Build succeeded] email I receive from DevOps has a red cross with no message next to the corresponding job and…
- The build results page will report an error with “No message found for this issue” next to it. Example screenshot:
This is more of an annoyance as it makes it looks like the build has failed, when it hasn’t!
This may be unrelated but if I look at the logs for the SonarQubeAnalyze task in DevOps, the only mention of ‘error’ is this, from a Linux build:
##[debug]WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by net.sf.cglib.core.ReflectUtils$1 (file:/home/vsts/.sonar/cache/a89f1943fc75b65becd9fb4ecab8d913/sonar-tsql-plugin.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain)
WARNING: Please consider reporting this to the maintainers of net.sf.cglib.core.ReflectUtils$1
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by net.sf.cglib.core.ReflectUtils$1 (file:/home/vsts/.sonar/cache/a89f1943fc75b65becd9fb4ecab8d913/sonar-tsql-plugin.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain)
WARNING: Please consider reporting this to the maintainers of net.sf.cglib.core.ReflectUtils$1
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
##[debug]Processed: WARNING: All illegal access operations will be denied in a future release##vso[task.logissue type=error;]
Similarly for a Windows build:
##[debug]WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by net.sf.cglib.core.ReflectUtils$1 (file:/C:/Users/VssAdministrator/.sonar/cache/a89f1943fc75b65becd9fb4ecab8d913/sonar-tsql-plugin.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain)
WARNING: Please consider reporting this to the maintainers of net.sf.cglib.core.ReflectUtils$1
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by net.sf.cglib.core.ReflectUtils$1 (file:/C:/Users/VssAdministrator/.sonar/cache/a89f1943fc75b65becd9fb4ecab8d913/sonar-tsql-plugin.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain)
WARNING: Please consider reporting this to the maintainers of net.sf.cglib.core.ReflectUtils$1
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
##[debug]Processed: WARNING: All illegal access operations will be denied in a future release##vso[task.logissue type=error;]
Looking through the results for several builds, I don’t always see the “No message found for this issue” error for SonarQubeAnalyze. But every time I do I also see the above warning/error in the logs. So the 2 probably are related.
The Microsoft-hosted build agents I use are the ‘ubuntu-18.04’ and ‘windows-2019’ VM images.