Details
-
Type:
Bug
-
Status: Resolved (View Workflow)
-
Priority:
Minor
-
Resolution: Not A Defect
-
Component/s: artifactory
-
Labels:None
-
Similar Issues:
Description
For unknown reasons, I'm not able to release my plugin. I get a 401 not authorized. I tested my password in artifactory and am able to log in. I'm not sure what the issue is.
- Jenkins deploy user: sag47
- Group: org.jenkins-ci.plugins
- Artifact: scm-filter-branch-pr
- Project: https://github.com/jenkinsci/scm-filter-branch-pr-plugin
Log from my deploy:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.8.2:deploy (default-deploy) on project scm-filter-branch-pr: Failed to deploy artifacts: Could not transfer artifact org.jenkins-ci.plugins:scm-filter-branch-pr:hpi:0.3 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/scm-filter-branch-pr/0.3/scm-filter-branch-pr-0.3.hpi. Return code is: 401, ReasonPhrase: Unauthorized. -> [Help 1]
Unauthorized means Maven does not send a password, or the wrong password. As per https://wiki.jenkins-ci.org/display/JENKINS/Hosting+Plugins#HostingPlugins-Workingaroundcommonissues make sure the repository entry uses the ID maven.jenkins-ci.org in your settings.xml.