java - Ant with Hudson -
i have problem in running job in hudson. have configured hudson ant_home path of ant , jdk relative path. , created new job, setup svn path , rest of things. build.xml of project in project root folder/build/build.xml
and them have added build.xml in linux. this.
<project name="test job" default="build"> <target name="clean"> <delete dir="${basedir}/svn/_build"/> <delete dir="${basedir}/build"/> </target> <target name="prepare"> <mkdir dir="${basedir}/svn/_build/logs"/> <mkdir dir="${basedir}/build/logs"/> <mkdir dir="${basedir}/build/docs"/> </target> <target name="build" depends="clean,prepare"/> </project>
note : set job name usercentral.
then tried build on hudson. giving me below error.
fatal: command execution failed.maybe need configure job choose 1 of ant installations? java.io.ioexception: cannot run program "ant" (in directory "/root/.hudson/jobs/usercentral/workspace/branches/branches/build"): java.io.ioexception: error=2, no such file or directory @ java.lang.processbuilder.start(processbuilder.java:460) @ hudson.proc$localproc.(proc.java:192) @ hudson.proc$localproc.(proc.java:164) @ hudson.launcher$locallauncher.launch(launcher.java:638) @ hudson.launcher$procstarter.start(launcher.java:273) @ hudson.launcher$procstarter.join(launcher.java:280) @ hudson.tasks.ant.perform(ant.java:216) @ hudson.tasks.buildstepmonitor$1.perform(buildstepmonitor.java:19) @ hudson.model.abstractbuild$abstractrunner.perform(abstractbuild.java:603) @ hudson.model.build$runnerimpl.build(build.java:172) @ hudson.model.build$runnerimpl.dorun(build.java:137) @ hudson.model.abstractbuild$abstractrunner.run(abstractbuild.java:417) @ hudson.model.run.run(run.java:1362) @ hudson.model.freestylebuild.run(freestylebuild.java:46) @ hudson.model.resourcecontroller.execute(resourcecontroller.java:88) @ hudson.model.executor.run(executor.java:145) caused by: java.io.ioexception: java.io.ioexception: error=2, no such file or directory @ java.lang.unixprocess.(unixprocess.java:148) @ java.lang.processimpl.start(processimpl.java:65) @ java.lang.processbuilder.start(processbuilder.java:453) ... 15 more finished: failure
can 1 please me.
append $ant_home/bin
existing path
in order hudson able ant command... or @ least, that's how fixed same exact problem.
Comments
Post a Comment