Re: Xvnc plugin
Set the HOME env variable to the home directory of the user running jenkins. Regards, -Urivan On Mar 26, 2013 6:47 AM, haglo h.g.gloeck...@googlemail.com wrote: I have jenkins 1.506 under ubuntu 12.10 I start Jenkins as Standalone Server with the following command: java -jar /lunifera/jenkins/jenkins.war --httpPort=8083 --logfile=/var/log/jenkins/jenkins.log I user the plugin Jenkins Xvnc I have setup this plugin how described in this blog: http://blog.dahanne.net/2011/07/18/run-ui-tests-on-a-headless-jenkins-hudson-continuous-integration-server-running-ubuntu/ When I make a build with Xvnc I get the following error: Starting xvnc [workspace] $ /usr/bin/vncserver :0 -geometry 800x600 vncserver: The HOME environment variable is not set. -- 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/groups/opt_out. -- 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/groups/opt_out.
Re: Cygpath Cygwin Git
Maybe too obvious but did you try to double backslash? Otherwise it will take it as a scape sequences. Regards, -Urivan On Nov 28, 2012 2:00 PM, Ryan Lovelett ryan.lovel...@gmail.com wrote: I would have thought that through the use of the Cygpath plugin my Windows system I would be able to use the Cygwin installed git. I know that the git executable is installed: [Ryan@Windows /cygdrive/c/Projects] $ cygpath -C ANSI -w `which git` C:\cygwin\usr\local\bin\git I have provided the Tool Location for the Windows node: /user/local/bin/git This provides an error. I have the full error if it is relavant. But I think these two errors say everything necessary. Error trying to determine the git version: Error performing command: /user/local/bin/git --version ... Caused by: java.io.IOException: Cannot run program /user/local/bin/git: CreateProcess error=2, The system cannot find the file specified So I said to heck with Cygpath; I will just provide the full executable from Windows (e.g., C:\cygwin\usr\local\bin\git) in the Tool Location for the Windows node. Which led to this error Error trying to determine the git version: Command C:\cygwin\usr\local\bin\git --version returned status code -1073741515: ... Caused by: hudson.plugins.git.GitException: Command C:\cygwin\usr\local\bin\git clone -o origin g...@our-git-repo.com:testing.git C:\jenkins\workspace\Git Clone\label\Windows returned status code -1073741515: These errors have to do with the Cygwin environment not being loaded. I am not sure what to do about that. Suggestions?
Re: Need help to perform a Maven release with Jenkins and Gitorious
Luis, Have you manually verified access from Jenkins server to you git server on ssh as well as added the user owning the jenkins process ssh pub key into your key management profile in gitorious? This sound more like a setup issue. Regards, -Urivan Flores On Nov 21, 2012 11:20 AM, lacribeir...@gmail.com lacribeir...@gmail.com wrote: Hi everyone, I need your help to solve a problem that I have when performing a Maven Release in our new server with Gitorious. When we where in the old server it was working fine, but now that we change to a new server (a vm in amazon cloud) the release isn't working. I can pull, commit or push from the machine with Jenkins. Only Maven Release is missing. Environment: Jenkins ver. 1.460 Jenkins Maven Release Plug-in Plug-in ver: 0.9.1 pom.xml(127.0.0.1 because I don't want to give the real address): scm connectionscm:git:git://127.0.0.1: /gitserver/gitserver.git/connection developerConnectionscm:git:git@127.0.0.1: gitserver/gitserver.git/developerConnection /scm Jenkins job configuration: Build Environment Enable Artifactory release management: Unchecked Maven release build: Checked Release goals and options: -X -Dresume=false release:prepare release:perform DryRun goals and options: -Dresume=false -DdryRun=true release:prepare Default versioning mode: None Preselect custom SCM comment prefix: Unchecked Preselect append Hudson username: Unchecked Preselect 'specify SCM login/password': Unchecked Resolve artifacts from Artifactory: Unchecked Gitorious Project: Clone oush urls;ssh; git@127.0.0.1:gitserver/gitserver.git Run results: [INFO] [INFO] --- maven-failsafe-plugin:2.12:verify (verify) @ com.project.core.dom --- ….. [INFO] [INFO] Reactor Summary: [INFO] [INFO] [INFO] [INFO] proj-core .. SUCCESS [0.201s] [INFO] [INFO] dependency.package.gui SUCCESS [0.008s] [INFO] [INFO] dependency.package.spring . SUCCESS [0.012s] …. [INFO] Executing: /bin/sh -c cd /var/lib/jenkins/jobs/maven23_testbuild_maven_01/workspace git push gam.build@gitserver .com:gitserver/gitserver .git develop_core_1_0:develop_core_1_0 [INFO] Working directory: /var/lib/jenkins/jobs/maven23_testbuild_maven_01/workspace mojoFailed org.apache.maven.plugins:maven-release-plugin:2.2.2(default-cli) projectFailed com.gitserver :proj-core:1.0.92-SNAPSHOT sessionEnded [INFO] [INFO] Reactor Summary: [INFO] [INFO] proj-core .. FAILURE [2:00.141s] [INFO] dependency.package.gui SKIPPED [INFO] dependency.package.spring . SKIPPED ….. Waiting for Jenkins to finish collecting data mavenExecutionResult exceptions not empty message : Failed to execute goal org.apache.maven.plugins:maven-release-plugin:2.2.2:prepare (default-cli) on project proj-core: Unable to commit files Provider message: The git-push command failed. Command output: ssh: connect to host gitserver.com port 22: Connection refused fatal: The remote end hung up unexpectedly cause : Unable to commit files Provider message: The git-push command failed. Command output: ssh: connect to host gitserver.com port 22: Connection refused fatal: The remote end hung up unexpectedly Stack trace : org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-release-plugin:2.2.2:prepare (default-cli) on project gam-core: Unable to commit files Provider message: The git-push command failed. Command output: ssh: connect to host gitserver.com port 22: Connection refused fatal: The remote end hung up unexpectedly at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:213) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59) at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156) at org.jvnet.hudson.maven3.launcher.Maven3Launcher.main(Maven3Launcher.java:79) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57