Re: Could not resolve hostname

27 views
Skip to first unread message

Richard Bywater

unread,
May 16, 2017, 5:37:47 PM5/16/17
to Jenkins Developers
Have you checked out the "HTTP 401 when transferring a file to the Jenkins Maven repository" section of https://wiki.jenkins-ci.org/display/JENKINS/Hosting+Plugins?

Richard.

On Wed, 17 May 2017 at 09:28 Vijay. J <imvij...@gmail.com> wrote:
Hello!!!

We are trying to release our Jenkins Plugin. While trying to run mvn release:prepare release:perform, I get the following error:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.8.2:deploy (default-deploy) on project ibm-cloud-devops: Failed to deploy artifacts: Could not transfer artifact com.ibm.devops:ibm-cloud-devops:hpi:1.0 from/to maven.jenkins-ci.org (https://repo.jenkins-ci.org/releases/): Failed to transfer file: https://repo.jenkins-ci.org/releases/com/ibm/devops/ibm-cloud-devops/1.0/ibm-cloud-devops-1.0.hpi. Return code is: 401, ReasonPhrase: Unauthorized. -> [Help 1]

SCM from pox.xml:

<scm>
    <connection>scm:git:git://g...@github.com/jenkinsci/ibm-cloud-devops-plugin.git</connection>
    <developerConnection>scm:git:g...@github.com:jenkinsci/ibm-cloud-devops-plugin.git</developerConnection>
    <tag>ibm-cloud-devops-1.0</tag>
 </scm>

Here is my settings.xml which has server:
<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>repo.jenkins-ci.org</id>
          <username>[my_jenkins_username]</username>
          <password>[my_jenkins_password]</password>
        </server>
    </servers>
</settings>

Regards,
Vijay. J.

--
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/a7106c41-3873-4681-a6f3-d3fef91496b5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Daniel Beck

unread,
May 16, 2017, 6:08:57 PM5/16/17
to Jenkins Developers

> On 16. May 2017, at 23:16, Vijay. J <imvij...@gmail.com> wrote:
>
> Could not transfer artifact … from/to maven.jenkins-ci.org
>
> …
>
> <id>repo.jenkins-ci.org</id>

Note the difference. You specified a credential but not for the repo that's actually used. That's an ID in settings.xml, not the actual host name.

Reply all
Reply to author
Forward
0 new messages