Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error during helm pull #34

Open
schnatterer opened this issue Jun 21, 2023 · 0 comments
Open

Error during helm pull #34

schnatterer opened this issue Jun 21, 2023 · 0 comments

Comments

@schnatterer
Copy link
Member

When running the same job on the same Jenkins agent multiple times this line might lead to this error

This might lead to

script.sh "helm pull chartRepo/${helmConfig.chartName} --version=${helmConfig.version} --untar --untardir=${script.env.WORKSPACE}/${helmChartTempDir}/${chartRootDir}"

Error: failed to untar: a file or directory with the name..

More details, example from cloudogu/gitops-playground@e1ee67c

[Pipeline] sh
+ helm repo add chartRepo https://raw.githubusercontent.com/bitnami/charts/archive-full-index/bitnami
"chartRepo" has been added to your repositories
[Pipeline] sh
+ helm repo update
Hang tight while we grab the latest from your chart repositories...
...Successfully got an update from the "chartRepo" chart repository
Update Complete. ⎈Happy Helming!⎈
[Pipeline] sh
+ helm pull chartRepo/nginx '--version=13.2.21' --untar '--untardir=/tmp/gitops-playground-jenkins-agent/workspace/ications_nginx-helm-jenkins_main/.helmChartTempDir/chart'
Error: failed to untar: a file or directory with the name /tmp/gitops-playground-jenkins-agent/workspace/ications_nginx-helm-jenkins_main/.helmChartTempDir/chart/nginx already exists
[Pipeline] }
$ docker stop --time=1 f85f53e162446a3c948a1c762623fab168d1fb96a990e3a2a66f8fcec8d3ae49
$ docker rm -f --volumes f85f53e162446a3c948a1c762623fab168d1fb96a990e3a2a66f8fcec8d3ae49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant