I have been trying to deploy the image built on jenkins by docker to helm charts, i have referred couple of documents on website <a href="https://dev.to/sword-health/seamless-ci-cd-with-jenkins-helm-and-kubernetes-5e00" rel="nofollow noreferrer">https://dev.to/sword-health/seamless-ci-cd-with-jenkins-helm-and-kubernetes-5e00</a>
and <a href="https://cloudcompilerr.wordpress.co...kubernetes-run-jenkins-on-kubernetes-cluster/" rel="nofollow noreferrer">https://cloudcompilerr.wordpress.co...kubernetes-run-jenkins-on-kubernetes-cluster/</a> and managed till the point where docker image gets pushed into dockerhub but i get stuck at helm
i'm not getting what the error exactly is.
<strong>JENKINS ERROR</strong>
<strong>PIPELINESCRIPT</strong>
Is there any specific configuration that i'm missing before i use helm in jenkins? And i have configured my kubernetes IP in the <em>cloud configuration</em> in jenkins, Please help
<strong>Plugins Installed</strong>
Kubernetes Plugin
Docker Plugin
and <a href="https://cloudcompilerr.wordpress.co...kubernetes-run-jenkins-on-kubernetes-cluster/" rel="nofollow noreferrer">https://cloudcompilerr.wordpress.co...kubernetes-run-jenkins-on-kubernetes-cluster/</a> and managed till the point where docker image gets pushed into dockerhub but i get stuck at helm
i'm not getting what the error exactly is.
<strong>JENKINS ERROR</strong>
Code:
+ helm list
/var/lib/jenkins/workspace/[email protected]/durable-68e91f76/script.sh: 1: /var/lib/jenkins/workspace/[email protected]/durable-68e91f76/script.sh: helm: not found
Code:
pipeline {
environment {
registry = "hemanthpeddi/springboot"
registryCredential = 'dockerhub'
}
agent any
tools {maven "maven" }
stages {
stage('Cloning Git') {
steps {
git 'https://github.com/hrmanth/game-of-life.git'
}
}
stage('Build'){
steps{
sh script: 'mvn clean package'
}
}
stage('Building image') {
steps{
script {
dockerImage = docker.build registry + ":$BUILD_NUMBER"
}
}
}
stage('Deploy Image') {
steps{
script {
docker.withRegistry( '', registryCredential ) {
dockerImage.push()
}
}
}
}
stage('Remove Unused docker image') {
steps{
sh "docker rmi $registry:$BUILD_NUMBER"
}
}
stage('Run Helm') {
steps {
script {
container('helm') {
sh "helm ls"
}
}
}
}
}
}
<strong>Plugins Installed</strong>
Kubernetes Plugin
Docker Plugin