improve download_artifact function
Summary
When using:
download_artifact deploy-management-cluster bin/sylva-toolbox-version.yamlif bin directory doesn't exist locally, it fails
related references
Details
In CI pipeline, we can use download_artifact function to download artifact from other jobs. In case the artifact is stored in directory, for example: bin/sylva-toolbox-version.yaml and in the target job running donwload_artifact the directory bin doesn't exist: it fails and results with a curl error (23) (not very explicit).
We have to check that directory exists and if it doesn't we need to create it.
Retrieving bin/sylva-toolbox-version.yaml artifact from deploy-workload-cluster with ID: 14708117643 job
curl: (23) client returned ERROR on write of 452 bytes