-
Story
-
Resolution: Done
-
Normal
-
None
-
None
-
None
-
All / Cross Project
Currently on project creation for java/docker projects admins must.
1)download a groovy script, and modify it with project name and password.
then run that grovvy script in the jenkins console.
2)Modify two files in lftools
lftools/etc/nexus/repo-config.example.yaml
lftools/etc/nexus/settings.example.yaml
and then run
lftools nexus create repo -c etc/nexus/repo-config.example.yaml -s etc/nexus/settings.example.yaml
Then for nexus3 they must by hand do the following:
Set the configuration in Nexus3 Currently, we don't have a script like the one for nexus create that works for Nexus3. We need to do the following steps manually: Log in into nexus3 Settings (little wheel) -> users -> Create user Name, First name should match the project name. For example "aaf-authz" (from onap) Last name: "Deployment" Email, For example: "aaf-authz-deploy@onap.org" (from onap) Password (needs to match the one in Nexus2 and Jenkins) Status: Active Roles: Select "docker" from the Available roles and make sure you add them in the Granted column. Create User.
This is a long process and I would like to move this into info file driven project creation.
ideally with a project name and a password this can be completed in 3 lftools commands.
(jenkins create config, nexus2 create repo, nexus3 create repo)
The current groovy code can be found here https://gerrit.linuxfoundation.org/infra/c/releng/lftools/+/5296