Error when running maven command to release on jenkins-ci.org

1,396 views
Skip to first unread message

JordanGS

unread,
Mar 13, 2017, 1:58:24 AM3/13/17
to Jenkins Developers
$ 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

I followed the following tutorial, 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 g...@github.com

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



JordanGS

unread,
Mar 13, 2017, 3:08:46 AM3/13/17
to Jenkins Developers
And to add another thing, when i try using windows cmd.exe, i get

    [ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.8.2:deploy (default-deploy) on project zap: Failed to deploy artifacts: Could not transfer artifact org.jenkins-ci.plugins:zap:hpi:1.0.6 from/to maven.jenkins-ci.org (https://repo.jenkins-ci.org/releases/): Access denied to: https://repo.jenkins-ci.org/releases/org/jenkins-ci/plugins/zap/1.0.6/zap-1.0.6.hpi, ReasonPhrase: Forbidden. -> [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:

What is going on?

Robert Sandell

unread,
Mar 13, 2017, 6:10:11 AM3/13/17
to jenkin...@googlegroups.com
You might not be on the list of contributors allowed to upload artifacts

/B

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/5edc7f96-f129-4c7d-9a63-6f6a8bc5a56e%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Robert Sandell
Software Engineer
CloudBees Inc.

Daniel Beck

unread,
Mar 13, 2017, 8:43:23 AM3/13/17
to jenkin...@googlegroups.com

> On 13.03.2017, at 11:10, Robert Sandell <rsan...@cloudbees.com> wrote:
>
> You might not be on the list of contributors allowed to upload artifacts
> https://github.com/jenkins-infra/repository-permissions-updater

He is, but may be using a different account now.

JordanGS

unread,
Mar 13, 2017, 10:15:53 AM3/13/17
to Jenkins Developers, m...@beckweb.net
It took a couple hours but i got it working. To answer your questions, i am using the same exact account.

  1. Install Git Bash and make sure to configure the line ending conversions to Check as-in, commit as-is
  2. Make sure, JAVA_HOME and M2_HOME are recognized
  3. If using SSH, test connection with ssh -T g...@github.com
  4. Use mvn deploy to test your connection settings after having configured settings.xml

One of the original failures, published half the files for some reason, so i believe that caused the hidden. Which is weird because i don't understand why it would upload files before doing the git commands. See here.

Daniel Beck

unread,
Mar 13, 2017, 10:29:06 AM3/13/17
to jenkin...@googlegroups.com

> On 13.03.2017, at 15:15, JordanGS <develop...@gmail.com> wrote:
>
> published half the files for some reason, so i believe that caused the hidden

Right, you're not allowed to delete, which is what overwriting does (delete + create).

That version number is burnt, use the next one.

Reply all
Reply to author
Forward
0 new messages