How to use SonarSwift(Sonarqube) plugin in Jenkins in Ubuntu 16.04?

I have installed lizard but I’m getting this error when I build my job in Jenkins: 11:00:22.363 ERROR – Lizard Report not found /var/lib/jenkins/workspace/xxxxxxxx/sonar-reports/lizard-report.xml java.io.FileNotFoundException: /var/lib/jenkins/workspace/xxxxxxx/sonar-reports/lizard-report.xml (No such file or directory) at java.io.FileInputStream.open0(Native Method) at java.io.FileInputStream.open(FileInputStream.java:195) at java.io.FileInputStream.<init>(FileInputStream.java:138) at java.io.FileInputStream.<init>(FileInputStream.java:93) at sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:90) at sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:188) at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity(XMLEntityManager.java:623) at com.sun.org.apache.xerces.internal.impl.XMLVersionDetector.determineDocVersion(XMLVersionDetector.java:148) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:806) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:771) at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141) at … Read more

Unable to reach Azure virtual machine on port 9000 for Sonarqube installation

I’m trying to install sonarqube@7.3 with postgresql on a Debian 9 Stretch virtual machine hosted with Microsoft Azure. Everything works properly except that I can’t browse with my real physical machine at mydns.myregion.cloudapp.azure.com:9000. Any clues to work on this ? What you’ll need to know : Sonarqube is working (logs tell that Sonarqube is up … Read more

Sonarqube LDAP authentication fails

I’m trying to install sonarqube 7.7 with ldap authentication against an active directory server and I can’t get it to work. I copied over the settings from another server that runs on the same host, and its ldap settings work. This is my current configuration in sonarqube: ldap.url=ldap://myADserver.mydomain.local:389 ldap.bindDn=”CN=myldapuser,OU=Users,DC=mydomain,DC=local” # ldap.bindPassword=mypassword ldap.authentication=simple ldap.realm=mydomain.local ldap.user.baseDn=”OU=myadgroup,DC=mydomain,DC=local” ldap.user.request=”(&(objectClass=user)(sAMAccountName={login}))” … Read more

SonarQube 7.1 – Debian installation- connection refused

I’m having trouble with first run of a SonarQube 7.1. I still have an error in logs as below: ./sonar.sh console org.elasticsearch.transport.ConnectTransportException: [][127.0.0.1:9001] connect_timeout[30s] at org.elasticsearch.transport.netty4.Netty4Transport.connectToChannels(Netty4Transport.java:362) at org.elasticsearch.transport.TcpTransport.openConnection(TcpTransport.java:570) at org.elasticsearch.transport.TcpTransport.openConnection(TcpTransport.java:117) at org.elasticsearch.transport.TransportService.openConnection(TransportService.java:351) at org.elasticsearch.client.transport.TransportClientNodesService$SimpleNodeSampler.doSample(TransportClientNodesService.java:407) at org.elasticsearch.client.transport.TransportClientNodesService$NodeSampler.sample(TransportClientNodesService.java:357) at org.elasticsearch.client.transport.TransportClientNodesService$ScheduledNodeSampler.run(TransportClientNodesService.java:390) at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingRunnable.run(ThreadContext.java:569) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) Caused by: io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection refused: /127.0.0.1:9001 at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method) … Read more

Not enough workers when trying to access a site with NGINX

I am trying to create a Sonarqube in a Ubuntu virtual machine with Vagrant and using Nginx. I have followed all the steps but when I try to access I get a 502 BadGateway and checking the logs I get the following: 2020/01/29 18:44:05 [alert] 1205#1205: 768 worker_connections are not enough 2020/01/29 18:44:05 [error] 1205#1205: … Read more

Jenkins pipeline to call SonarQube code coverage for node.js project

I am trying to do code coverage for node js project via Jenkins, I’ve one doubt that where to add the “sonar-project.properties” file, it in root repository that means in sonar-scanner installed repository or in the jenkins path i.e. “/var/lib/jenkins/workspace/$JOB_NAME/”, can some help to fix this I’m getting error while executing the pipeline. Error log … Read more

How to generate sonar report with sonarqube version 9.2.1.49989. Which plugin i need to install for that?

How to generate sonar report with sonarqube version 9.2.1.49989. Which plugin i need to install for that? I installed CNES Report .jar plugin to generate sonar report but this plugin(CNES) not supporting could you please help how to generate sonarqube report in latest sonarqube version 9.2.1.49989. Answer AttributionSource : Link , Question Author : ibrahim4habeeb … Read more

Authentication to SonarQube with Azure AD

I have a taks to implement authentication to SonarQube with SAML from Azure AD We are using SonarQube 8.9.6 LTS with openjdk 11.0.14 OpenJDK Runtime Environment build 11.0.14+9 on Ubuntu 20.04. I’ve set the paramaters from Azure (application ID, Provider ID, SAML Login, X.509 certificate, the correct groups are added etc.) I’ve also imported the … Read more