Tag: java

Continuum as a Jenkins replacement?

At our company we’re taking a critical look at the products in our Java Development/QA street. One of the products we’re looking at is Apache Continuum. Could someone with Continuum experience (and preferably also Jenkins experience) explain what the advantages and disadvantages of Apache Continuum are (especially with regards to Jenkins)? My first impressions are: […]

Running a java code repeatedly for a given duration in Jenkins

I want to run java code for a certain duration ,say 16 hours! I have a java code that runs for approximately an hour.I want this to run repeatedly for 16 hours. So I have a parameter that is passed by the user through Jenkins ! I access this value using System.getenv(“Duration”); Now, I want […]

Jenkins will not use Java 7 compiler

I’m working with a team on a maven project, and I set up a build job for it in Jenkins. Recently, someone on the team added code that switches on a String. This caused the build to fail in Jenkins with the following error: error: strings in switch are not supported in -source 1.5 So […]

Only run unit tests which's respective source code has changed?

I am running unit tests and Selenium tests in our Jenkins CI server. As we all know, tests take long to run in a large project. Is there a tool/framework for Java which could only trigger tests whose respective source code has changed? This because not every commit to SCM affects all areas of the […]

Jenkins sonar check failure: Caused by: java.lang.ClassNotFoundException: org.sonar.api.checks.NoSonarFilter

When I call Jenkins build job, It throw following error and job failed.* Can anyone have saw this error? Jenkins version: 1.642.1 Sonar version: 5.4 (Java plugin 3.5) Here is the error info: [ERROR] Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.0.1:sonar (default-cli) on project ods-replicator: Unable to register extension org.sonar.plugins.java.JavaSquidSensor: Lorg/sonar/api/checks/NoSonarFilter;: org.sonar.api.checks.NoSonarFilter -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed […]

Jenkins Running on Websphere 8.5 causes plugin class load errors

I am running Jenkins (1.552) on WebSphere 8.5 with Java 7 on RedHat Linux. I loaded the Artifactory plugin into Jenkins, but when I hit test connection, I receive the following error: org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: Class org.apache.commons.logging.impl.Jdk14Logger does not implement Log After looking around, it appears that the Artifactory plugin was not compiled with the pluginFirstClassLoader […]

Maven – Separating Deployment & Project

What is the ‘best practice’ way of separating Maven deployment configuration from the build config? I have a war project, that is built by Jenkins. I’d like Jenkins to deploy this to Elastic Beanstalk, but alas the best solution available at the moment is to use the beanstalk-maven-plugin. I’m not sure it makes sense for […]

How to update JDK on Jenkins Server cartridge (OpenShift)?

The Jenkins Server cartridge (OpenShift) uses OpenJDK 7u55. How to update to OpenJDK 7u60 or 8u05 or Oracle JDK (7u60 or 8u05), please?

<sonar.exclusions> in pom.xml (Maven multi-module project) works locally but not on company server

I’m using <sonar.exclusions> in pom.xml to exclude certain packages for unit test code coverage. I have set up Sonar locally and the exclusions reflect on the report. But then, the same exclusions are not honored on the company server. I am using <sonar.skippedModules> which works as intended and skips the required modules perfectly fine on […]

Jenkens Plugin (build with Maven) and external jars

I’m trying to write a simple Jenkins plugin, which requires a proprietary external library myAwesomePackage.jar. Including external jars into a maven project was often discussed here on stackoverflow and the solution here https://stackoverflow.com/a/7623805 seems to be the tidy way solve this. So I added my jar with mvn install:install-file \ -Dfile=./lib/path_to_jar/lib/myAwesomePackage.jar \ -DlocalRepositoryPath=my_repo \ -DcreateChecksum=true […]

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