-
-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Lost access to publish releases for Crowd2 plugin #3158
Comments
The most likely issue is that the password is incorrect. Be sure that you've followed all the steps on the Artifactory Credentials for Maven page. The password to be encrypted is the password for your You can check that the password is working by running the command |
Additional note: if you change your password on accounts.jenkins.io, you'll have to wait ~3 hours (worst case) until the maven repository is synchronised with the new credentials. |
I changed it 2 weeks ago. |
@DuMaM could you also confirm that you carefully follow the instructions shared by Mark (https://www.jenkins.io/doc/developer/publishing/releasing-manually/#artifactory-credentials-for-maven) ? |
I did it mulitple times, but i will try it out with curl today if i can log in |
@DuMaM did it worked? |
Hi, ~/W/j/crowd2-plugin -> curl -u dumam:<nonencrypted_password> https://repo.jenkins-ci.org/setup/settings.xml
{
"errors" : [ {
"status" : 403,
"message" : "Download request for repo:path 'setup:settings.xml' is forbidden for user: 'dumam'."
} ]
} BTW I just noticed that according to tutorial here https://www.jenkins.io/doc/developer/publishing/releasing-manually/ |
I guess this could be connected with changes around my account done recently. |
Hi @DuMaM . So I've checked your accounts on the different systems involved here:
I've triggered a manual build of the RPU ("repository permission updater"), to avoid waiting for 3 hours: I'll report the result here before asking you to try again. |
Ok. I will wait for information:) |
@DuMaM the job ran successfully but no mention of any password synchronization. Can you confirm that you are able to log-in to repo.jenkins-ci.org with your account's credentials?
You can test authentication with the URL of an artifact though (like Maven would do):
|
My bad: I realize that it is what the documentation tells you to do. Can you try with the UI setup instead please? cc @daniel-beck sorry to bother you with this but the step https://www.jenkins.io/doc/developer/publishing/releasing-manually/#using-curl is not working for me, same 403 error as @DuMaM , while the UI thing works very well (just tested). |
Roger
Success here.
At first I followed manual tutorial. I got rejected. I assumed that something is wrong with my manual setup. So far so good. 👍 Thanks @dduportal |
@DuMaM thanks for re-testing and confirming! I'll close the issue (as no more action are required from the Jenkins Infra team as far as I can tell), feel free to reopen if you see any other issue. |
I've opened jenkins-infra/jenkins.io#5609 to track the plugin documentation's problem. |
Post-note: the |
I tried to deploy plugin today. Sadly its still dont work for me. I checked with gui settings, with encrypted password, with unencrypted password and still nothing. 😢 |
settings xml <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>dumam</username>
<password>my_pass</password>
</server>
</servers>
<profiles>
<!-- Give access to Jenkins plugins -->
<profile>
<id>jenkins</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<repositories>
<repository>
<id>repo.jenkins-ci.org</id>
<url>https://repo.jenkins-ci.org/public/</url>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>repo.jenkins-ci.org</id>
<url>https://repo.jenkins-ci.org/public/</url>
</pluginRepository>
</pluginRepositories>
</profile>
</profiles>
<activeProfiles>
<activeProfile>jenkins</activeProfile>
</activeProfiles>
</settings> |
Small update: |
@dduportal could you reopen this ticket? |
This means Maven doesn't send credentials, or that they're wrong. Make sure you're using the encrypted password provided by Artifactory using the (newly working) |
I used config returned by curl for this, and still i have the same output |
So this means something is wrong in my pom.xml or |
ok, i fixed ci for my plugin. there was some problems with 4.43.1 parent pom xml. After i downgraded to 4.42 everything started to work as it was before and i was able to release plugin. |
Service(s)
Artifactory
Summary
Hi,
I was trying to do a release of plugin which i maintain.
I double checked if I use correct encrypted password in settings.xml, and if everything works as it supposed to.
Sadly I do and I still have a "Unauthorized" error.
Could somebody help me?
Reproduction steps
No response
The text was updated successfully, but these errors were encountered: