I think you need to follow this howto for getting the correct encrypted
password for the settings.xml.
https://www.roytuts.com/encrypt-user-passwords-in-maven-settings/




On Fri, May 22, 2020 at 4:01 PM Tyler Camp <[email protected]>
wrote:

> Yes, I've double-checked everything on that list before posting here. This
> is my first time performing a release.
>
> On Friday, May 22, 2020 at 5:11:17 PM UTC-4, slide wrote:
>>
>> Can you take a quick look at this page and make sure you have everything
>> covered?  https://www.jenkins.io/doc/developer/publishing/releasing/
>> <https://www.jenkins.io/doc/developer/publishing/releasing/#Troubleshooting>.
>> Have you released before?
>>
>> On Fri, May 22, 2020 at 10:30 AM Tyler Camp <[email protected]>
>> wrote:
>>
>>> 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 [email protected].
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/jenkinsci-dev/2166ff20-524a-40ab-9b31-928b407f1f83%40googlegroups.com
>>> <https://groups.google.com/d/msgid/jenkinsci-dev/2166ff20-524a-40ab-9b31-928b407f1f83%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>>
>>
>> --
>> Website: http://earl-of-code.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 [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-dev/d9ee0d80-d4c1-41f4-a8f0-be82e4eb05fd%40googlegroups.com
> <https://groups.google.com/d/msgid/jenkinsci-dev/d9ee0d80-d4c1-41f4-a8f0-be82e4eb05fd%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>


-- 
Website: http://earl-of-code.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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/CAPiUgVd6fX7_Co6pUcfb3P3eeErCr0_y8JisX90839uA2K42%3Dg%40mail.gmail.com.

Reply via email to