Skip to content

Error during helm pull  #34

@schnatterer

Description

@schnatterer

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions