Hello,
I have cloned jenkins repository on my local machine and now trying to build jenkins first time. I am getting following error
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Jenkins main module ............................... SUCCESS [3.380s]
[INFO] Jenkins cli ....................................... SUCCESS [11.543s]
[INFO] Jenkins core ...................................... FAILURE [2:16.824s]
[INFO] Jenkins war ....................................... SKIPPED
[INFO] Test harness for Jenkins and plugins .............. SKIPPED
[INFO] Jenkins plugin POM ................................ SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2:35.306s
[INFO] Finished at: Wed Jun 17 22:58:40 IST 2015
[INFO] Final Memory: 39M/340M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.16:test (default-test) on project jenkins-core: There are test failures.
[ERROR]
[ERROR] Please refer to /home/mayur/jenkins/core/target/surefire-reports for the individual test results.
[ERROR] -> [Help 1]
I am working on ubuntu 14.04 LTS with both java 7 and java 8 installed.
I can also see following TEST failure in logs -
Running hudson.scheduler.CronTabTest
Tests run: 21, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.063 sec <<< FAILURE! - in hudson.scheduler.CronTabTest
testTimezone(hudson.scheduler.CronTabTest) Time elapsed: 0.012 sec <<< FAILURE!
org.junit.ComparisonFailure: expected:<[[35, 5]6]> but was:<[[5, 2]6]>
at org.junit.Assert.assertEquals(Assert.java:115)
at org.junit.Assert.assertEquals(Assert.java:144)
at hudson.scheduler.CronTabTest.testTimezone(CronTabTest.java:315)
I have tried suggestions from jenkins site but no luck.
Building
and running tests can cause permgem errors. If that is the case, try to
increase the JVM limit for Maven targets, by setting the following
environment variable:
$ export MAVEN_OPTS="-XX:MaxPermSize=128m"
As this is the first time I'm building jenkins on my local machine, I have no idea how to debug this issue. Please help.
Thanks,
Mayur