Another "can't release plugin" thread

38 views
Skip to first unread message

Emory Penney

unread,
Apr 13, 2018, 3:34:07 PM4/13/18
to Jenkins Developers
I know there are a bunch of threads on this but I haven't found any feedback in any of the existing threads that helped me resolve this at all.  Releases fail to push to GIT during prepare:
[INFO] Working directory: C:\Users\ejpenney\Desktop\startup-trigger-plugin
[INFO] Executing: cmd.exe /X /C "git push g...@github.com:jenkinsci/startup-trigger-plugin.git refs/heads/master:refs/heads/master"
[INFO] Working directory: C:\Users\ejpenney\Desktop\startup-trigger-plugin
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 02:55 min
[INFO] Finished at: 2018-04-13T12:21:00-07:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-release-plugin:2.5.3:prepare (default-cli) on project startup-trigger-plugin: Unable to commit files
[ERROR] Provider message:
[ERROR] The git-push command failed.
[ERROR] Command output:
[ERROR] ssh: connect to host github.com port 22: Connection timed out
[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]
[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
I'm running Maven 3.5.3 on Windows 10, with Git for Windows (MSYS 2.16.2-windows.1).  The Jenkins Support Wiki indicates this could be a problem with Tortoise GIT, which I do not have installed, so I can't utilize the documented work around.  If I specify -Dusername and -Dpassword on the command line then I get the error where it says my username is not a valid hostname so I've set my username and password in the Maven settings.xml.

I'm running behind an http_proxy (that does not require authentication).  I've set all the usual environment variables to point at my proxy (ALL_PROXY, HTTPS_PROXY, HTTP_PROXY, FTP_PROXY).  I've configured maven to use the proxy in settings.xml.  I've set git config --system http.proxy as well as --global.  As a matter of fact, mvn install and git push work just fine.  It only fails during release:prepare.  Read that again: Git pulls and pushes work fine UNLESS they're happening from inside Maven.

What the heck am I missing?  Why can't GIT connect?

Thanks

Slide

unread,
Apr 13, 2018, 3:38:38 PM4/13/18
to jenkin...@googlegroups.com
Just to be clear, you did -Dusername=<something> -Dpassword=<something> correct?

--
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-de...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/34afdb62-a0ea-4ce9-bdb3-f0bbf0c9d7fc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Slide

unread,
Apr 13, 2018, 3:40:28 PM4/13/18
to jenkin...@googlegroups.com
Actually, now that I review [1] if you are using ssh with GitHub, it says you must NOT specify those on the command line and that you have to setup an ssh-agent for it to work.

Emory Penney

unread,
Apr 13, 2018, 3:41:50 PM4/13/18
to jenkin...@googlegroups.com
Yes I did, that resulted in the error indicating my username was an invalid hostname. I'd be happy to try to figure that method out if it would work better...

You received this message because you are subscribed to a topic in the Google Groups "Jenkins Developers" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-dev/1FDdo2h2wug/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jenkinsci-de...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/CAPiUgVf2YUiX67br2xg%3DzPW9v0fEPDaq3Y705DYiAhD6eLW6cg%40mail.gmail.com.

Emory Penney

unread,
Apr 13, 2018, 5:14:39 PM4/13/18
to Jenkins Developers
Well, I just verified my ssh-agent is running and my key is loaded, but the same error as above persists.  The error says connection attempted to timeout, wouldn't I be getting an authentication error if there was something wrong with my key?  And again, straight git push works, it's only failing when I run through maven...  The "connection timeout" message leads me to believe this has something to do with the proxy but I can't fathom why Git would be ignoring my proxy settings when called by Maven.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-dev+unsubscribe@googlegroups.com.

--
You received this message because you are subscribed to a topic in the Google Groups "Jenkins Developers" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-dev/1FDdo2h2wug/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jenkinsci-dev+unsubscribe@googlegroups.com.

Slide

unread,
Apr 13, 2018, 5:48:01 PM4/13/18
to jenkin...@googlegroups.com
Can you verify that the scm setup in your pom.xml matches what you are expecting it to be with your plain git push commands that you are running on the command line? Maven will use the configuration from the <scm></scm> section in your pom.xml for the release process.

To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-de...@googlegroups.com.

--
You received this message because you are subscribed to a topic in the Google Groups "Jenkins Developers" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-dev/1FDdo2h2wug/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jenkinsci-de...@googlegroups.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 jenkinsci-de...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/c62f81bd-e094-4b7f-900e-378c1cfeed60%40googlegroups.com.

Emory Penney

unread,
Apr 13, 2018, 6:23:29 PM4/13/18
to jenkin...@googlegroups.com
Alright, it looks like my "ProxyCommand" in my ssh config wasn't correct, believe it or not it was your comment about the ssh-agent that sent me in that direction so, thanks!  I don't know why it worked with git pushes and not with Maven but correcting that has gotten me a bit further and I'm not going to question it at this point.  Now I've got a new issue, I don't seem to be able to get through the deploy portion of the release:

    Uploading to maven.jenkins-ci.org: https://repo.jenkins-ci.org/releases/org/jenkins-ci/plugins/startup-trigger-plugin/2.9.1/startup-trigger-plugin-2.9.1.pom

    [INFO] ------------------------------------------------------------------------
    [INFO] BUILD FAILURE
    [INFO] ------------------------------------------------------------------------
    [INFO] Total time: 40.998 s
    [INFO] Finished at: 2018-04-13T14:43:20-07:00
    [INFO] ------------------------------------------------------------------------
    [ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.8.2:deploy (default-deploy) on project startup-trigger-plugin: Failed to deploy artifacts: Could not transfer artifact org.jenkins-ci.plugins:startup-trigger-plugin:hpi:2.9.1 from/to maven.jenkins-ci.org (https://repo.jenkins-ci.org/releases/): Failed to transfer file: https://repo.jenkins-ci.org/releases/org/jenkins-ci/plugins/startup-trigger-plugin/2.9.1/startup-trigger-plugin-2.9.1.hpi. Return code is: 401, ReasonPhrase: . -> [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:

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 04:00 min
[INFO] Finished at: 2018-04-13T14:43:20-07:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-release-plugin:2.5.3:perform (default-cli) on project startup-trigger-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:
Now I've just spent the last 30 minutes spinning my wheels running "mvn deploy" repeatedly trying to get it right... I'm certain I have the password correct.  I iterated the version number a few times to make sure I wasn't re-uploading a version that had already been uploaded.  The deploy goal errors basically the same way only the failing URL is https://repo.jenkins-ci.org/snapshots/org/jenkins-ci/plugins/startup-trigger-plugin/2.9.2-SNAPSHOT/startup-trigger-plugin-2.9.2-20180413.220421-1.hpi  I noticed https://repo.jenkins-ci.org/snapshots/org/jenkins-ci/plugins/startup-trigger-plugin doesn't exist, but I think that may be a red herring.

I'm going to try iterating the version one more time, but I'm open to suggestions about why this may not be working?  I haven't released this plugin in over a year and I wonder if there's some new process I may have not signed up for yet?


To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-dev+unsubscribe@googlegroups.com.

--
You received this message because you are subscribed to a topic in the Google Groups "Jenkins Developers" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-dev/1FDdo2h2wug/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jenkinsci-dev+unsubscribe@googlegroups.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 jenkinsci-dev+unsubscribe@googlegroups.com.

--
You received this message because you are subscribed to a topic in the Google Groups "Jenkins Developers" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-dev/1FDdo2h2wug/unsubscribe.
To unsubscribe from this group and all its topics, 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/CAPiUgVe3oNFnQjTqvzwLUwGJ6dtcZjuOC8fCVVEC-VTsPdNBwA%40mail.gmail.com.

Emory Penney

unread,
Apr 13, 2018, 6:42:11 PM4/13/18
to jenkin...@googlegroups.com
If at first you don't succeed, try, try again!  53rd time was the charm and my plugin is released!  Well, there went my Friday, have a good weekend!
Reply all
Reply to author
Forward
0 new messages