Failed to deploy to http://maven.jenkins-ci.org:8081 for claim-plugin

189 views
Skip to first unread message

Christian

unread,
Nov 8, 2016, 3:17:08 AM11/8/16
to Jenkins Developers
Hi, I have read https://wiki.jenkins-ci.org/display/JENKINS/Hosting+Plugins#HostingPlugins-Workingaroundcommonissues and tried several different things but when I try to release a new plugin version it always fail with:

INFO] [ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.6:deploy (default-deploy) on project claim: Failed to deploy artifacts: Could not transfer artifact org.jenkins-ci.plugins:claim:hpi:2.9 from/to maven.jenkins-ci.org (http://maven.jenkins-ci.org:8081/content/repositories/releases): Connect to maven.jenkins-ci.org:8081 [maven.jenkins-ci.org/199.193.196.24] failed: Operation timed out -> [Help 1]


I have a ~/.m2/settings.xml that looks like this:

<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"

  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

  xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0

                      http://maven.apache.org/xsd/settings-1.0.0.xsd">


  <servers>

    <server>

      <id>maven.jenkins-ci.org</id> <!-- For parent 1.397 or newer; before this use id java.net-m2-repository -->

      <username>ki82</username>

      <password>***************</password>

    </server>

  </servers>


</settings>


I have verified that my password works at https://repo.jenkins-ci.org/webapp/#/login and I use the encrypted password in the ~/m2/settings.xml

I have executed the effective pom and verified that the id is correct.


Does anyone have any idea why this is failing for me?

Is there any way to test the connection to maven.jenkins-ci.org without doing an actual release?




Daniel Beck

unread,
Nov 8, 2016, 6:32:58 AM11/8/16
to jenkin...@googlegroups.com

> On 08.11.2016, at 09:17, Christian <chra...@gmail.com> wrote:
>
> Does anyone have any idea why this is failing for me?
>

Second issue in the common issues list (granted, it's Operation timed out rather than Connection refused, but close enough).

Fritz Elfert

unread,
Nov 8, 2016, 10:30:20 AM11/8/16
to jenkin...@googlegroups.com
Having exactly the same now. So:

Which "common" issues list?

I have searched this group, and the various Links on
https://wiki.jenkins-ci.org/display/JENKINS/Hosting+Plugins
but did not yet stuble over that timeout thingie.

URL please!

Thanks
-Fritz

signature.asc

Daniel Beck

unread,
Nov 8, 2016, 12:37:18 PM11/8/16
to jenkin...@googlegroups.com

> On 08.11.2016, at 16:30, Fritz Elfert <fr...@fritz-elfert.de> wrote:
>
> Which "common" issues list?
>
> I have searched this group, and the various Links on
> https://wiki.jenkins-ci.org/display/JENKINS/Hosting+Plugins
> but did not yet stuble over that timeout thingie.
>
> URL please!

The one you linked to:

https://wiki.jenkins-ci.org/display/JENKINS/Hosting+Plugins#HostingPlugins-Workingaroundcommonissues

Second item:

> The upload to maven.jenkins-ci.org fails with "Connection refused" or "401 Unauthorized"
> The Maven repository is now located at repo.jenkins-ci.org.

Baptiste Mathus

unread,
Nov 8, 2016, 2:24:26 PM11/8/16
to Jenkins Developers


--
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/25268E51-6A2E-4FFD-8D3E-87653C9A2FF1%40beckweb.net.
For more options, visit https://groups.google.com/d/optout.

Christian

unread,
Nov 10, 2016, 2:12:53 AM11/10/16
to jenkin...@googlegroups.com
Thanks Daniel,

I tried locally with several different jenkins-test-harness.version but it always fails with compilation errors, what am I doing wrong?

I am currently not developing this plugin actively but thought I would release a new version with some pull request from the community but the release process is not as easy as one would like..

--
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.

Daniel Beck

unread,
Nov 10, 2016, 10:39:34 AM11/10/16
to jenkin...@googlegroups.com

> On 10.11.2016, at 08:12, Christian <chra...@gmail.com> wrote:
>
> I tried setting a new parent, but then the build fails see https://github.com/jenkinsci/claim-plugin/commit/56098d240dfedffd6f1fbc2426ac4724de0880f3#diff-0
> I tried locally with several different jenkins-test-harness.version but it always fails with compilation errors, what am I doing wrong?
>
> I am currently not developing this plugin actively but thought I would release a new version with some pull request from the community but the release process is not as easy as one would like..

It seems like the dependency on mock_javamail needs to be explicit now. Not sure where that's coming from.

And since we moved from our forked and patched HtmlUnit to the upstream one more than a year ago[1] to be able to support testing with modern JavaScript frameworks, some methods and types have changed. The alternative is stagnation and obsolescence.

Additionally, the plugin used unsafe Jelly files, which could (with a combination of other factors) result in XSS vulnerabilities. The HPI plugin requires it to have an XML PI to escape by default for almost two years now.

This might look like a lot, but if the plugin has been stale for years, even a single change per year can pile up.

Note that the parent POM now by default runs FindBugs to improve code quality, which results in a number of failures. You need to disable FindBugs, or address these findings (fixing or ignoring).

I've opened a pull request with all my changes.

georg....@netcentric.biz

unread,
Jan 9, 2017, 2:50:57 PM1/9/17
to Jenkins Developers, m...@beckweb.net
Just ran into the same issue... updating the <distributionManagement> section works. The Plugin Tutorial is outdated though:

links to 
v2.2 of plugin parent still uses the old <distributionManagement>:

It's probably best if the parent of hello-world-plugin would be updated to the latest plugin parent?

Regards
Georg

Yuanbo Han

unread,
Mar 13, 2017, 3:37:43 AM3/13/17
to Jenkins Developers

Please refer here: https://wiki.jenkins-ci.org/display/JENKINS/Hosting+Plugins#HostingPlugins-Workingaroundcommonissues.  You should update the parent org.jenkins-ci.plugins version.

在 2016年11月8日星期二 UTC+8下午4:17:08,Christian写道:
Reply all
Reply to author
Forward
0 new messages