mrsixw / concourse-rsync-resource

concourse.ci resource for persisting build artifacts on a shared storage location with rsync and ssh.
Apache License 2.0
18 stars 40 forks source link

Question: environment variables in base_dir? #6

Open airtonix opened 7 years ago

airtonix commented 7 years ago

was hoping to dynamically specify the base_dir with something like:

...
resources:
- name: artifacts
  type: rsync-resource
  source:
    server: {{artifacts_server}}
    base_dir: /data/$CONCOURSE_PIPELINE_ID/$CONCOURSE_BUILD_ID
    port: 2222
    user : root
    private_key: {{bitbucket_ci_private_key}}
...

Would this get evaulated by the rsync-resource container when it runs either of check, in, out?

airtonix commented 7 years ago

related info: https://concourse.ci/implementing-resources.html#resource-metadata

mrsixw commented 7 years ago

Good question. I think this will work, but I've not tried.