Jenkins does not build on OS X

74 views
Skip to first unread message

Stefan Wagner

unread,
Jul 2, 2015, 8:52:36 AM7/2/15
to jenkin...@googlegroups.com

Hi!


I tried to get started with Jekins development and to build it. I followed
https://wiki.jenkins-ci.org/display/JENKINS/Building+Jenkins
but when running

mvn -Plight-test install

the build fails:
Results :

Tests in error: 
LauncherTest.remoteKill:68 » NumberFormat For input string: ""
XStream2Test.concurrentHashMapSerialization:302 NullPointer

Tests run: 3408, Failures: 0, Errors: 2, Skipped: 3

[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] Jenkins main module ................................ SUCCESS [ 56.906 s]
[INFO] Jenkins cli ........................................ SUCCESS [ 43.173 s]
[INFO] Jenkins core ....................................... FAILURE [02:10 min]
[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: 05:43 min
[INFO] Finished at: 2015-06-30T17:01:28+02:00
[INFO] Final Memory: 51M/615M
[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 /Users/wagnerst/Things Folders/Jenkins/jenkins/core/target/surefire-reports for the individual test results.
[ERROR] -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :jenkins-core

I'm on the latest OS X release, Java 8 and the repository version of today (2557e58c).

I submitted an issue in JIRA but Daniel Beck decided that this not a defect. I would disagree. Is a build defect not also a defect.

Anyway, has anyone any ideas on that? Thanks!

Stefan

Mark Waite

unread,
Jul 2, 2015, 9:11:28 AM7/2/15
to jenkin...@googlegroups.com
You might try using Java 7 rather than Java 8 to build it.  Jenkins must support a wide range of execution platforms, so it may require Java 7 to compile and run its tests successfully.

Mark Waite

--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-de...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/b0b4708a-055e-4f13-90df-ec5a449bd94b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Arnaud Héritier

unread,
Jul 2, 2015, 9:30:51 AM7/2/15
to jenkin...@googlegroups.com
Hi

  I confirm I have the same build failure with J8 but not with J7

BR


For more options, visit https://groups.google.com/d/optout.



--
-----
Arnaud Héritier
Mail/GTalk: aheritier AT gmail DOT com
Twitter/Skype : aheritier
Reply all
Reply to author
Forward
0 new messages