publication issue

86 views
Skip to first unread message

Johann Ollivier Lapeyre

unread,
Jul 8, 2015, 5:35:33 PM7/8/15
to jenkin...@googlegroups.com
Hi,

My collegue and apprentice, Ludovic Roucoux, developped on my demand this Jenkins plugin https://github.com/jenkinsci/zaproxy-plugin , and i'd like to be able to contribute/release like him, especially because he could stop the next month. So:
- I can push on this repo. 
- I've also same login on jenkins (johannol)
- I set up my dev environnement, and a "mvn release:prepare release:perform -e" is starting well, but is failing....

Did we miss something or do i need some access rights from you?

Thanks in advance

Johann Ollivier -Lapeyre 




[INFO] [INFO] BUILD SUCCESS
[INFO] [INFO] ------------------------------------------------------------------------
[INFO] [INFO] Total time: 18.996 s
[INFO] [INFO] Finished at: 2015-07-08T22:25:42+02:00
[INFO] [INFO] Final Memory: 50M/590M
[INFO] [INFO] ------------------------------------------------------------------------
[INFO] Checking in modified POMs...
[INFO] Executing: /bin/sh -c cd /home/johann/git/zaproxy-plugin && git add -- pom.xml
[INFO] Working directory: /home/johann/git/zaproxy-plugin
[INFO] Executing: /bin/sh -c cd /home/johann/git/zaproxy-plugin && git rev-parse --show-toplevel
[INFO] Working directory: /home/johann/git/zaproxy-plugin
[INFO] Executing: /bin/sh -c cd /home/johann/git/zaproxy-plugin && git status --porcelain .
[INFO] Working directory: /home/johann/git/zaproxy-plugin
[WARNING] Ignoring unrecognized line: ?? pom.xml.releaseBackup
[WARNING] Ignoring unrecognized line: ?? release.properties
[WARNING] Ignoring unrecognized line: ?? target/
[INFO] Executing: /bin/sh -c cd /home/johann/git/zaproxy-plugin && git commit --verbose -F /tmp/maven-scm-1606206148.commit pom.xml
[INFO] Working directory: /home/johann/git/zaproxy-plugin
[INFO] Executing: /bin/sh -c cd /home/johann/git/zaproxy-plugin && git symbolic-ref HEAD
[INFO] Working directory: /home/johann/git/zaproxy-plugin
[INFO] Executing: /bin/sh -c cd /home/johann/git/zaproxy-plugin && git push ssh://github.com:jenkinsci/zaproxy-plugin.git refs/heads/master:refs/heads/master
[INFO] Working directory: /home/johann/git/zaproxy-plugin
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 31.149 s
[INFO] Finished at: 2015-07-08T22:25:44+02:00
[INFO] Final Memory: 17M/303M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-release-plugin:2.5:prepare (default-cli) on project zaproxy: Unable to commit files
[ERROR] Provider message:
[ERROR] The git-push command failed.
[ERROR] Command output:
[ERROR] Permission denied (publickey).
[ERROR] fatal: Could not read from remote repository.
[ERROR] 
[ERROR] Please make sure you have the correct access rights
[ERROR] and the repository exists.
[ERROR] -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-release-plugin:2.5:prepare (default-cli) on project zaproxy: Unable to commit files
Provider message:
The git-push command failed.
Command output:
Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212)
        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:116)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
        at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
        at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:862)
        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:286)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:197)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
        at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
        at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
Caused by: org.apache.maven.plugin.MojoFailureException: Unable to commit files
Provider message:
The git-push command failed.
Command output:
Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

        at org.apache.maven.plugins.release.PrepareReleaseMojo.prepareRelease(PrepareReleaseMojo.java:285)
        at org.apache.maven.plugins.release.PrepareReleaseMojo.execute(PrepareReleaseMojo.java:232)
        at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
        ... 20 more
Caused by: org.apache.maven.shared.release.scm.ReleaseScmCommandException: Unable to commit files
Provider message:
The git-push command failed.
Command output:
Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

        at org.apache.maven.shared.release.phase.AbstractScmCommitPhase.checkin(AbstractScmCommitPhase.java:165)
        at org.apache.maven.shared.release.phase.AbstractScmCommitPhase.performCheckins(AbstractScmCommitPhase.java:145)
        at org.apache.maven.shared.release.phase.ScmCommitPreparationPhase.runLogic(ScmCommitPreparationPhase.java:76)
        at org.apache.maven.shared.release.phase.AbstractScmCommitPhase.execute(AbstractScmCommitPhase.java:78)
        at org.apache.maven.shared.release.DefaultReleaseManager.prepare(DefaultReleaseManager.java:234)
        at org.apache.maven.shared.release.DefaultReleaseManager.prepare(DefaultReleaseManager.java:169)
        at org.apache.maven.shared.release.DefaultReleaseManager.prepare(DefaultReleaseManager.java:146)
        at org.apache.maven.shared.release.DefaultReleaseManager.prepare(DefaultReleaseManager.java:107)
        at org.apache.maven.plugins.release.PrepareReleaseMojo.prepareRelease(PrepareReleaseMojo.java:277)
        ... 23 more
[ERROR] 
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:

Vincent Latombe

unread,
Jul 9, 2015, 1:38:46 AM7/9/15
to Jenkins Dev
Hi Johann,

from the error message it looks like your github ssh access is not correctly configured. You can check the url used directly in the pom.xml of the plugin. Once you fix push operation through ssh, release:prepare should work.

Make sure you followed https://wiki.jenkins-ci.org/display/JENKINS/Hosting+Plugins#HostingPlugins-Releasingtojenkinsci.org, otherwise you won't be able to deploy to the maven repository (during release:perform)

Cheers,

Vincent

--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-de...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/b97757dc-e31e-4576-acce-421046e4baec%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Johann Ollivier Lapeyre

unread,
Jul 9, 2015, 5:25:19 PM7/9/15
to jenkin...@googlegroups.com
Hi Vincent,

Thanks, it was the URL ;)
Reply all
Reply to author
Forward
0 new messages