Unable to release plugin - auth to Artifactory failing, but works with other Jenkins infra

887 views
Skip to first unread message

David Conneely

unread,
Dec 2, 2021, 5:24:28 AM12/2/21
to Jenkins Developers
Hi All,

I am maintainer of the dimensionsscm-plugin, GitHub user dconneely, Jenkins user dconneely.

I am trying to make a new release of the plugin, but the same credentials that work for issues.jenkins.io and accounts.jenkins.io are not allowing me to log in to repo.jenkins-ci.org/ui/login/, nor to deploy a new plugin release (I am using mvn release:prepare release:perform to do a manual release, and have updated my settings.xml each time I have changed my Jenkins password).

I have tried resetting my Jenkins account password on account.jenkins.io in case it was some kind of password sync issue, but it has made no difference.

Any ideas what I should try next?

Cheers,
David.

David Conneely

unread,
Dec 2, 2021, 5:30:56 AM12/2/21
to Jenkins Developers
I meant to include how the authentication failed in both cases, although it's fairly unremarkable. As mentioned, the same username and password works fine elsewhere.

When I attempt to perform a manual plugin release, maven reports:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.8.2:deploy (default-deploy) on project dimensionsscm: Failed to deploy artifacts: Could not transfer artifact org.jenkins-ci.plugins:dimensionsscm:hpi:0.9.3 from/to maven.jenkins-ci.org (https://repo.jenkins-ci.org/releases/): authentication failed for https://repo.jenkins-ci.org/releases/org/jenkins-ci/plugins/dimensionsscm/0.9.3/dimensionsscm-0.9.3.hpi, status: 401 Unauthorized -> [Help 1]

When I attempt to log in to repo.jenkins-ci.org/ui/login/, the web page reports:
Login has failed. Due to Incorrect username/password or locked user.

Mathieu Delrocq

unread,
Dec 2, 2021, 8:55:20 AM12/2/21
to jenkin...@googlegroups.com
Hi David,

I faced same error when I released my plugin this week. It was because I didn't use an encrypted password to publish on the artifactory.

This tutorial solve the error 401 for me :

But maybe you locked your account by trying too much time. That's why you got "Login has failed. Due to Incorrect username/password or locked user."


Regards,

Mathieu



--
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/875cc96b-77d1-4c83-92db-46f2b32fba6cn%40googlegroups.com.

David Conneely

unread,
Dec 2, 2021, 10:21:06 AM12/2/21
to Jenkins Developers
Hi,

Thanks for the suggestions, but I think it's not just the encryption in settings.xml as I can't even use the same credentials to log in to Artifactory (although they work for Jira).
I have also tried using both encrypted and unencrypted credentials in my settings.xml (just to rule out the encryption), and resetting the password on accounts.jenkins.io.

Cheers,
David.

Daniel Beck

unread,
Dec 2, 2021, 10:37:24 AM12/2/21
to jenkin...@googlegroups.com
On Thu, Dec 2, 2021 at 4:21 PM David Conneely <david.c...@gmail.com> wrote:
Hi,

Thanks for the suggestions, but I think it's not just the encryption in settings.xml as I can't even use the same credentials to log in to Artifactory (although they work for Jira).
I have also tried using both encrypted and unencrypted credentials in my settings.xml (just to rule out the encryption), and resetting the password on accounts.jenkins.io.

Try fixing your email address in the account app, Artifactory logs say it's invalid (why it cares, I don't know). 

David Conneely

unread,
Dec 2, 2021, 2:23:53 PM12/2/21
to Jenkins Developers
Thanks Daniel! That's solved it :).
Reply all
Reply to author
Forward
0 new messages