Tag: java

SonarQube error while analyzing code with binary literals

I want to use SonarQube to analyse my project which is built on Jenkins. In my project I have some literals written in binary system (e.g. 0b00001111). When I’m trying to do an analysis, I am obtaining fallowing error: [ERROR] Failed to execute goal org.codehaus.mojo:sonar-maven-plugin:2.5:sonar (default-cli) on project org: SonarQube is unable to analyze file […]

Send email to commiters from Jenkins email-ext on every build

I am using Jenkins v1.533, Email-Ext v2.34 and Jenkins Mercurial plugin v1.47, and I want to send emails to the all the mercurial commiters since the last build, for every build. In post-build actions, I added editable email notification and added triggers for success, failure, unstable, still unstable, fixed, still failing to recipients, developers, culprits. […]

Class cast exceptions with ant/jenkins generated EAR on WebSphere 6.1

I’m having runtime class cast exceptions after deploying an ear generated as part of an ant build script running on Jenkins to Websphere 6.1. The cast class exceptions are in some DAO methods which cast Objects returned from SQL queries to specific classes. If i generate the EAR from within Eclipse (RAD) then the class […]

cannot run jenkins, even after clearing it's directory

Tried to upgrade jenkins today. It doesn’t start anymore. Even if i try to remove its directory, it recreates it cleanly but then crashes with following log. [#|2013-04-24T07:24:49.849+0200|INFO|glassfish3.1.2|javax.enterprise.system.tools.admin.org.glassfish.deployment.admin|_ThreadID=106;_ThreadName=Thread-2;|jenkins was successfully deployed in 3,800 milliseconds.|#] [#|2013-04-24T07:24:50.100+0200|INFO|glassfish3.1.2|jenkins.InitReactorRunner|_ThreadID=152;_ThreadName=Thread-2;|Listed all plugins|#] [#|2013-04-24T07:24:50.100+0200|SEVERE|glassfish3.1.2|jenkins.InitReactorRunner|_ThreadID=152;_ThreadName=Thread-2;|Failed Loading plugins java.lang.NullPointerException at hudson.PluginManager$2$1.run(PluginManager.java:324) at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:146) at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:259) at jenkins.model.Jenkins$7.runTask(Jenkins.java:888) at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:187) at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:94) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) […]

Unable to read methods on class – TestNG

I have created a simple selenium project(not maven) using testng framework and trying to integrate it with Jenkins. While running the testrunner.bat file through Jenkins, it gives me below warning on console and not able to execute my test cases. C:\Users\Shipra Parihar\testMavenProject\Test_Automation_Framework>testrunner.bat C:\Users\Shipra Parihar\testMavenProject\Test_Automation_Framework>java -cp bin;lib/* org.testng.TestNG testng.xml [TestNGClassFinder] Warning: Can’t link and determine methods […]

Jetty/winstone connector configuration in Jenkins

I am experiencing slow download times over WAN links from JENKINS. Not going into details of the problem i would like to configure Jetty apparently used by Jenkins to add the following connector: <New class=”org.eclipse.jetty.server.nio.SelectChannelConnector”> <Set name=”host”><Property name=”application-host”/></Set> <Set name=”port”><Property name=”application-port”/></Set> <Set name=”forwarded”>true</Set> <Set name=”responseBufferSize”>16777216</Set> <Set name=”responseHeaderSize”>1048576</Set> </New> but i am not sure what is […]

jenkins remoting callable on slave using groovy

I was trying the remoting code to communicate with a jenkins node via the groovy shell. Here is the bare code which I ran: import java.io.IOException; import java.lang.String; import hudson.remoting.*; import java.io.Serializable; Callable<String, IOException> task = new Callable<String, IOException>() { @Override public String call() throws IOException { // This code will run on the build […]

Jenkins-Maven continuous integration build error (need it immediatly)

I tried building a Maven project using Jenkins and the build is successful but it throws an error saying the following, it is taking the wrong file on the java.io.FileNotFoundException. Thank you. [JENKINS] Recording test results [INFO] ———————————————————————— [INFO] BUILD SUCCESS [INFO] ———————————————————————— [INFO] Total time: 3.929 s [INFO] Finished at: 2016-06-22T16:31:49-05:00 [INFO] Final Memory: […]

What classpath does maven set for different goals? Can you provide a link to official docs?

To what does Maven set the classpath for different goals? My issue: I have a project that I am building in Jenkins. It gets checked out form SVN. As the next thing, a different file is checked out into workspace-root/mydir/my.properties Then, maven test is run. In the test, a class loads the file by searching […]

How can I run FEST Swing tests in Jenkins?

I’m trying to run FEST Swing tests on Jenkins as a service on Windows 7. I have already allowed the service to interect with the desktop with the necessary permission to do so. It was no use, though. Most of what I found on the internet either shows how to do it on Linux (through […]

Git Baby is a git and github fan, let's start git clone.