I’m attempting to release the latest Code Dx plugin (https://github.com/jenkinsci/codedx-plugin) but am getting HTTP 401 responses when running `mvn release:perform`. Parent POM is latest at 4.2, and I have my maven settings at `C:/Users/algor/.m2/settings.xml` containing:
<settings xmlns="https://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="https://maven.apache.org/SETTINGS/1.0.0
https://maven.apache.org/xsd/settings-1.0.0.xsd">
<servers>
<server>
<id>maven.jenkins-ci.org</id>
<username>tylercamp</username>
<password>REDACTED-ENCRYPTED-PASSWORD</password>
</server>
</servers>
</settings>
Encrypted password was pulled from https://repo.jenkins-ci.org/webapp/#/profile . My account was registered with `jenkins-infrra/repository-permissions-updater` repo: https://github.com/jenkins-infra/repository-permissions-updater/blob/master/permissions/plugin-codedx.yml
Relevant log lines:
[INFO] --- maven-deploy-plugin:2.8.2:deploy (default-deploy) @ codedx ---
Uploading to repo.jenkins-ci.org: https://repo.jenkins-ci.org/releases/org/jenkins-ci/plugins/codedx/3.0.0/codedx-3.0.0.hpi
Uploading to repo.jenkins-ci.org: https://repo.jenkins-ci.org/releases/org/jenkins-ci/plugins/codedx/3.0.0/codedx-3.0.0.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 23.104 s
[INFO] Finished at: 2020-05-22T13:09:05-04:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.8.2:deploy (default-deploy) on project codedx: Failed to deploy artifacts: Could not transfer artifact org.jenkins-ci.plugins:codedx:hpi:3.0.0 from/to repo.jenkins-ci.org (https://repo.jenkins-ci.org/releases): Transfer failed for https://repo.jenkins-ci.org/releases/org/jenkins-ci/plugins/codedx/3.0.0/codedx-3.0.0.hpi 401 Unauthorized -> [Help 1]
[ERROR]
Let me know if there’s more information I should attach for troubleshooting this. Any help appreciated.
--
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/2166ff20-524a-40ab-9b31-928b407f1f83%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkin...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/2166ff20-524a-40ab-9b31-928b407f1f83%40googlegroups.com.
--Website: http://earl-of-code.com
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/d9ee0d80-d4c1-41f4-a8f0-be82e4eb05fd%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/d9ee0d80-d4c1-41f4-a8f0-be82e4eb05fd%40googlegroups.com.
--Website: http://earl-of-code.com
I've recently changed laptops and have had to re setup my environment and obtained the encrypted password correctly using these instructions so they are not incorrect.
I don't doubt you have an issue but could you list the steps you took one by one when you logged into Artifactory to when you pasted in your password to your settings for.
For the record I've also successfully done it the other way that is described in the alternate link by setting up a Maven master password that locally encrypts your password as opposed to getting the pre encrypted password from the server.
--
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/7eae5673-f8eb-4bb5-b5f4-442b0dc4b7d6%40googlegroups.com.