gitops-build-lib
gitops-build-lib copied to clipboard
Error during helm pull
When running the same job on the same Jenkins agent multiple times this line might lead to this error
This might lead to https://github.com/cloudogu/gitops-build-lib/blob/bf0eb9d94b2bd8bc58e247bf3bc0e831d18cc7c9/src/com/cloudogu/gitopsbuildlib/deployment/helm/repotype/HelmRepo.groovy#L39
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