- Pull helm chart from Virtual helm repository of Artifactory
- Deploy
docker-app
in Kubernetes using downloaded helm chart
-
On the Jenkins front page, click on Credentials -> System -> Global credentials -> Add Credentials Add your Artifactory credentials as the type Username with password, with the ID artifactory-credentials
-
Create new Jenkins Pipeline Job.
-
Create Helm repositories in Artifactory using quick setup wizard.
-
Add String Parameters:
- IMAGE_TAG (String Parameter) : Domain of Artifactory docker registry
e.g
IMAGE_TAG : latest
- SERVER_URL (String Parameter) : Artifactory Server URL
e.g.SERVER_URL -> http://35.225.27.231/artifactory
- REPO (String Parameter) : Artifactory Helm repo
e.g.REPO -> helm
- CREDENTIALS (Credentials Parameter) : Artifactory Credential
e.g.CREDENTIALS -> artifactory-credentials
- IMAGE_TAG (String Parameter) : Domain of Artifactory docker registry
e.g
-
Copy Jenkinsfile to Pipeline Script.
-
To build it, press Build Now.
-
Check your newly published build in build browser of Artifactory.
- Add Artifactory Helm repo with helm client
helm repo add artifactory $ART_URL/$HELM_REPO --username $ART_USERNAME --password $ART_PASSWORD
Note: --username
and --pasword
flag is only supported in helm version 2.9.0 and higher.
- Update local helm repo index
helm repo update
- Install
docker-app
in k8s
helm install my-docker-app artifactory/docker-app-chart