>From the same console, can you do something like this:
https://help.github.com/articles/testing-your-ssh-connection/ On Fri, Jan 13, 2017 at 12:55 PM Irfan Sayed <irfu.sa...@gmail.com> wrote: made the scm section changes and committed. here is the build output log: ef-builder --- [INFO] Installing C:\sinatra-chef-builder-plugin\target\sinatra-chef-builder .hpi to C:\Users\irfanjs\.m2\repository\org\jenkins-ci\plugins\sinatra-chef-buil der\1.10\sinatra-chef-builder-1.10.hpi [INFO] Installing C:\sinatra-chef-builder-plugin\pom.xml to C:\Users\irfanjs \.m2\repository\org\jenkins-ci\plugins\sinatra-chef-builder\1.10\sinatra-chef-bu ilder-1.10.pom [INFO] Installing C:\sinatra-chef-builder-plugin\target\sinatra-chef-builder .jar to C:\Users\irfanjs\.m2\repository\org\jenkins-ci\plugins\sinatra-chef-buil der\1.10\sinatra-chef-builder-1.10.jar [INFO] --------------------------------------------------------------------- --- [INFO] BUILD SUCCESS [INFO] --------------------------------------------------------------------- --- [INFO] Total time: 02:35 min [INFO] Finished at: 2017-01-13T11:36:47-08:00 [INFO] Final Memory: 62M/167M [INFO] --------------------------------------------------------------------- --- [INFO] Checking in modified POMs... [INFO] Executing: cmd.exe /X /C "git add -- pom.xml" [INFO] Working directory: C:\sinatra-chef-builder-plugin [INFO] Executing: cmd.exe /X /C "git rev-parse --show-toplevel" [INFO] Working directory: C:\sinatra-chef-builder-plugin [INFO] Executing: cmd.exe /X /C "git status --porcelain ." [INFO] Working directory: C:\sinatra-chef-builder-plugin [WARNING] Ignoring unrecognized line: ?? pom.xml.releaseBackup [WARNING] Ignoring unrecognized line: ?? release.properties [WARNING] Ignoring unrecognized line: ?? target/ [INFO] Executing: cmd.exe /X /C "git commit --verbose -F C:\Users\irfanjs\AppDat a\Local\Temp\maven-scm-1195565814.commit pom.xml" [INFO] Working directory: C:\sinatra-chef-builder-plugin [INFO] Executing: cmd.exe /X /C "git symbolic-ref HEAD" [INFO] Working directory: C:\sinatra-chef-builder-plugin [INFO] Executing: cmd.exe /X /C "git push g...@github.com/jenkinsci/sinatra-chef- builder-plugin.git refs/heads/master:refs/heads/master" [INFO] Working directory: C:\sinatra-chef-builder-plugin [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 03:37 min [INFO] Finished at: 2017-01-13T11:36:48-08:00 [INFO] Final Memory: 16M/39M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-release-plugin:2.5 .3:prepare (default-cli) on project sinatra-chef-builder: Unable to commit files [ERROR] Provider message: [ERROR] The git-push command failed. [ERROR] Command output: [ERROR] fatal: 'g...@github.com/jenkinsci/sinatra-chef-builder-plugin.git' does n ot appear to be a git repository [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] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit ch. [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 rea d the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureExc eption irfanjs@host-10 MINGW64 /c/sinatra-chef-builder-plugin (master) $ regards, On Fri, Jan 13, 2017 at 11:10 AM, Slide <slide.o....@gmail.com> wrote: Well, the SCM section doesn't match with the repo url: https://github.com/jenkinsci/sinatra-chef-builder-plugin is the repo URL, but the scm section has <connection>scm:git:git://github.com/jenkinsci/chefbuilder-plugin.git</ connection> <developerConnection>scm:git:ssh:// g...@github.com/jenkinsci/chefbuilder-plugin.git</developerConnection> <url>http://github.com/jenkinsci/chefbuilder-plugin</url> <tag>HEAD</tag> The URL's clearly don't match. The SCM section for the token-macro-plugin that I maintain is like this: <connection>scm:git:git://github.com/jenkinsci/token-macro-plugin.git</ connection> <developerConnection>scm:git:g...@github.com: jenkinsci/token-macro-plugin.git</developerConnection> <tag>HEAD</tag> Can you post a build log of the current runs after the changes? On Fri, Jan 13, 2017 at 11:38 AM Irfan Sayed <irfu.sa...@gmail.com> wrote: Ok. thanks. Let me remove below line and commit. <hpi-plugin.version>1.106</hpi-plugin.version> so you mean, the curent scm section look OK? should i mention any username and password in the settings.xml? is mvn release:prepare release:perform command is enough? regards, On Fri, Jan 13, 2017 at 11:57 PM, Slide <slide.o....@gmail.com> wrote: You shouldn't need to specify an hpi plugin version at all, it will be handled in the parent pom. When I click on the repo you have in your previous email it takes me to a different name. On Fri, Jan 13, 2017, 10:52 Irfan Sayed <irfu.sa...@gmail.com> wrote: Thanks Slide. Can you please tell me what should be the hpi plugin version in POM.xml? i will make necessary change and commit. further, git scm info is the same which i kept when i released the initial version. can you please tell me then what should be the correct link? please let me know Regards, On Fri, Jan 13, 2017 at 11:16 PM, Slide <slide.o....@gmail.com> wrote: One question, why are you overriding the hpi plugin version? https://github.com/jenkinsci/sinatra-chef-builder-plugin/blob/master/pom.xml#L15 Also, it looks like the git scm info in the pom.xml is for an old repo link? On Fri, Jan 13, 2017 at 9:29 AM Irfan Sayed <irfu.sa...@gmail.com> wrote: Sure Thanks Let me explain: My current development environment: 1: windows box 2: eclipse MARs release 3: java 1.8 4: maven version: 3.3.9 5: fixed all the findbugs issues plugin details: Chef sinatra jenkins plugin: current version: 1.3 Release process: this is the first time i am uploading the new version of my plugin Installed git bash my github account and jenkins account is same created the public/private key pair uploaded the public key to the github. settings.xml is taken from the link: https://wiki.jenkins-ci.org/display/JENKINS/Plugin+tutorial troubleshooting steps i did: i followed most instruction in the URL: https://wiki.jenkins-ci.org/display/JENKINS/Hosting+Plugins 1: hard-coded username and password in the settings section in settings.xml 2: pass the username/password in the mvn release command 3: able to push the latest changes in the github without asking for password 4: run the command mvn help:effective-settings to get the effective settings to check the distributionManagement tag. it seems OK 5: my plugin POM is updated with Jenkins parent plugin POM : https://github.com/jenkinsci/plugin-pom 6: effective POM is also seems OK 7:get the encrypted password from the repo.jenkins-ci.org and paste in the settings.xml instead of plain text password. 8: created the PR request for the review 9: followed the instruction in the : https://github.com/jenkins-infra/repository-permissions-updater actual commands : git clone https://github.com/jenkinsci/sinatra-chef-builder-plugin.git git add pom.xml src git commit -m "new version" git push origin master final release command: mvn release:prepare release:perform i am getting "401 unauthorized error" please suggest Regards, On Fri, Jan 13, 2017 at 9:16 PM, Slide <slide.o....@gmail.com> wrote: This is a pretty long thread, would it be possible for you to sum up where you are currently stuck, what you have tried and so forth? On Fri, Jan 13, 2017 at 8:19 AM Irfan Sayed <irfu.sa...@gmail.com> wrote: hi, can someone please help. I am stuck totally. regards, On Fri, Jan 13, 2017 at 3:15 PM, Irfan Sayed <irfu.sa...@gmail.com> wrote: Further update: I got the Encrypted password of my account and put it in the settings.xml as well. https://repo.jenkins-ci.org/webapp/#/profile here is the snippet from settings.xml: <servers> <server> <id>java.net-m2-repository</id> <!-- For parent 1.397 or newer; before this use id java.net-m2-repository --> <username>irfanjs</username> <password>$encryptedpassword</password> </server> </servers> still it throws the unauthorized error. can someone please provide me the access to release plugin ? regards, On Thu, Jan 12, 2017 at 11:25 PM, Irfan Sayed <irfu.sa...@gmail.com> wrote: As i am troubleshooting further, just wanted to confirm, if my ID : "irfanjs" has valid deploy artifact/release plugin permission to jenkins-ci org? Hi Baptiste/Daniel, Can i Request you to please have a look on the same. -- 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-dev+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/CAPiUgVdwBiKJrgpgq6XUUdwfhns--uU4aZE-QyU4n6Yu6bDJ%2BQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.