$ mvn -v Apache Maven 3.3.9 Maven home: C:\Development\Apache\Maven 3.3.9 Java version: 1.8.0_121, vendor: Oracle Corporation Java home: C:\Development\Java\current\jdk\jre Default locale: en_CA, platform encoding: Cp1252 OS name: "windows 10", version: "10.0", arch: "amd64", family: "dos"
Project: zap-plugin <https://github.com/jenkinsci/zap-plugin> I followed the following tutorial <https://wiki.jenkins-ci.org/display/JENKINS/Hosting+Plugins>, my jenkins and GitHub have two different usernames and passwords. So i configured C:\Users\username\.m2\settings.xml to include the changes mentioned in the above tutorial. I also created an SSH key, imported it into github and started it with the ssh agent. Testing my connection with the command *ssh -T [email protected]*At this point, i get the following message * Hi JordanGS! You've successfully authenticated, but GitHub does not provide shell access.*It is now that i want to *run mvn release:prepare release:perform*The plugin is successfully built but the push fails causing the build to fail.* (trimmed the debug a little bit). *Thank you. * [INFO] [INFO] --- maven-install-plugin:2.5.2:install (default-install) @ zap --- [INFO] Installing C:\Users\username\Documents\Development\GitHub\jenkinsci\zap-plugin\target\zap.hpi to C:\Users\username\.m2\repository\org\jenkins-ci\plugins\zap\1.0.6\zap-1.0.6.hpi [INFO] Installing C:\Users\username\Documents\Development\GitHub\jenkinsci\zap-plugin\pom.xml to C:\Users\username\.m2\repository\org\jenkins-ci\plugins\zap\1.0.6\zap-1.0.6.pom [INFO] Installing C:\Users\username\Documents\Development\GitHub\jenkinsci\zap-plugin\target\zap.jar to C:\Users\username\.m2\repository\org\jenkins-ci\plugins\zap\1.0.6\zap-1.0.6.jar [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 37.585 s [INFO] Finished at: 2017-03-13T01:47:37-04:00 [INFO] Final Memory: 98M/2291M [INFO] ------------------------------------------------------------------------[INFO] Checking in modified POMs...[INFO] Executing: cmd.exe /X /C "git add -- pom.xml"[INFO] Working directory: C:\Users\username\Documents\Development\GitHub\jenkinsci\zap-plugin[INFO] Executing: cmd.exe /X /C "git rev-parse --show-toplevel"[INFO] Working directory: C:\Users\username\Documents\Development\GitHub\jenkinsci\zap-plugin[INFO] Executing: cmd.exe /X /C "git status --porcelain ."[INFO] Working directory: C:\Users\username\Documents\Development\GitHub\jenkinsci\zap-plugin[WARNING] Ignoring unrecognized line: ?? pom.xml.releaseBackup[WARNING] Ignoring unrecognized line: ?? release.properties[INFO] Executing: cmd.exe /X /C "git commit --verbose -F C:\Users\username\AppData\Local\Temp\maven-scm-573070490.commit pom.xml"[INFO] Working directory: C:\Users\username\Documents\Development\GitHub\jenkinsci\zap-plugin[INFO] Executing: cmd.exe /X /C "git symbolic-ref HEAD"[INFO] Working directory: C:\Users\username\Documents\Development\GitHub\jenkinsci\zap-plugin[INFO] Executing: cmd.exe /X /C "git push https://github.com/jenkinsci/zap-plugin.git refs/heads/master:refs/heads/master"[INFO] Working directory: C:\Users\username\Documents\Development\GitHub\jenkinsci\zap-plugin[INFO] ------------------------------------------------------------------------[INFO] BUILD FAILURE[INFO] ------------------------------------------------------------------------[INFO] Total time: 58.171 s[INFO] Finished at: 2017-03-13T01:47:38-04:00[INFO] Final Memory: 19M/572M[INFO] ------------------------------------------------------------------------[ERROR] Failed to execute goal org.apache.maven.plugins:maven-release-plugin:2.5.3:prepare (default-cli) on project zap: Unable to commit files[ERROR] Provider message:[ERROR] The git-push command failed.[ERROR] Command output:[ERROR] bash: /dev/tty: No such device or address[ERROR] error: failed to execute prompt script (exit code 1)[ERROR] fatal: could not read Username for 'https://github.com': Invalid argument[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* -- 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]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/c7d132d5-ac4c-48ec-bb44-00c5c81b4bcf%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
