Failure while building jenkins

36 views
Skip to first unread message

Mayur Barge

unread,
Jun 17, 2015, 1:41:07 PM6/17/15
to jenkin...@googlegroups.com
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

Jesse Glick

unread,
Jun 17, 2015, 10:12:05 PM6/17/15
to Jenkins Dev
Possibly a faulty test behaving differently on your machine due to
your timezone.

Use -DskipTests unless you are specifically intending to run every test.

Mayur Barge

unread,
Jun 17, 2015, 10:19:55 PM6/17/15
to jenkin...@googlegroups.com
Hello Jesse,
        Thank you very much for your suggestions.
        But this seems workaround for me. How can I proceed for debugging the TEST and fix the timezone issue itself ?
Reply all
Reply to author
Forward
0 new messages