Re: Build returning error code -1
) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1023) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589) at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) On Saturday, March 29, 2014 3:28:58 PM UTC-5, Mark Waite wrote: Was the stack trace different on the attempt with the git:// URL? The stack trace you listed shows that git fetch failed, which would usually mean that the repository did not complete its download. http://stackoverflow.com/questions/15708490/jenkins-hanging-at-fetching-upstream-changes-from-originsuggests that you might have added the msysgit cmd directory into your PATH before the msysgit bin directory. Jenkins needs the msysgit bin directory in the path rather than the cmd directory. The cmd directory can be added to the PATH without the bin directory by the msysgit installer. It has three alternatives to provide git functions to the user. One of them only adds cmd to the PATH, the other adds bin to the PATH (and the third option adds nothing to the PATH). Thanks, Mark Waite On Sat, Mar 29, 2014 at 1:37 PM, Jeff Schmitz netbr...@gmail.comjavascript: wrote: Tried the git://github... link, still no luck. Note that it did download the files to the workspace (C:/.jenkins/workspace), but then the build just hung and still hasn't finished after 10 minutes. Haven't had time to try the https link yet. On Saturday, March 29, 2014 12:09:25 PM UTC-5, Mark Waite wrote: Usually a timeout in calls to git are due to missing credentials information. In your case, that doesn't seem to be the root problem, since I can view the contents of that repository without credentials. If you want to experiment with it, you could create a credential for that github repository. If you don't need to push back to the repository from the Jenkins job, you could use the faster and lighter (read-only) git protocol by using git://github.com/jeffrey-a-schmitz/game-of-life.git instead of g...@github.com:jeffrey-a-schmitz/game-of-life.git. If neither of those work, you could try the https protocol, https://github.com/jeffrey-a-schmitz/game-of-life.git;. Thanks, Mark Waite On Sat, Mar 29, 2014 at 8:19 AM, Jeff Schmitz netbr...@gmail.comwrote: Still a newbie, I've moved on to a PC running windows 7 and Java 7. I'm trying to build the example in the Jenkins Definitive Guide book, and am getting the below exception. I am able to clone the remote repository from the Git Bash command line: git clone g...@github.com:*username*/game-of-life.git so the network connection is there and working. I Googled for jenkins return status code of -1 and got nothing, so hoping someone here may have an idea. Note that I'm not behind a proxy wall so don't have any proxy config setup... Building in workspace C:\.jenkins\workspace\gameoflife-default Fetching changes from the remote Git repository Fetching upstream changes from g...@github.com:jeffrey-a-schmitz/game-of-life.git ERROR: Timeout after 10 minutesFATAL http://stacktrace.jenkins-ci.org/search?query=FATAL: Failed to fetch from g...@github.com:jeffrey-a-schmitz/game-of-life.githudson.plugins.git.GitException http://stacktrace.jenkins-ci.org/search?query=hudson.plugins.git.GitException: Failed to fetch from g...@github.com:jeffrey-a-schmitz/game-of-life.git at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:621) http://stacktrace.jenkins-ci.org/search/?query=hudson.plugins.git.GitSCM.fetchFromentity=method at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:853) http://stacktrace.jenkins-ci.org/search/?query=hudson.plugins.git.GitSCM.retrieveChangesentity=method at hudson.plugins.git.GitSCM.checkout(GitSCM.java:878) http://stacktrace.jenkins-ci.org/search/?query=hudson.plugins.git.GitSCM.checkoutentity=method at hudson.model.AbstractProject.checkout(AbstractProject.java:1320) http://stacktrace.jenkins
Build returning error code -1
Still a newbie, I've moved on to a PC running windows 7 and Java 7. I'm trying to build the example in the Jenkins Definitive Guide book, and am getting the below exception. I am able to clone the remote repository from the Git Bash command line: git clone g...@github.com:*username*/game-of-life.git so the network connection is there and working. I Googled for jenkins return status code of -1 and got nothing, so hoping someone here may have an idea. Note that I'm not behind a proxy wall so don't have any proxy config setup... Building in workspace C:\.jenkins\workspace\gameoflife-default Fetching changes from the remote Git repository Fetching upstream changes from g...@github.com:jeffrey-a-schmitz/game-of-life.git ERROR: Timeout after 10 minutesFATAL http://stacktrace.jenkins-ci.org/search?query=FATAL: Failed to fetch from g...@github.com:jeffrey-a-schmitz/game-of-life.githudson.plugins.git.GitException http://stacktrace.jenkins-ci.org/search?query=hudson.plugins.git.GitException: Failed to fetch from g...@github.com:jeffrey-a-schmitz/game-of-life.git at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:621) http://stacktrace.jenkins-ci.org/search/?query=hudson.plugins.git.GitSCM.fetchFromentity=method at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:853) http://stacktrace.jenkins-ci.org/search/?query=hudson.plugins.git.GitSCM.retrieveChangesentity=method at hudson.plugins.git.GitSCM.checkout(GitSCM.java:878) http://stacktrace.jenkins-ci.org/search/?query=hudson.plugins.git.GitSCM.checkoutentity=method at hudson.model.AbstractProject.checkout(AbstractProject.java:1320) http://stacktrace.jenkins-ci.org/search/?query=hudson.model.AbstractProject.checkoutentity=method at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:609) http://stacktrace.jenkins-ci.org/search/?query=hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckoutentity=method at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88) http://stacktrace.jenkins-ci.org/search/?query=jenkins.scm.SCMCheckoutStrategy.checkoutentity=method at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:518) http://stacktrace.jenkins-ci.org/search/?query=hudson.model.AbstractBuild$AbstractBuildExecution.runentity=method at hudson.model.Run.execute(Run.java:1688) http://stacktrace.jenkins-ci.org/search/?query=hudson.model.Run.executeentity=method at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) http://stacktrace.jenkins-ci.org/search/?query=hudson.model.FreeStyleBuild.runentity=method at hudson.model.ResourceController.execute(ResourceController.java:88) http://stacktrace.jenkins-ci.org/search/?query=hudson.model.ResourceController.executeentity=method at hudson.model.Executor.run(Executor.java:231) http://stacktrace.jenkins-ci.org/search/?query=hudson.model.Executor.runentity=method Caused by: hudson.plugins.git.GitException http://stacktrace.jenkins-ci.org/search?query=hudson.plugins.git.GitException: Command git fetch --tags --progress g...@github.com:jeffrey-a-schmitz/game-of-life.git +refs/heads/*:refs/remotes/origin/* returned status code -1: stdout: stderr: at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1192) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1062) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$200(CliGitAPIImpl.java:89) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:222) at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:619) -- You received this message because you are subscribed to the Google Groups Jenkins Users group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Build returning error code -1
Tried the git://github... link, still no luck. Note that it did download the files to the workspace (C:/.jenkins/workspace), but then the build just hung and still hasn't finished after 10 minutes. Haven't had time to try the https link yet. On Saturday, March 29, 2014 12:09:25 PM UTC-5, Mark Waite wrote: Usually a timeout in calls to git are due to missing credentials information. In your case, that doesn't seem to be the root problem, since I can view the contents of that repository without credentials. If you want to experiment with it, you could create a credential for that github repository. If you don't need to push back to the repository from the Jenkins job, you could use the faster and lighter (read-only) git protocol by using git:// github.com/jeffrey-a-schmitz/game-of-life.git instead of g...@github.com:jeffrey-a-schmitz/game-of-life.git. If neither of those work, you could try the https protocol, https://github.com/jeffrey-a-schmitz/game-of-life.git;. Thanks, Mark Waite On Sat, Mar 29, 2014 at 8:19 AM, Jeff Schmitz netbr...@gmail.comjavascript: wrote: Still a newbie, I've moved on to a PC running windows 7 and Java 7. I'm trying to build the example in the Jenkins Definitive Guide book, and am getting the below exception. I am able to clone the remote repository from the Git Bash command line: git clone g...@github.com javascript::*username*/game-of-life.git so the network connection is there and working. I Googled for jenkins return status code of -1 and got nothing, so hoping someone here may have an idea. Note that I'm not behind a proxy wall so don't have any proxy config setup... Building in workspace C:\.jenkins\workspace\gameoflife-default Fetching changes from the remote Git repository Fetching upstream changes from g...@github.com:jeffrey-a-schmitz/game-of-life.git ERROR: Timeout after 10 minutesFATAL http://stacktrace.jenkins-ci.org/search?query=FATAL: Failed to fetch from g...@github.com:jeffrey-a-schmitz/game-of-life.githudson.plugins.git.GitException http://stacktrace.jenkins-ci.org/search?query=hudson.plugins.git.GitException: Failed to fetch from g...@github.com:jeffrey-a-schmitz/game-of-life.git at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:621) http://stacktrace.jenkins-ci.org/search/?query=hudson.plugins.git.GitSCM.fetchFromentity=method at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:853) http://stacktrace.jenkins-ci.org/search/?query=hudson.plugins.git.GitSCM.retrieveChangesentity=method at hudson.plugins.git.GitSCM.checkout(GitSCM.java:878) http://stacktrace.jenkins-ci.org/search/?query=hudson.plugins.git.GitSCM.checkoutentity=method at hudson.model.AbstractProject.checkout(AbstractProject.java:1320) http://stacktrace.jenkins-ci.org/search/?query=hudson.model.AbstractProject.checkoutentity=method at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:609) http://stacktrace.jenkins-ci.org/search/?query=hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckoutentity=method at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88) http://stacktrace.jenkins-ci.org/search/?query=jenkins.scm.SCMCheckoutStrategy.checkoutentity=method at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:518) http://stacktrace.jenkins-ci.org/search/?query=hudson.model.AbstractBuild$AbstractBuildExecution.runentity=method at hudson.model.Run.execute(Run.java:1688) http://stacktrace.jenkins-ci.org/search/?query=hudson.model.Run.executeentity=method at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) http://stacktrace.jenkins-ci.org/search/?query=hudson.model.FreeStyleBuild.runentity=method at hudson.model.ResourceController.execute(ResourceController.java:88) http://stacktrace.jenkins-ci.org/search/?query=hudson.model.ResourceController.executeentity=method at hudson.model.Executor.run(Executor.java:231) http://stacktrace.jenkins-ci.org/search/?query=hudson.model.Executor.runentity=method Caused by: hudson.plugins.git.GitException http://stacktrace.jenkins-ci.org/search?query=hudson.plugins.git.GitException: Command git fetch --tags --progress g...@github.com:jeffrey-a-schmitz/game-of-life.git +refs/heads/*:refs/remotes/origin/* returned status code -1: stdout: stderr: at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1192) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1062) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$200(CliGitAPIImpl.java:89) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:222) at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:619) -- You received this message because you are subscribed to the Google Groups Jenkins Users
JAVA_HOME on Mac Mavericks
Hello, Short version: What do you set JAVA_HOME to when configuring Jenkins on a Mac Mavericks machine with a newly installed Java 1.8 from Oracle? I'm a newbie to Jenkins and am trying to get an initial setup running per the Jenkins Definitive Guide book. I recently installed the latest Java from Oracle (1.8) on a Mavericks machine that didn't have Java installed. Now I can't figure out what to set JAVA_HOME to when configuring Jenkins. I tried /usr/libexec/java_home but Jenkins doesn't like that, it says it's not a directory. I think tried what /usr/libexec/java_home points to but Jenkins said it doesn't look like a java distribution. Thanks! Jeff -- You received this message because you are subscribed to the Google Groups Jenkins Users group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Jenkins exception on startup
Hello, While trying to install the GIT Plugin I've somehow managed to mangle Jenkins, and now when I go to localhost:8080 I just get: hudson.util.HudsonFailedToLoad: org.jvnet.hudson.reactor.ReactorException: java.lang.Error: java.lang.reflect.InvocationTargetException at hudson.WebAppMain$3.run(WebAppMain.java:234) Caused by: org.jvnet.hudson.reactor.ReactorException: java.lang.Error: java.lang.reflect.InvocationTargetException at org.jvnet.hudson.reactor.Reactor.execute(Reactor.java:269) at jenkins.InitReactorRunner.run(InitReactorRunner.java:44) at jenkins.model.Jenkins.executeReactor(Jenkins.java:910) at jenkins.model.Jenkins.init(Jenkins.java:809) at hudson.model.Hudson.init(Hudson.java:82) at hudson.model.Hudson.init(Hudson.java:78) at hudson.WebAppMain$3.run(WebAppMain.java:222) Caused by: java.lang.Error: java.lang.reflect.InvocationTargetException at hudson.init.TaskMethodFinder.invoke(TaskMethodFinder.java:109) at hudson.init.TaskMethodFinder$TaskImpl.run(TaskMethodFinder.java:169) at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:282) at jenkins.model.Jenkins$7.runTask(Jenkins.java:899) at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:210) at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:744) Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:483) at hudson.init.TaskMethodFinder.invoke(TaskMethodFinder.java:105) ... 8 more Caused by: java.lang.ArrayIndexOutOfBoundsException: -1 at com.thoughtworks.xstream.core.util.OrderRetainingMap.entrySet(OrderRetainingMap.java:77) at java.util.HashMap.putMapEntries(HashMap.java:511) at java.util.HashMap.putAll(HashMap.java:784) at com.thoughtworks.xstream.core.util.OrderRetainingMap.init(OrderRetainingMap.java:36) at com.thoughtworks.xstream.converters.reflection.FieldDictionary.buildMap(FieldDictionary.java:135) at com.thoughtworks.xstream.converters.reflection.FieldDictionary.fieldsFor(FieldDictionary.java:76) at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.visitSerializableFields(PureJavaReflectionProvider.java:127) at hudson.util.RobustReflectionConverter.doMarshal(RobustReflectionConverter.java:149) at hudson.util.RobustReflectionConverter.marshal(RobustReflectionConverter.java:108) -- You received this message because you are subscribed to the Google Groups Jenkins Users group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.