Note: since I'm the only one searching for it it feels like I want to use bad practice.
I want to create a deploy-user. Its only purpose is to be configured in the settings.xml as a server-entity:
<servers>
<server>
<id>nexus</id>
<username>deploy-user</username>
<password>somepassword</password>
</server>
</servers>
The user only needs permission to upload artifacts to all the repositories hosted on the Nexus 3.0 server. I've created a role "Deployment" and need to know which privileges need to be applied.
Go to "http://localhost:8081/nexus" Login as user: "admin" password: "admin123" Click on "Browse Repositories," and you'll see a list of repositories. You will want to right click on the "3rd Party" repository and choose "Upload Artifact."
A repository with the type proxy, also known as a proxy repository, is a repository that is linked to a remote repository.
To upload a pom file and its associated artifacts add all the files into the upload screen at the same time. Be sure to specify the extension of the pom file as "pom", this will let Nexus Repo know it should be taking the coordinates from the pom file, not the UI.
In version 3.18.0-01 privileges read and edit are enough (just like Ben mentioned in the not accepted answer) to deploy via CI/CD (Maven) provided by GitLab. If you need minimal privileges to just deploy artifacts, nx-repository-view-*-*-edit is enough. nx-repository-admin is used for administration and configuration
Nexus 2 The User must have Artifact Uploadprivilege, which can be searched in privilegestab. Create a custom Rolefor your user, add Artifact Uploadprivilege to the Role. Bind the Role to your user. Below is an example of nexus 2.x:
1 For nexus 3.x, create a new role (e.g. "deploy") and assign it the add, edit and read permissions (nx-repository-view-<repo_type>-<repo_name>-add/edit/read). This suffices for maven; other clients may need more privileges.
This permission has been deprecated with Azure DevOps Server 2019 and later versions. If the Use full Web Access features permission is set to Deny, the user will only see those features permitted for the Stakeholder group (see Change access levels ).
The User must have Artifact Upload
privilege, which can be searched in privileges
tab.
Role
for your user, add Artifact Upload
privilege to the Role.Below is an example of nexus 2.x
:
And this is for nexus 3.x
:
For nexus 3.x, create a new role (e.g. "deploy") and assign it the add, edit and read permissions (nx-repository-view-<repo_type>-<repo_name>-add/edit/read
).
This suffices for maven; other clients may need more privileges.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With