Creating Helm hosted repository in Nexus and Pushing the helm charts - DeekshithSN/CICD_Java_gradle_application GitHub Wiki

Pre-requisite

  • We need to have Jenkins and nexus server up and running (by default Jenkins runs on 8080 and nexus at 8081), to install on ubuntu refer link

Initial setup

In nexus click on gear button --> click on repositories --> click on create repository ( below image can help in creating )

nexus1

once we click on create repository ( types of repository will be listed ) --> click on helm(hosted)

nexus5

give a meaningful name to repository and click on create repository

nexus6

Now no other configuration is need in Jenkins host because we will nexus repo api and publish the helm charts

the below line can help you in pushing the helm chart

 curl -u admin:$nexus_password http://nexus_machine_ip:8081/repository/helm-hosted/ --upload-file myapp-${helmversion}.tgz -v