Hello, I am working on the same plugin, I use a Windows machine and also followed the steps listed in the wiki (configuring access to maven.jenkins-ci.org in settings.xml, etc.). When I finally run the mvn release:prepare release:perform goals I get the error message shown below.
Strange thing is that when I search the repository (http://repo.jenkins-ci.org/webapp/search/artifact?1&q=sonargraph), I actually see the plugin in the release repository. The URL that maven complains about not being able to access is accessible through a browser with no problem. Can anyone please explain, what maven is trying to do, where it reads the credentials from (that it uses to access the URL) and what is supposed to happen after this access? I mean, since the plugin is showing up in the release repo, what else needs to be done by maven in release:perform? Or is there any configuration missing on the server-side? Many thanks in advance for helping out a Jenkins-newbe! Cheers, Ingmar hello2morrow GmbH Pilotystrasse 4, D-80538 München, Deutschland. Tel: +49-89- 25557-5708 Handelsregister-Nr. HRB 194643 beim Amtsgericht München, Ust.-IdNr. DE 814332144 Geschäftsführer: Alexander v. Zitzewitz www.hello2morrow.com [INFO] 6200/6200 KB [INFO] [INFO] Uploading: http://maven.jenkins-ci.org:8081/content/repositories/releases/org/jenkins-c i/plugins/sonargraph-plugin/1.0/sonargraph-plugin-1.0.pom [INFO] 2/6 KB [INFO] 4/6 KB [INFO] 6/6 KB [INFO] [INFO] [INFO] ------------------------------------------------------------------------ [INFO] [INFO] BUILD FAILURE [INFO] [INFO] ------------------------------------------------------------------------ [INFO] [INFO] Total time: 3:14.329s [INFO] [INFO] Finished at: Tue May 07 14:27:09 CEST 2013 [INFO] [INFO] Final Memory: 52M/392M [INFO] [INFO] ------------------------------------------------------------------------ [INFO] [ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.6:deploy (default-deploy) on project sonargraph-plugin: Failed to deploy artifacts: Could not transfer artifact org .jenkins-ci.plugins:sonargraph-plugin:hpi:1.0 from/to maven.jenkins-ci.org (http://maven.jenkins-ci.org:8081/content/repositories/releases): Access denied to: http://maven.jenkins-ci.org:8081/content/ repositories/releases/org/jenkins-ci/plugins/sonargraph-plugin/1.0/sonargrap h-plugin-1.0.hpi, ReasonPhrase:Forbidden. -> [Help 1] [INFO] [ERROR] [INFO] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [INFO] [ERROR] Re-run Maven using the -X switch to enable full debug logging. [INFO] [ERROR] [INFO] [ERROR] For more information about the errors and possible solutions, please read the following articles: [INFO] [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 4:57.262s [INFO] Finished at: Tue May 07 14:27:10 CEST 2013 [INFO] Final Memory: 16M/218M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-release-plugin:2.2.2:perform (default-cli) on project sonargraph-plugin: Maven execution failed, exit code: '1' -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [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: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException Von: [email protected] [mailto:[email protected]] Im Auftrag von Esteban Angee Gesendet: Montag, 6. Mai 2013 19:22 An: [email protected] Betreff: Problem releasing plugin Hello, I'm trying to release my plugin without any luck so far. I have followed all steps listed here https://wiki.jenkins-ci.org/display/JENKINS/Hosting+Plugins but I get the build error you see below. As the link mentions, my jenkins-ci username and github username are different, but I have already added my public key to Github and started a ssh-agent and the outcome is the same. The following line shows that it is trying to push a tag to my github account but with wrong credentials: [INFO] Executing: /bin/sh -c cd /home/esteban/Workspaces/Jenkins-Sonargraph-plugin/sonargraph-plugin && git push ssh://esteban_h2m:[email protected]/jenkinsci/sonargraph-plugin.git sonargraph-plugin-1.0 It is pushing with the jenkins-ci username stored in the settings.xml Any Ideas on how to solve this? esteban@esteban-VirtualBox:~/Workspaces/Jenkins-Sonargraph-plugin/sonargraph -plugin$ mvn release:prepare release:perform [INFO] Scanning for projects... [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building Sonargraph Plugin 1.0 [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-release-plugin:2.2.2:prepare (default-cli) @ sonargraph-plugin --- [INFO] Resuming release from phase 'scm-tag' [INFO] Tagging release with the label sonargraph-plugin-1.0... [INFO] Executing: /bin/sh -c cd /home/esteban/Workspaces/Jenkins-Sonargraph-plugin/sonargraph-plugin && git tag -F /tmp/maven-scm-1942063480.commit sonargraph-plugin-1.0 [INFO] Working directory: /home/esteban/Workspaces/Jenkins-Sonargraph-plugin/sonargraph-plugin [INFO] Executing: /bin/sh -c cd /home/esteban/Workspaces/Jenkins-Sonargraph-plugin/sonargraph-plugin && git push ssh://esteban_h2m:[email protected]/jenkinsci/sonargraph-plugin.git sonargraph-plugin-1.0 [INFO] Working directory: /home/esteban/Workspaces/Jenkins-Sonargraph-plugin/sonargraph-plugin [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 5.084s [INFO] Finished at: Mon May 06 12:16:04 COT 2013 [INFO] Final Memory: 11M/146M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-release-plugin:2.2.2:prepare (default-cli) on project sonargraph-plugin: Unable to tag SCM [ERROR] Provider message: [ERROR] The git-push command failed. [ERROR] Command output: [ERROR] Permission denied (publickey). [ERROR] fatal: The remote end hung up unexpectedly [ERROR] -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [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: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException -- Esteban Angee Agudelo Software Engineer hello2morrow S.A.S (574)5804555 [email protected] http://www.hello2morrow.com -- 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 [email protected]. For more options, visit https://groups.google.com/groups/opt_out. -- 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 [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
