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

Concourse Terraform job should not fail on missing directories #249

Open
aurelienbouleau opened this issue Mar 25, 2019 · 0 comments
Open

Comments

@aurelienbouleau
Copy link

As an OPS, I expect that concourse terraform jobs do not fail on missing directories in secrets repositories (below an example of a Concourse failure when trying to cp files in missing terraform-config folder in secrets repo):

+ pwd
	
+ CURRENT_DIR=/tmp/build/6d6ccb0c
	
+ [ -z coab-depls/terraform-config/spec ]
	
+ [ -z coab-depls/terraform-config/spec-openstack-hws ]
	
+ [ -z coab-depls/terraform-config ]
	
+ find secret-state-resource/coab-depls/terraform-config -type f -exec cp {} generated-files/ ;
	
find: secret-state-resource/coab-depls/terraform-config: No such file or directory

Possible solution

Before the command find secret-state-resource/coab-depls/terraform-config -type f -exec cp {} generated-files/; man should check and create, if needed, missing directories.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

No branches or pull requests

1 participant