|
|
|
Issue Type:
|
Bug
|
Affects Versions:
|
current |
Assignee:
|
Gregory Boissinot
|
Attachments:
|
Screenshot from 2014-02-05 09-44-47.png |
Components:
|
gradle, gradle-jpi-plugin |
Created:
|
05/Feb/14 4:20 AM
|
Description:
|
My gradle build works fine when I do it via the command prompt. While doing it via Jenkins, I get the following error:
Started by user anonymous
Building in workspace /var/lib/jenkins/jobs/unite/workspace
[Gradle] - Launching build.
[workspace] $ gradle build -b /run/media/navin/Data/GitRepositories/unite/build.gradle
FATAL: command execution failed
java.io.IOException: Cannot run program "gradle" (in directory "/var/lib/jenkins/jobs/unite/workspace"): error=2, No such file or directory
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1041)
at hudson.Proc$LocalProc.<init>(Proc.java:244)
at hudson.Proc$LocalProc.<init>(Proc.java:216)
at hudson.Launcher$LocalLauncher.launch(Launcher.java:773)
at hudson.Launcher$ProcStarter.start(Launcher.java:353)
at hudson.Launcher$ProcStarter.join(Launcher.java:360)
at hudson.plugins.gradle.Gradle.performTask(Gradle.java:236)
at hudson.plugins.gradle.Gradle.perform(Gradle.java:118)
at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:784)
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:565)
at hudson.model.Run.execute(Run.java:1670)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
at hudson.model.ResourceController.execute(ResourceController.java:88)
at hudson.model.Executor.run(Executor.java:231)
Caused by: java.io.IOException: error=2, No such file or directory
at java.lang.UNIXProcess.forkAndExec(Native Method)
at java.lang.UNIXProcess.<init>(UNIXProcess.java:135)
at java.lang.ProcessImpl.start(ProcessImpl.java:130)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1022)
... 16 more
Build step 'Invoke Gradle script' changed build result to FAILURE
Build step 'Invoke Gradle script' marked build as failure
Collecting metadata...
Metadata collection done.
Finished: FAILURE
Google searching showed the error could be because of not selecting the Gradle version http://stackoverflow.com/questions/8646762/cannot-run-program-gradle-in-jenkins
But when I click the dropdown menu to select the Gradle version, there is no version number shown at all. There's just "Default".
|
Environment:
|
Fedora Linux 20 64 bit
|
Project:
|
Jenkins
|
Labels:
|
jenkins
plugin
gradle
|
Priority:
|
Major
|
Reporter:
|
Navin I
|
|
|
|
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
|
--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit
https://groups.google.com/groups/opt_out.