- Create helm chart of
docker-app
- Push helm chart in local helm repository in Artifactory
-
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.
-
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.