I'm working on running helm charts using helmfile in Jenkins pipeline. I was able to setup Jenkins Agent to use this docker image jenkinsciinfra/helmfile from https://github.com/jenkins-infra/docker-helmfile. below is my pipeline
pipeline{
agent {
label 'helm'
}
stages{
stage("helm version") {
steps {
sh "helmfile version"
}
}
}
}
I get this response
Running on helm-thxmv in /home/jenkins/agent/workspace/helmfile
[Pipeline] {
[Pipeline] stage
[Pipeline] { (helm version)
[Pipeline] sh
+ helmfile --version
/usr/local/bin/helmfile: line 1: syntax error: unterminated quoted string
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
[Pipeline] // node
[Pipeline] End of Pipeline
ERROR: script returned exit code 2
Finished: FAILURE
I have tried running sh "helm version" and i get success response. Am I missing anything here?
I'm very new to Jenkins