Running Leiningen inside Jenkins CI server

1,094 views
Skip to first unread message

Simon Brooke

unread,
Nov 1, 2013, 4:15:40 PM11/1/13
to clo...@googlegroups.com
I've installed Jenkins 1.537 on Debian 6, using Tomcat 6 as a servlet container; brief note about the installation here: http://blog.journeyman.cc/2013/11/getting-jenkins-ci-running-on-debian-6.html Now, I'm trying to get it to run Leiningen  and currently it isn't working. What I'm getting is as follows:

Started by user Simon Brooke
Building in workspace /var/local/jenkins/workspace/et-clj
Cloning the remote Git repository
Cloning repository file:///srv/git/et-clj
git --version
git version 1.7.2.5
Checking out Revision 958f8466a11bef34143e43ba554b0d897942c2de (origin/master)
First time build. Skipping changelog.
FATAL: leiningen failed: leiningen jar path is empty
java.lang.IllegalArgumentException: leiningen jar path is empty
	at org.spootnik.LeiningenBuilder.getLeinCommand(LeiningenBuilder.java:111)
	at org.spootnik.LeiningenBuilder.perform(LeiningenBuilder.java:80)
	at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
	at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:781)
	at hudson.model.Build$BuildExecution.build(Build.java:199)
	at hudson.model.Build$BuildExecution.doRun(Build.java:160)
	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:562)
	at hudson.model.Run.execute(Run.java:1665)
	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
	at hudson.model.ResourceController.execute(ResourceController.java:88)
	at hudson.model.Executor.run(Executor.java:230)
Build step 'Build project using leiningen' changed build result to FAILURE
Build step 'Build project using leiningen' marked build as failure
Finished: FAILURE

Can anyone suggest what I need to be looking at?

Many thanks

Jason Bennett

unread,
Nov 1, 2013, 7:44:03 PM11/1/13
to clo...@googlegroups.com
Assuming you installed this plugin: https://wiki.jenkins-ci.org/display/JENKINS/leiningen+plugin you need to configure it.

Make sure that lein is installed in a place that Jenkins can get to. You should probably log into the box, su to jenkins, and run the lein install procedure. Then, go to the Jenkins configuration page (/configure) and scroll down to the "Leiningen Builder" section. Enter the full path to the lein jar (very possibly /var/lib/jenkins/.lein/self-installs/leiningen-2.3.3-standalone.jar). You should be good to go.

jason

Simon Brooke

unread,
Nov 1, 2013, 8:11:41 PM11/1/13
to clo...@googlegroups.com
Thank you, that answer was correct and complete in every detail.

Very grateful!
--
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clo...@googlegroups.com
Note that posts from new members are moderated - please be patient with your first post.
To unsubscribe from this group, send email to
clojure+u...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
---
You received this message because you are subscribed to a topic in the Google Groups "Clojure" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/clojure/-81qyY-OmOQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to clojure+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Reply all
Reply to author
Forward
0 new messages