Skip to content

Commit

Permalink
fix(documentation): Artifactory UI does not work anymore. (#6396)
Browse files Browse the repository at this point in the history
* fix(documentation): Artifactory UI does not work anymore.

* fix(documentation): Artifactory UI does not work anymore.

* fix(documentation): Artifactory UI does not work anymore.

* fix(documentation): Artifactory UI does not work anymore.

* fix(documentation): Artifactory UI does not work anymore.

* fix(documentation): Artifactory UI does not work anymore.
  • Loading branch information
gounthar authored May 23, 2023
1 parent 9e49724 commit dc11944
Show file tree
Hide file tree
Showing 8 changed files with 1 addition and 41 deletions.
42 changes: 1 addition & 41 deletions content/doc/developer/publishing/releasing-manually.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -16,47 +16,7 @@ See link:../releasing-cd[setting up automated plugin release] instead of this gu
== Artifactory Credentials for Maven

You will need to tell Maven your credentials to access link:../artifact-repository[Artifactory].
You can obtain your encrypted password from Artifactory using either `curl` or the Artifactory UI.

=== Using the Artifactory UI

Follow these steps to obtain your encrypted password:

1. Log in to Artifactory. image:../../../images/developer/publishing/artifactory-login.png[Artifactory Login]
2. Click your user name on the top right and from the menu select "Set me up". image:../../../images/developer/publishing/artifactory-set-me-up.png[Artifactory Set Me Up]
3. Select "Maven" as package type (ignore the repository selection and the message about lack of permissions). image:../../../images/developer/publishing/select-maven.png[Artifactory Select Maven]
4. Enter your login password below and click the unlock button (big green lock icon). image:../../../images/developer/publishing/unlock.png[Artifactory Unlock]
5. Click "Generate Settings" at the bottom. image:../../../images/developer/publishing/generate-settings.png[Artifactory Generate Settings]
6. Click "Download Snippet". image:../../../images/developer/publishing/download-snippet.png[Artifactory Download Snippet]
7. Open the downloaded XML file and look for your encrypted password (the `<password>` element).
image:../../../images/developer/publishing/generated-xml.png[Artifactory Generated XML]
Ignore everything else in this file.

NOTE: If your XML snippet says `\*\** Insert encrypted password here \***`, click the unlock button near the password entry field, and re-Generate Settings.

Create the file `~/.m2/settings.xml` (`~` representing your user home directory, e.g. `/home/yourname` or `C:\Users\yourname`) if needed, and make sure it contains the `<servers>` element as shown below:

[source,xml]
----
<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> // <1>
<username>your_user_name_here</username>
<password>your_encrypted_password_here</password>
</server>
</servers>
</settings>
----
<1> This is not a valid host name anymore, but still the ID used by default in the Jenkins plugin parent POM.
You may need to add additional `<server>` entries if your plugin POM overrides the inherited Maven `<distributionManagement>`, but this should be rare.

=== Using `curl`
You can obtain your encrypted password from Artifactory using `curl`.

Use this command:
[source,bash]
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed content/images/developer/publishing/select-maven.png
Binary file not shown.
Binary file removed content/images/developer/publishing/unlock.png
Binary file not shown.

0 comments on commit dc11944

Please sign in to comment.