opendevstack / ods-jenkins-shared-library

Shared Jenkins library which all ODS projects & components use - provisioning, SonarQube code scanning, Nexus publishing, OpenShift template based deployments and repository orchestration
Apache License 2.0
69 stars 57 forks source link

Context variables nexusUsername and nexusPassword are set again by nexusService #1124

Closed jeronimolina closed 1 month ago

jeronimolina commented 1 month ago

This is because some quickstarters need that variables, and they are going to use the developer user with only read only

hrcornejo commented 1 month ago

@jeronimolina, @jafarre-bi and @braisvq1996 with this change the Nexus service will use cd-user-with-password as credentials to manage document in Nexus, and the quickstarters will use the env set in Jenkins (NEXUS_USERNAME, NEXUS_PASSWORD) as credentials to access repos. is right?

braisvq1996 commented 1 month ago

@hrcornejo it is correct, additionally env user will get only read permission on nexus on the public repositories for retro compatibility. Later on we need to change the quickstarters that make use of this env user by default and make them use Jenkins credentials instead