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

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

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

JordanGS
$ 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 [hidden email]

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 [hidden email].
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.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

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

JordanGS
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:
   
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

What is going on?

--
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 [hidden email].
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.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

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

Robert Sandell-2
You might not be on the list of contributors allowed to upload artifacts

/B

On Mon, Mar 13, 2017 at 8:08 AM, JordanGS <[hidden email]> wrote:
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:

   
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

What is going on?

--
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 [hidden email].
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.

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/CALzHZS0i3p7xhgNn%3DcX7YGFmY6Rf-jUPzrMecZnTc0%2BvB2J%3DJA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

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

Daniel Beck

> On 13.03.2017, at 11:10, Robert Sandell <[hidden email]> 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.

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/2FDD0EED-B25D-439F-9FDF-AE043F5C14BF%40beckweb.net.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

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

JordanGS
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 [hidden email]
  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.

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/5aea9051-0c82-4d61-8b72-625d4986590a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

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

Daniel Beck

> On 13.03.2017, at 15:15, JordanGS <[hidden email]> 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.

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/DD16C20C-300C-41C7-BD50-55115A8364AC%40beckweb.net.
For more options, visit https://groups.google.com/d/optout.
Loading...