I am using Jenkins Version 1.545 and Sonarqube Version 4.2.When I execute Sonarqube analysis using jenkins build,my build fails with the following error:-
Failed to execute goal org.codehaus.mojo:sonar-maven-plugin:2.3.1:sonar (default-cli) on project : Can not execute SonarQube analysis: Unable to request: /batch_bootstrap/properties?project=abc.project:abc.project-java:javascript: Read timed out.
This cannot be a network issue because sonar and jenkins are on same server.
This was intermittent issue earlier but has now become very frequent.
Kindly help to resolve the issue.
Related
We are using Bamboo to deploy an application using Maven which is connecting to the Weblogic server. We are getting the error:
[ERROR] Failed to execute goal ***.maven-plugins:deploy-maven-plugin:1.0.27:deploy-request (default-cli) on project standalone-pom: Could not execute request: java.io.IOException: Server returned HTTP response code: 500 for URL: https://****/wdb-ctx-svc/service/deploy-log
Even though bamboo build fails the deployment continues in the background and is successful. Any help will be much appreciated.
Two points : Firstly, if your build is failing, your deployment should not trigger ideally. You can add a trigger to your deployment , that is , to run it only after successful build. Secondly is your web-logic server reachable ? I mean are you able to ping it or telnet to it ? I guess more of a network issue .
Executing Maven build in jenkins pod(container) using jenkins Kubernetes
Created a maven build
I am cloning from git
Then trying to execute the junit scripts
For few builds I faced pom.xml path issue
Later after clone I faced java.nio.channels.ClosedChannelException
Now directly once the build starts getting this error java.nio.channels.ClosedChannelException
More Info:
I also increased memory but didnt worked
enter image description here
I was using the same port for docker Jenkins and local jenkins. I made com.nirima.jenkins.plugins.docker.DockerContainerWatchdog.enabled=false on ALL the Jenkins servers as per some reference.But still facing the issue
SonarQube- Version 5.1.1 - LGPL V3
Jenkins- ver. 1.651.3
Error Logs-
Pre-processing started.
Preparing working directories...
Checking for updates...
Could not connect to the SonarQube server. Check the url is correct and that the server is available. Url: http://abcd-ef-ghijkl.mnop-qrst.com
Failed to update the SonarQube Scanner for MSBuild binaries. Check the server url, verify that the C# plugin is correctly installed on the SonarQube server and that the SonarQube server has been restarted.
Pre-processing failed. Exit code: 1
I use Jenkins and plugin SonarQube and Sonar runner.
For SonarQube Runner installation in Jenkins, it made Warning like this.
/home/abc/sonnar-runner-2.4 is not a directory on the Jenkins master (but perhaps it exists on some slaves)
of course I made /home/abc/ directory on the Jenkins Server.
so.. i ignore the warning and try to build tho..
it made error like this.
SONAR ANALYSIS FAILED
FATAL: SonarQube runner executable was not found for sonar-runner-2.4
Build step 'Invoke Standalone SonarQube Analysis' marked build as failure
Finished: FAILURE
i cant figure out this problem
is there anyone know how to solve this?
When you config SonarQube Scanner in Manage Jenkins --> Global Tool Configuration --> SonarQube Scanner, besides select "Install automatically", you also need to add a installer.
See screenshot here:
SonarQube Scanner --> Add Installer
I'm trying to trigger a sonar analysis of an android application through Jenkins and the Sonar Runner plugin. I've added a "Invoke Standalone Sonar Analysis" build step to my job that builds the code using Ant. When it gets to the Sonar Analysis step it fails and outputs the following:
------------------------------------------------------------------------
SONAR ANALYSIS FAILED
------------------------------------------------------------------------
FATAL: Sonar runner executable was not found for Sonar Runner 2.2.2
Build step 'Invoke Standalone Sonar Analysis' marked build as failure
The jenkins agent is a remote linux server where I have installed the sonar-runner in /opt/ and have updated appropriate SONAR_RUNNER_HOME and PATH variables.
Have I installed the runner correctly? I've looked at the documentation and other similar installation related questions but have not found what my problem could be.
Make sure to set the path of the runner correctly in Jenkins. It's the path without */bin in the end. That's a little tricky.
In the Manage Jenkins section, Configure... did you set the Sonar Runner Installations correctly? Check box Install automatically and install automatically the version from Codehaus.
Install Sonar Runner in the same server where Jenkins has been installed.