Tag: java

Jenkins Maven Build 137 Error

I have a Maven project, which builds 6 separate Maven projects in Jenkins. The problem I face is that over the time the project build fails giving the 137 error code: ERROR: Maven JVM terminated unexpectedly with exit code 137 The project could be built successfully using same Maven goals in the console, but in […]

Jenkins: settings for Gerrit Trigger problems

I’ve installed the plugin Gerrit Trigger on Jenkins cos I need to start automatically the building when a developer in the team pushes something on the repository (relative to a specific project). I followed the settings here: https://wiki.jenkins-ci.org/display/JENKINS/Gerrit+Trigger The test connection is ok. Anyway when something is pushed the building doesn’t “trigger”. The only thing […]

Selenium WebDriver with Jenkins

I’m looking into using Selenium WebDriver with Jenkins. We have a Jenkins server running under Windows Server 2008 and would like to run all my test cases and I’m using mstest and also i have installed VS on the windows server… Here is the list of plugin I have installed on my server: Selenium Auto […]

How can I retrieve environment variables(Jenkins) in java

I’m setting some environment variables by some windows batch commands in the pre-build steps for a Jenkins build. I need to use these variables for a few java selenium test cases which will run during as part of the build. set HD_KF_TC_IN_LOOK_UP_KET_FEATURE_XLS = %WORKSPACE%\selenium_input_files\Key_Features\en_US I have tried to retrieve these environment variable values by using […]

Jenkins – groovy script – get last successful build date in dd-mm-yyyy format

I’m using “groovy script” plugin as part of my Jenkins build. I wish to find the last successful build date of a job “RegularBuild” however all the examples online e.g. import hudson.model.Build; def buildA = build(“jobA”) println(buildA.getProject().getLastSuccessfulBuild()) don’t compile even though this seems to be ok. Not sure how people are using this scripting language […]

PowerMock PrepareForTest annotation causing problems with AmazonSQSClient constructor

I’m having some trouble with the PrepareForTest annotation and creating a new instance of an AmazonSQSClient. I’m writing a Jenkins plugin and unfortunately need to mock the FormValidation static class in order to ensure that warning and error messages are produced on field validation of my plugin. However when creating an instance of AmazonSQSClient I […]

Use .gdsl file in a Java project in IntelliJ

I have a file pipeline.gdsl that contains the Syntax for my Jenkins Pipeline DSL. Following this blog post I put the file into the /src folder of my Java project. When I now edit my Jenkinsfile (residing in the root folder of my project), I don’t get any code completion / syntax explanation as I […]

How to configure Selenium HTML Reports in Jenkins

We have a Java MOJO configured in Jenkins. Once the code is build in CI, surefire reports would be generated. We have Junit and Selenium test cases to test the application. I need to present the results coming from the test cases in a HTML format. Is there any plugin available for Jenkins to display […]

Jenkins hudson.util.IOException2: remote file operation failed

I’m using CentOS 5 and Jenkins 1.430. When I try to build, I get an error: hudson.util.IOException2: remote file operation failed: /home/build/jenkins/workspace/tests at hudson.remoting.Channel@6c89db9a:build-test at hudson.FilePath.act(FilePath.java:754) at hudson.FilePath.act(FilePath.java:740) at hudson.scm.SubversionSCM.checkout(SubversionSCM.java:705) at hudson.scm.SubversionSCM.checkout(SubversionSCM.java:654) at hudson.model.AbstractProject.checkout(AbstractProject.java:1193) at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:566) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:454) at hudson.model.Run.run(Run.java:1376) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:230) Caused by: java.io.IOException: Remote call on build-test failed at […]

Jenkins And NodeJS Plugin – Permission Denied Error=13

I’m running the latest version of Jenkins (v 1.563) and Node (0.10.28). I have a Java project that builds fine. When I add a pre build step as a node script ( with Provide Node & npm bin/ folder to PATH checked), I get the following error although I have given 777 permissions to everything […]

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